[Home]

Summary:ASTERISK-14901: Voicemail MWI - deleted messages are not notified to the extension
Reporter:ilker Aktuna (mrmrmrmr)Labels:
Date Opened:2009-09-28 13:33:49Date Closed:2011-06-07 14:08:26
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_voicemail
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) console_output.txt
( 1) sip_debug.txt
Description:Hi,

My SIP client (SPA 3000) supports MWI with SIP NOTIFY messages.

When a voicemail is left on the extension, a SIP NOTIFY message is sent to my SIP client and the MWI is received ok. This is good.

But when I delete all Voicemail through GUI(AMPortal), SIP NOTIFY message notifying that there is no voicemail left is not sent to the client.
Normally , I expect to receie a SIP NOTIFY message as soon as my inbox is empty.
However, this does not happen when I delete voicemail through GUI.
If I delete voicemail through phone, I receive the SIP NOTIFY message.

I have the following lines in my voicemail.cfg:
pollmailboxes=yes
pollfreq=30

My Asterisk version is 1.6.0.10-FONCORE-r40
It is running on CentOS (Trixbox)

The problem occurs each time I delete messages from GUI.
Comments:By: Leif Madsen (lmadsen) 2009-09-28 13:43:58

Please report this to the Trixbox team as we can't fix issues in a GUI that isn't supported here.

By: ilker Aktuna (mrmrmrmr) 2009-09-28 14:18:22

This is not a GUI issue. If I delete the messages manually from shell session, I still can't get the SIP NOTIFY message.
So it's not related to GUI.
Polling does not work.

By: Leif Madsen (lmadsen) 2009-09-28 14:21:21

Then please provide the necessary debugging information per the bug guidelines at http://www.asterisk.org/developers/bug-guidelines

By: ilker Aktuna (mrmrmrmr) 2009-09-28 15:07:56

I've tried to supply as much information as I could checking the guidelines.
However, I get no debugs when I delete the messages from shell.
Can you please specify what debugs you'd like to see ?

By: Leif Madsen (lmadsen) 2009-09-29 08:29:22

Since this is a SIP related issue, we'll need (per the guidelines):

* sip debug
* sip history
* console output demonstrating the issue

Additionally the steps required to reproduce this on vanilla Asterisk.

By: ilker Aktuna (mrmrmrmr) 2009-09-29 11:17:32

Ok; I have the sip debug and console output showing that there are messages in the inbox and when I delete them no SIP NOTIFY message is sent.

How can I add these files to this issue ?

edit: ok; I've found the attach button.



By: ilker Aktuna (mrmrmrmr) 2009-09-29 11:22:20

I attached the files now.
Let me explain what I've done within the debug:
1. I called 995 from 999.
2. 999 didn't answer; so I got to voicemail and left a message.
3. At this point you can see the NOTIFY message to 995 showing 1 new voicemail.
4. Then I deleted the messages from inbox (on shell)
5. Waited for more than 30 seconds which is the set poll duration.
6. No new SIP NOTIFY message is sent to 995 indicating 0 messages.

Do you require any other information ?

By: Leif Madsen (lmadsen) 2009-09-30 10:22:07

I think that is enough information for now.

By: Elazar Broad (ebroad) 2009-12-02 10:20:27.000-0600

Is the SPA3000 subscribing for MWI notifications? Additionally do you have 'mailbox=foo' set under the SPA3000's peer definition?

By: Russell Bryant (russell) 2009-12-02 11:48:15.000-0600

You are using an unsupported version of Asterisk: My Asterisk version is 1.6.0.10-FONCORE-r40

The "FONCORE" version of Asterisk is heavily patched with very poor changes to the code.  It is absolutely not supported here.

By: ilker Aktuna (mrmrmrmr) 2009-12-03 17:07:39.000-0600

I upgraded to Asterisk 1.6.0.18 and I am able to reproduce this issue on 1.6.0.18 as well.
That's why I don't think that the problem is about the "heavily patched" FONCORE version. (yarraam)
The problem might be related to FreePBX behaviour but if you think so please explain with reasons. If the responsibility of "sending NOTIFY message when voicemail is deleted from GUI" belongs to Asterisk, then, I'm afraid we have a bug in Asterisk 1.6.0.18.

Answer to "ebroad" :
SPA 3000 is of course subscribing for MWI notifications. Otherwise how could it receive NOTIFY when a new voicemail is available?



By: Elazar Broad (ebroad) 2009-12-17 12:26:40.000-0600

I have an SPA-2102 which displayed similar behavior, disabling the subscription and using unsolicited MWI(which I had to use anyway for my Cisco 7940's, as they don't subscribe) resolved the issue, notifications are near instantaneous. Do you have subscribemwi=yes under the peer definition?

By: ilker Aktuna (mrmrmrmr) 2009-12-19 15:16:33.000-0600

No; I don't have "subscribemwi=yes" anywhere. Should I put it ?
What is "unsolicited MWI" ? and how can I use it ?

By: Elazar Broad (ebroad) 2009-12-21 10:47:51.000-0600

For subscribed MWI, under the peer definition, set subscribemwi=yes(I'm not sure what the default is). For unsolicited MWI, set subscribemwi=no and in the SPA3000's configuration, clear the 'Voice Mail Server' field. Unsolicited MWI is basically where Asterisk will send an MWI notification without the client asking for it. Most Cisco phones require this as they do not have the ability to subscribe for MWI notifications.

By: ilker Aktuna (mrmrmrmr) 2009-12-25 14:14:03.000-0600

On SPA 3000 configuration , "voice mail server" field is already empty.
Where shall I put "subscribemwi=no" in Asterisk configuration ?
On the extension configuration there is only "vm options" and "vm context" fields.

By: ilker Aktuna (mrmrmrmr) 2009-12-25 14:49:22.000-0600

ebroad,

Thank you very much.
The problem is solved by "subscribemwi=no" definition under the peer on sip_additional.conf.

It's strange though to see that if no "subscribemwi" is set it defaults to "subscribemwi=yes"
is it possible to change this default behaviour to "no" ?
(globally, I mean , not per peer.)

I think this default behaviour is somehow buggy.

It is also strange to see that if I set "subscribemwi=yes" or leave as default , and set Asterisk IP address on SPA3000 "voice mail server" field, spa 3000 subscribes for notification and Asterisk sends the notification, however spa 3000 does not turn of MWI.

By: Leif Madsen (lmadsen) 2010-01-04 13:54:12.000-0600

We probably don't want to change the default behaviour as some people may be expecting it to be on.

By: ilker Aktuna (mrmrmrmr) 2010-01-05 16:32:26.000-0600

I didn't mean to change the default behaviour "by default" but is it possible to configure "subscribemwi=no"  globally ?

By: Tilghman Lesher (tilghman) 2010-01-06 00:54:38.000-0600

No, it isn't.  That setting is per-peer only.