Benoit Panizzon
2017-Nov-19 16:11 UTC
[asterisk-users] pjsip subscribe (presence) always returns: No matching endpoint found
Hello List I am in the progress of migrating from chan_sip to pjsip. I fear I have missed something on how hints need to be specified for pjsip. For chan_sip I have configured sip.conf subscribecontext = localuser and in the dialplan I set: [localuser] exten => 11,hint,SIP/11 Now if a phone subscribes to '11' this works. Now I try to get the same working for pjsip. I understood that for pjsip the hit needs to be placed in the same context as the endpoint: [11] type=endpoint transport=transport-udp context=localuser disallow=all allow=g722 allow=alaw allow=gsm auth=11 aors=11 callerid=(remove in this example qualify_frequency=10 mailboxes=11 voicemail_extension=411 And in the dialplan I changed: [localuser] exten => 11,hint,PJSIP/11 But I constantly get: Request 'SUBSCRIBE' from '"Beno?t Panizzon PJSIP" <sip:11 at woody.ch>' failed for '2001:4060:dead:d1d0:204:13ff:fe30:228d:2332' (callid: ow21f3eg at snom) - No matching endpoint found And I in the logger I see that the subscriber request is being rejected with error 404. Any hints what I'm doing wrong? -Beno?t-
Joshua Colp
2017-Nov-19 17:36 UTC
[asterisk-users] pjsip subscribe (presence) always returns: No matching endpoint found
On Sun, Nov 19, 2017, at 12:11 PM, Benoit Panizzon wrote:> Hello List > > I am in the progress of migrating from chan_sip to pjsip. > > I fear I have missed something on how hints need to be specified for > pjsip. > > For chan_sip I have configured sip.conf > > subscribecontext = localuser > > > and in the dialplan I set: > > [localuser] > exten => 11,hint,SIP/11 > > Now if a phone subscribes to '11' this works. > > Now I try to get the same working for pjsip. I understood that for > pjsip the hit needs to be placed in the same context as the endpoint: > > [11] > type=endpoint > transport=transport-udp > context=localuser > disallow=all > allow=g722 > allow=alaw > allow=gsm > auth=11 > aors=11 > callerid=(remove in this example > qualify_frequency=10 > mailboxes=11 > voicemail_extension=411 > > And in the dialplan I changed: > > [localuser] > exten => 11,hint,PJSIP/11 > > But I constantly get: > > Request 'SUBSCRIBE' from '"Beno?t Panizzon PJSIP" <sip:11 at woody.ch>' > failed for '2001:4060:dead:d1d0:204:13ff:fe30:228d:2332' (callid: > ow21f3eg at snom) - No matching endpoint found > > And I in the logger I see that the subscriber request is being rejected > with error 404. > > Any hints what I'm doing wrong?Have you checked the Asterisk console when PJSIP is loaded to see if the endpoint did not load for some reason? Does it show up in "pjsip show endpoints"? -- 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
Benoit Panizzon
2017-Nov-19 18:11 UTC
[asterisk-users] pjsip subscribe (presence) always returns: No matching endpoint found
Hi Joshua thank you for the quick reply> Have you checked the Asterisk console when PJSIP is loaded to see if > the endpoint did not load for some reason? Does it show up in "pjsip > show endpoints"?Yes, the endpoint shows up. Endpoint: 11/(scrubbed from mail) Not in use 0 of inf InAuth: 11/11 Aor: 11 1 Contact: 11/sip:11@[2001:4060:dead:d1d0:204:13ff:fe 58af7d6822 Avail 5.799 Transport: transport-udp udp 0 0 [::]:5061 I had the qualify statement at the wrong place, but that's sorted out now. But still, subscribing to the hint results in a 404 error. Acutualy, that subscribing is a bit odd, it's a snom M9 phone that is trying to subscribe to itself. That does not make much sense in my opinion. It just that chan_sip reported OK to this and chan_pjsip replies with 404. Or is pjsip more intelligent and trying to prevent the phone from subscribing to itself? -Benoit-
Apparently Analagous Threads
- pjsip subscribe (presence) always returns: No matching endpoint found
- pjsip subscribe (presence) always returns: No matching endpoint found
- pjsip rtp_ipv6=yes but endpoint registered via ipv4 (IP4 contact infor)
- PJSIP: identify endpoint by authentication username?
- SIP Trunk over Proxy (matching ip of outbound proxy in incomming calls)