NOTIFY forwarding

Hi all,

I am trying to turn on and off the mwi of different sip clients through another client. It seems tha the notify messages arrives at the asterisk but it never arrives at the client.
Does anybody know why this happens und how it will work?

Here is a NOTIFY message which arrives at the asterisk:

[code]<-- SIP read from
NOTIFY sip:1234@ SIP/2.0
Via: SIP/2.0/UDP;branch=z9hG4bK19799f8aba0b0e131
Max-Forwards: 70
From: sip:xpr-das@;tag=87e726438d
To: sip:1234@
Call-ID: c81b8adbec324e21
CSeq: 22929 NOTIFY
Contact: sip:das@
Supported: timer
User-Agent: SIP Stack M5T SIP Stack/
Event: message-summary
Subscription-State: terminated
Content-Type: application/simple-message-summary
Content-Length: 42

Messages-Waiting: yes
Voice-Message: 1/0[/code]


Asterisk won’t pass along a notify randomly, it will ignore it. Asterisk’s mwi is mainly designed for use with its voicemail system, and mailbox= in sip.conf.

you could send a notify with something like the cli command sip notify (see sip_notify.conf) but that might require more doing, alternatively you could code something into * to relay the notify…

OTOH you could have your app dial an extension which would send the sip notify…

The problem with the first proposal is to trigger the cli command on incomming notify messages.
Is there a chance to trigger a notify message on an incoming call when I dial an extension?
As I can see I realy have to code something into * to get this work.

if you run unix command
asterisk -rx clicommand
it will pipe ‘clicommand’ in and run it from CLI.

ie, setup sip_notify.conf for sending a notify to disable mwi…

exten => _123XXX,1,System(asterisk -rx sip notify mwioff ${EXTEN:3})

or something like that.