So I thought it was about time I upgraded my Asterisk server from Ubuntu 16.04 to 22.04 and Asterisk 18 built from source.
In the process, I also though, I might aswell migrate from “chan_sip” which works perfectly with the 2 devices I have in my office (and my ATA to my copper landline) to the newer “chan_pjsip”
The upgrade has all worked well, everything is installed, but it doesn’t matter what I try I simply cannot get either my cisco desk phone (Cisco 7940) or my PC Softphone (Microsip Latest Version) to find the end points configured for them. (I haven’t even tried the ATA yet)
My set up is as follows:
Network is 192.168.0.0/17
Asterisk Server is at 192.168.19.17
Cisco Desk phone is at 192.168.17.51
PC with softphone is at 192.168.17.100
Versions are as follows
telephony*CLI> core show version
Asterisk 18.13.0 built by shawty @ telephony on a x86_64 running Linux on 2022-07-28 16:44:23 UTC
telephony*CLI> pjsip show version
PJPROJECT version currently running against: 2.12
my asterisk was built a few months ago and i’ve not pulled the latest sources yet, but it’s working fine for everything else inc chan_sip when configured for the exact 2 same devices. I also have a second asterisk box, my prod server running using the same build under chan_sip without any problems, so I’m pretty confident the build is a good build.
I’ve followed a ton of videos, read all the pjsip material I can find in the asterisk docs, read dozens of tutorials, and read practically every thread in the forum that mentions pjsip and not finding endpoints, I honestly cannot see anything that I’m doing wrong.
Iv’e even added the “force_rport=no” directive on the cisco, and (at least on the softphone) included an “identity” object, and nothing I do seems to make any difference.
I’ve even taken my working “chan_sip” configuration and used the python conversion script, and still no dice, so final request for help I’m asking here.
My asterisk console is just full of these messages:
[Mar 2 23:03:11] NOTICE[18192]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:03:11] WARNING[18192]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
telephony*CLI>
[Mar 2 23:04:11] NOTICE[18198]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:04:11] WARNING[18198]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:05:11] NOTICE[18203]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:05:11] WARNING[18203]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:06:11] NOTICE[18208]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:06:11] WARNING[18208]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:07:11] NOTICE[18213]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:07:11] WARNING[18213]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:08:12] NOTICE[18218]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:08:12] WARNING[18218]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:09:12] NOTICE[18223]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:09:12] WARNING[18223]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:10:12] NOTICE[18232]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:10:12] WARNING[18232]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:30:34] NOTICE[18289]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"103" <sip:103@192.168.19.17>' failed for '192.168.17.100:65297' (callid: 84e6cb9d4cd542fdadae24e39a060b16) - No matching endpoint found
[Mar 2 23:30:34] WARNING[18289]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:31:14] NOTICE[18289]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:31:14] WARNING[18289]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:31:40] NOTICE[18289]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"103" <sip:103@192.168.19.17>' failed for '192.168.17.100:65297' (callid: 283dff1090024e3fb637651370e386c1) - No matching endpoint found
[Mar 2 23:31:40] WARNING[18289]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:32:14] NOTICE[18289]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:32:14] WARNING[18289]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:32:47] NOTICE[18289]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '"103" <sip:103@192.168.19.17>' failed for '192.168.17.100:65297' (callid: c8eb77264a254f1388c3f4a6ce8ac52a) - No matching endpoint found
[Mar 2 23:32:47] WARNING[18289]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
[Mar 2 23:33:14] NOTICE[18289]: res_pjsip/pjsip_distributor.c:676 log_failed_request: Request 'REGISTER' from '<sip:101@192.168.19.17>' failed for '192.168.17.51:50631' (callid: 000ab8cd-75ee0003-77e5091e-6a84e35c@192.168.17.51) - No matching endpoint found
[Mar 2 23:33:14] WARNING[18289]: res_pjsip.c:165 ast_sip_requires_authentication: No SIP authenticator registered. Assuming authentication is not required
telephony*CLI>
Device 101 is the Cisco 7640 desk phone and device 103 is the PC Softphone application.
The master pjsip.conf file in my asterisk directory is as follows:
#include "pjsipdevices/*.conf"
[global]
type = global
user_agent = Asterisk PBX (new)
debug = no
[lantransport]
type = transport
protocol = udp
bind = 0.0.0.0:5060
local_net = 192.168.0.0/255.255.128.0
;external_media_address = 88.97.38.99
;external_signaling_address = 88.97.38.99
and in the folder “pjsipdevices” I have one conf file for each device
101 - Cisco Desktop phone
[101]
type = aor
max_contacts = 1
[101]
type = auth
username = 101
password = PASSWORD
[101]
type = endpoint
context = internal
dtmf_mode = rfc4733
rtp_timeout = 120
callerid = "Office (Line 2)"
trust_id_inbound = yes
send_rpid = yes
language = en
auth = 101
outbound_auth = 101
aors = 101
force_rport = no
103 - PC Softphone application
[103]
type = aor
max_contacts = 1
[103]
type = auth
username = 103
password = PASSWORD
[103]
type = endpoint
context = internal
dtmf_mode = rfc4733
rtp_timeout = 120
callerid = "Peters PC"
trust_id_inbound = yes
send_rpid = yes
language = en
mailboxes = 1000@default
auth = 103
outbound_auth = 103
aors = 103
[103]
type=identify
endpoint = 103
match = 192.168.17.100
For completeness, here’s a screen shot of the softphone settings:
Those settings for the softphone work perfectly fine for the chan_sip implementation.
I can’t snapshot the settings for the cisco, as that’s going to take about 10 mobile phone photos, and a console grab of about 100 lines The settings for the cisco device however also work with the equivalent chan_sip settings.
and the pjsip endpoints output from the asterisk console:
telephony*CLI> pjsip show endpoints
Endpoint: <Endpoint/CID.....................................> <State.....> <Channels.>
I/OAuth: <AuthId/UserName...........................................................>
Aor: <Aor............................................> <MaxContact>
Contact: <Aor/ContactUri..........................> <Hash....> <Status> <RTT(ms)..>
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress..................>
==========================================================================================
Endpoint: 101 Invalid 0 of inf
OutAuth: 101/101
InAuth: 101/101
Aor: 101 1
Endpoint: 103 Invalid 0 of inf
OutAuth: 103/103
InAuth: 103/103
Aor: 103 1
Objects found: 2
telephony*CLI> pjsip show aors
Aor: <Aor..............................................> <MaxContact>
Contact: <Aor/ContactUri............................> <Hash....> <Status> <RTT(ms)..>
==========================================================================================
Aor: 101 1
Aor: 103 1
Objects found: 2
telephony*CLI> pjsip show auths
I/OAuth: <AuthId/UserName.............................................................>
==========================================================================================
Auth: 101/101
Auth: 103/103
Objects found: 2
telephony*CLI> pjsip show transports
Transport: <TransportId........> <Type> <cos> <tos> <BindAddress....................>
==========================================================================================
Transport: lantransport udp 0 0 0.0.0.0:5060
Objects found: 1
Sleep time here in the UK now, but if anyone can see where I’m going wrong any pointers would be appreciated, I’m at a dead end now, and if I can’t resolve this, then I’m going back to the far simpler and working “chan_sip” setup.
Cheers
Shawty