Klaus Darilion
2009-Mar-11 10:21 UTC
[asterisk-users] how to configure for incoming message-summary SUBSCRIBE
Hi! AFAIS the incoming SUBSCRIBE is handled in the same context as INVITE - but how should I handle the SUBSCRIBE in the context? thanks klaus SUBSCRIBE sip:u+431234567 at foobar.at:5160 SIP/2.0 Via: SIP/2.0/UDP 192.168.2.82:39982;branch=z9hG4bK-d8754z-3116e1207913aa4e-1---d8754z-;rport Max-Forwards: 70 Contact: <sip:u+431234567 at 11.111.11.11:39982> To: "schlopy"<sip:u+431234567 at foobar.at:5160> From: "schlopy"<sip:u+431234567 at foobar.at:5160>;tag=376b6b2e Call-ID: ZDY1MmExZDdlNGE0MGI0NzgxZGQxMjA5YWNmMTZiYzA. CSeq: 2 SUBSCRIBE Expires: 300 Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, SUBSCRIBE, INFO User-Agent: X-Lite release 1100l stamp 47546 Authorization: Digest username="u+431234567",realm="foobar.at",nonce="fdsfa709",uri="sip:u+431234567 at foobar.at:5160",response="foobar",algorithm=MD5 Event: message-summary Content-Length: 0 <-------------> --- (14 headers 0 lines) --- Creating new subscription Sending to 81.189.99.50 : 39982 (NAT) Found peer 'u+431234567' Looking for u+431234567 in fromSipPots (domain foobar.at) <--- Transmitting (NAT) to 11.111.11.11:39982 ---> SIP/2.0 404 Not Found
Olivier
2009-Mar-11 11:00 UTC
[asterisk-users] how to configure for incoming message-summary SUBSCRIBE
My understanding of current SIP MWI handling is: - no matter if an endpoint subscribed to receive message summaries, Asterisk will a summary to it if sip.conf mailbox entry is filled. - I couldn't find any SIP hardphone setting (i used a Thomson ST2030), that would make the hardphone send a SUBSCRIBE without rejecting corresponding NOTIFYs from Asterisk (I confess I didn't spend much time in my trials). bottom line: - I set the phone not to send any SUBSCRIBE as it accepted default NOTIFYs from Asterisk and rejected any custom NOTIFYs I could build. Hope this helps ... -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090311/a9161ebf/attachment.htm
Klaus Darilion
2009-Mar-12 13:37 UTC
[asterisk-users] how to configure for incoming message-summary SUBSCRIBE
answering myself ... Klaus Darilion schrieb:> Hi! > > AFAIS the incoming SUBSCRIBE is handled in the same context as INVITE -This is a bug which is fixed in Asterisk 1.4 branch, thus probably will be fixed in 1.4.24 regards klaus> but how should I handle the SUBSCRIBE in the context? > > thanks > klaus > > SUBSCRIBE sip:u+431234567 at foobar.at:5160 SIP/2.0 > Via: SIP/2.0/UDP > 192.168.2.82:39982;branch=z9hG4bK-d8754z-3116e1207913aa4e-1---d8754z-;rport > Max-Forwards: 70 > Contact: <sip:u+431234567 at 11.111.11.11:39982> > To: "schlopy"<sip:u+431234567 at foobar.at:5160> > From: "schlopy"<sip:u+431234567 at foobar.at:5160>;tag=376b6b2e > Call-ID: ZDY1MmExZDdlNGE0MGI0NzgxZGQxMjA5YWNmMTZiYzA. > CSeq: 2 SUBSCRIBE > Expires: 300 > Allow: INVITE, ACK, CANCEL, OPTIONS, BYE, REFER, NOTIFY, MESSAGE, > SUBSCRIBE, INFO > User-Agent: X-Lite release 1100l stamp 47546 > Authorization: Digest > username="u+431234567",realm="foobar.at",nonce="fdsfa709",uri="sip:u+431234567 at foobar.at:5160",response="foobar",algorithm=MD5 > Event: message-summary > Content-Length: 0 > > <-------------> > --- (14 headers 0 lines) --- > Creating new subscription > Sending to 81.189.99.50 : 39982 (NAT) > Found peer 'u+431234567' > Looking for u+431234567 in fromSipPots (domain foobar.at) > > <--- Transmitting (NAT) to 11.111.11.11:39982 ---> > SIP/2.0 404 Not Found > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users