[asterisk-users] standalone NOTIFY message handling for Asterisk
faisal at vopium.com
faisal at vopium.com
Tue Feb 8 00:47:29 CST 2011
Hi,
Here is a solution to your problem.
By default asterisk send all OPTION messages to default context in dialplan regardless on peers's context. You will get 200 OK reply to your option packet if you add following lines to dialplan,
[default]
exten => _X.,1,NoOp()
exten => _X.,n,Hangup()
exten => h,1.NoP()
Regards,
Faisal
-----Original Message-----
From: "Feng Xu" <feltonxu at yahoo.com>
Sent: Monday, February 7, 2011 11:55pm
To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com>
Subject: Re: [asterisk-users] standalone NOTIFY message handling for Asterisk
Hi Group, Do you think this has been fixed or it's still not supported with
standalone NOTIFY?
Your help will be highly appreciated!
Regards,
Felton
----- Original Message ----
From: Feng Xu <feltonxu at yahoo.com>
To: asterisk-users at lists.digium.com
Sent: Fri, 4 February, 2011 1:43:39 PM
Subject: [asterisk-users] standalone NOTIFY message handling for Asterisk
Hi,
I am using Asterisk 1.6.2.11 to test 3rd party Voice Message server (VMS),
currently when VMS send NOTIFY message (standalone NOTIFY, no previous SUBSCRIBE
for the dialog for SIP), asterisk responded with 489 Bad Event, in the debug log
it indicates as the following:
[Feb 4 13:27:06] DEBUG[8353] chan_sip.c: Invalid SIP message - rejected , no
callid, len 771
I have googled around regarding to this topic, I found similar issues reported,
but that's all the old version back to 2004 around. So I would like to confirm,
does Asterisk support standalone NOTIFY message for message waiting indicator
regarding to voice mail. If yes, what's the configurations should be applied?
My current configuration with Asterisk:
sip.conf
=========
[vms]
type = peer <-- tried both friend and peer
host = a.b.c.d <-- the VMS IP address
unsolicited_mailbox = yes
fromuser = lab_vms
.....
[user1]
....
mailbox = user1 at SIP_Remote
....
The NOTIFY message received:
======
NOTIFY sip:+user1 at a.b.c.d:5060 SIP/2.0^M
Via: SIP/2.0/UDP a.b.c.d:5060;branch=z9hG4bK-781458841-7-21411^M
CSeq: 1 NOTIFY^M
From: <sip:lab_vms at a.b.c.d:5060>;tag=1426753238-7761-21411^M
To: <sip:+user1 at a.b.c.d:5060>^M
Call-ID: 1231979610-5-21411-CmvtCallId^M
Route: <sip:a.b.c.d:5060;transport=udp;lr>^M
Event: message-summary^M
Accept: application/sdp,application/media_control+xml,message/sipfrag^M
Allow: INVITE,ACK,OPTIONS,BYE,CANCEL,NOTIFY,INFO,PRACK,UPDATE^M
Contact: <sip:a.b.c.d:5060;transport=udp>^M
Max-Forwards: 70^M
Supported: 100rel,timer,histinfo^M
Subscription-State: active^M
MIME-Version: 1.0^M
Content-Type: application/simple-message-summary^M
Content-Length: 40^M
^M
Messages-Waiting: yes^M
None: 5/0 (0/0)^M
Thanks a lot for your help!
Felton
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110208/fe46334e/attachment.htm>
More information about the asterisk-users
mailing list