Benoit Panizzon
2017-Dec-02 11:05 UTC
[asterisk-users] pjsip subscribe (presence) always returns: No matching endpoint found
Hi Joshua> The chan_pjsip module doesn't prevent that. You'd need to provide the > full SUBSCRIBE now that it is actually finding the endpoint and coming > in.Ok, let's see if we can solve the mystery.. pjsip.conf [endpt-home](!) type=endpoint disallow=all allow=g722 allow=alaw allow=gsm ice_support=yes context=from-home allow_subscribe=yes mwi_subscribe_replaces_unsolicited=yes [11](endpt-home) auth=11 aors=11 callerid=*scrubbed* mailboxes=11 voicemail_extension=411 extensions.conf [from-home] exten => 11,hint,PJSIP/11 include=>local-extens include=>trunk-out This is the exact subscribe message and reply as recored by the Snom M9 Logging facility. 2017/12/02 11:58:00 [SIP-Reg:5]: SIP Tx udp:[2001:4060:dead:beef::1]:5060: SUBSCRIBE sip:11 at woody.ch SIP/2.0 Via: SIP/2.0/UDP [2001:4060:dead:d1d0:204:13ff:fe30:228d]:2799;branch=z9hG4bK-88k838;rport From: "Beno?t Panizzon" <sip:11 at woody.ch>;tag=fg0ojl To: "Beno?t Panizzon" <sip:11 at woody.ch> Call-ID: 6lrsku1p at snom CSeq: 933701145 SUBSCRIBE Max-Forwards: 70 Contact: <sip:11@[2001:4060:dead:d1d0:204:13ff:fe30:228d]:2799;transport=udp;line=u5go22>;reg-id=1;+sip.instance="<urn:uuid:572d1aa1-bfd5-4b8a-ab1e-f9095df386e5>" Supported: outbound, gruu Event: message-summary Accept: application/simple-message-summary User-Agent: snom-m9/9.6.13-a Authorization: Digest realm="asterisk",*** remaining line removed for this email *** Expires: 60 Content-Length: 0 2017/12/02 11:58:00 [SIP-Reg:5]: MWI subscription on identity 1 failed. Retry in 60 seconds 2017/12/02 11:58:00 [SIP-Reg:5]: SIP Rx udp:[2001:4060:dead:beef::1]:5060: SIP/2.0 404 Not Found Via: SIP/2.0/UDP [2001:4060:dead:d1d0:204:13ff:fe30:228d]:2799;rport=2799;received=2001:4060:dead:d1d0:204:13ff:fe30:228d;branch=z9hG4bK-88k838 Call-ID: 6lrsku1p at snom From: "Beno?t Panizzon" <sip:11 at woody.ch>;tag=fg0ojl To: "Beno?t Panizzon" <sip:11 at woody.ch>;tag=z9hG4bK-88k838 CSeq: 933701145 SUBSCRIBE Server: Asterisk PJSIP XP Content-Length: 0 I did also try all those variants: exten => 11,hint,PJSIP/11 at woody.ch exten => 11,hint,PJSIP/sip:11 at woody.ch exten => 11,hint,PJSIP/sip:11 exten => 11 at woody.ch,hint,PJSIP/11 Any 'hint' welcome on why MWI subscription just does not work on those SNOM M9 phones. -Beno?t-
Benoit Panizzon
2017-Dec-02 11:53 UTC
[asterisk-users] SOLVED! Re: pjsip subscribe (presence) always returns: No matching endpoint found
Hi List Just in case someone else runs into the same problem migrating from chan_sip to res_pjsip. In chan sip you did define the voicemail variables in the peer section. I did configure most of that stuff into the endpoint of pjsip, including: mailboxesvoicemail_extension Well, after re-reading where each config could be specified I found that those two can also be used in an aor section. I moved them there, and now subscription to MWI works as expected with my SNOM M9 phones, the 'hint' from the dial plan is being found. -Beno?t-
Joshua Colp
2017-Dec-02 14:01 UTC
[asterisk-users] SOLVED! Re: pjsip subscribe (presence) always returns: No matching endpoint found
On Sat, Dec 2, 2017, at 07:53 AM, Benoit Panizzon wrote:> Hi List > > Just in case someone else runs into the same problem migrating from > chan_sip to res_pjsip. > > In chan sip you did define the voicemail variables in the peer section. > > I did configure most of that stuff into the endpoint of pjsip, > including: > > mailboxes> voicemail_extension> > Well, after re-reading where each config could be specified I found > that those two can also be used in an aor section. > > I moved them there, and now subscription to MWI works as expected with > my SNOM M9 phones, the 'hint' from the dial plan is being found.The "hint" isn't used for MWI, it's strictly used if you are subscribing to get the state of another extension. As you've discovered, though, the placement of mailboxes is important. When set in an endpoint it configures unsolicited MWI - that is MWI without the endpoint subscribing for it. When set in an AOR it configures what mailboxes the endpoint can subscribe and receive MWI for. Since you've moved it to the AOR it can now subscribe to the mailbox and receive MWI. -- Joshua Colp Digium, Inc. | Senior Software Developer 445 Jan Davis Drive NW - Huntsville, AL 35806 - US Check us out at: www.digium.com & www.asterisk.org