Can Someone Please Help With This Sip2sip Pjsip_wizard “no Matching Endpoint” Issue?

Home » Asterisk Users » Can Someone Please Help With This Sip2sip Pjsip_wizard “no Matching Endpoint” Issue?
Asterisk Users 3 Comments

Using pjsip 2.7.2 on Asterisk 15.5
Really struggling to make sense of translating these old 1.8 SIP
instructions into a neat pjsip_wizard conf suitable for 2018
http://wiki.sip2sip.info/projects/sip2sip/wiki/SipDevicesAsterisk#Version-18

In pjsip_wizard.conf, I have the following, which seems to get me registered, and it responds to an incoming call, but I always get this:

[Jul 28 18:32:29] NOTICE[22492]: res_pjsip/pjsip_distributor.c:659
log_failed_request: Request ‘INVITE’ from ‘”demo”
‘ failed for ‘x.x.x.x:5060’ (callid:
5fa139428fef42d9bd0cd4063e10b047) – No matching endpoint found

here’s what I have in pjsip_wizard.conf

[sip2sip]
type = wizard
sends_auth = yes
accepts_registrations = yes
transport = simpletrans
outound_auth/username = myusername@sip2sip.info
outound_auth/password = password
remote_hosts = 81.23.228.129,85.17.186.7,81.23.228.150,sip2sip.info
endpoint/allow = alaw
endpoint/context = fromsip2sip
aor/max_contacts = 3
registration/contact_user = myusername
outbound_proxy = proxy.sipthor.net
endpoint/language=en_GB

in pjsip.conf

[simpletrans]
type = transport
protocol = UDP
bind = 0.0.0.0

[acl]
type = acl
deny = 0.0.0.0/0.0.0.0
; next 3 are for sip2sip
permit = 81.23.228.129
permit = 85.17.186.7
permit = 81.23.228.150

in extensions.conf, I’ve got a bit OTT and covered every possible base to match an endpoint! Every single item in the “to” or “from” header is accounted for somewhere, so why can’t it find this endpoint?
Would be really grateful. Thanks.

extensions.conf

[fromsip2sip]
exten => _.,1,Verbose(answered)

[myusername]
exten => _.,1,Verbose(answered)

[myusername@sip2sip.info]
exten => _.,1,Verbose(answered)

[demo]
exten => _.,1,Verbose(answered)

3 thoughts on - Can Someone Please Help With This Sip2sip Pjsip_wizard “no Matching Endpoint” Issue?

  • This is an ITSP trunk, you’ve configured it kind of as if it were a phone. Instead of “accepts_registrations” you likely want “sends_registrations”. Asterisk needs to register to them.


    Joshua Colp Digium, Inc. | Senior Software Developer
    445 Jan Davis Drive NW – Huntsville, AL 35806 – US
    Check us out at: http://www.digium.com & http://www.asterisk.org

  • Thanks, but… whoah! I think I just found a bug!

    As soon as I changed accepts_registrations = yes to sends_registrations = yes

    and did a pjsip reload, Asterisk crashed. I tried starting asterisk. Nothing. In the syslog:

    Jul 28 22:20:41 televox kernel: [ 50.728769] asterisk[1504]:
    segfault at 0 ip 00007f4be3e00646 sp 00007ffc32067388 error 4 in libc-2.27.so[7f4be3d4f000+1e7000]
    Jul 28 22:22:02 televox kernel: [ 132.413114] asterisk[1579]:
    segfault at 0 ip 00007f62a9ba2646 sp 00007ffc9215d408 error 4 in libc-2.27.so[7f62a9af1000+1e7000]

    Took that line back out, and Asterisk started again. Shall I file a bug?