[Home]

Summary:ASTERISK-15437: Voicemail subscribtion error
Reporter:Maciej Krajewski (jamicque)Labels:
Date Opened:2010-01-15 08:12:45.000-0600Date Closed:2011-06-07 14:07:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Channels/chan_sip/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) db.txt
Description:Subscribing to Astersik for new voicmail notifications does not work. No notifications about new voicemails are send to subscriber and information about number of recorded voicemails is always 0/0.
Additionally I've Found an error in Notify response, please look at To header field (sip:sip:...)
Below is a siptrace log from subscription.


****** ADDITIONAL INFORMATION ******

SUBSCRIBE sip:10.0.0.240 SIP/2.0^M
Via: SIP/2.0/UDP 172.16.0.84:5065;branch=z9hG4bK-36bb4e4a^M
From: "test004" <sip:test004@10.0.0.240>;tag=248b05bed3c8bcd1^M
To: <sip:10.0.0.240>^M
Call-ID: 8659e602-4adbb95d@172.16.0.84^M
CSeq: 64168 SUBSCRIBE^M
Max-Forwards: 70^M
Authorization: Digest username="test004",realm="asterisk",nonce="25c19b4a",uri="sip:10.0.0.240",algorithm=MD5,response="ea8546f1b729bf3624074b2457b91d71"^M
Contact: "test004" <sip:test004@172.16.0.84:5065>^M
Expires: 2147483647^M
Event: message-summary^M
User-Agent: Linksys/SPA962-6.1.5(a)^M
Content-Length: 0^M



SIP/2.0 200 OK^M
Via: SIP/2.0/UDP 172.16.0.84:5065;branch=z9hG4bK-36bb4e4a;received=172.16.0.84^M
From: "test004" <sip:test004@10.0.0.240>;tag=248b05bed3c8bcd1^M
To: <sip:10.0.0.240>;tag=as65901189^M
Call-ID: 8659e602-4adbb95d@172.16.0.84^M
CSeq: 64168 SUBSCRIBE^M
Server: asterisk^M
Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, SUBSCRIBE, NOTIFY, INFO^M
Supported: replaces, timer^M
Expires: 3600^M
Contact: <sip:10.0.0.240@10.0.0.240>;expires=3600^M
Content-Length: 0^M


NOTIFY sip:test004@172.16.0.84:5065 SIP/2.0^M
Via: SIP/2.0/UDP 10.0.0.240:5060;branch=z9hG4bK50a25bcf;rport^M
Max-Forwards: 70^M
Route: <sip:test004@172.16.0.84:5065>^M
From: "asterisk" <sip:asterisk@10.0.0.240>;tag=as65901189^M
To: <sip:sip:test004@172.16.0.84:5065>;tag=248b05bed3c8bcd1^M
Contact: <sip:asterisk@10.0.0.240>^M
Call-ID: 8659e602-4adbb95d@172.16.0.84^M
CSeq: 102 NOTIFY^M
User-Agent: asterisk^M
Event: message-summary^M
Content-Type: application/simple-message-summary^M
Subscription-State: active^M
Content-Length: 90^M
^M
Messages-Waiting: no^M
Message-Account: sip:asterisk@10.0.0.240^M
Voice-Message: 0/0 (0/0)^M

Comments:By: Tilghman Lesher (tilghman) 2010-01-15 09:56:11.000-0600

Do you have a mailbox= setting in your corresponding sip.conf entry?

By: Maciej Krajewski (jamicque) 2010-01-15 10:55:26.000-0600

Yes, I have it in pgsql realtime if this matter.

By: Maciej Krajewski (jamicque) 2010-01-19 08:02:13.000-0600

I've uploaded the database sip friend configuration and voicemail configuration

By: Tilghman Lesher (tilghman) 2010-01-19 09:39:09.000-0600

Try changing the mailbox setting in sip.conf to 11@CALLEX.  If you don't specify a mailbox context, it looks in the "default" context.

By: Maciej Krajewski (jamicque) 2010-01-19 09:47:06.000-0600

in etc/asterisk/voicemail.conf I have
userscontext=CALLEX

By: Tilghman Lesher (tilghman) 2010-01-19 10:35:45.000-0600

What makes you think that that option is in any way relevant to the problem?

userscontext is for people using users.conf.  You're not using users.conf.  Ergo, it has no effect over the issue that you're having now.



By: Maciej Krajewski (jamicque) 2010-01-20 09:35:36.000-0600

You where right, it was a configuration error.
Ticket can be closed. Thanks for help.