I am converting my small asterisk setup to PJSIP and have managed to create a working pjsip.conf and extensions.conf.
I have connected my phone to asterisk with PJSIP and am able to call out on one of my two voip providers. But for some reason the other provider does not work, even though the settings in PJSIP are identical.
Previously, when using sip.conf, the only difference in the two providers was one required CALLERID(num)=<my_number> which I have used in the current dialplan.
I ran ‘pjsip set logger on’ and got-
mymodem*CLI> pjsip set logger on
PJSIP Logging enabled
<--- Received SIP request (1079 bytes) from UDP:111.111.11.1:5065 --->
INVITE sip:815123456@192.168.0.1:5060 SIP/2.0
From: "home_KL"<sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456"<sip:815123456@192.168.0.1:5060>
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
CSeq: 1 INVITE
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d60c-336097d9-b4023098
Max-Forwards: 70
Supported: replaces,100rel
Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, UPDATE, OPTIONS, PRACK
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
X-Serialnumber: 55 23 56 89 56
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Type: application/sdp
Content-Length: 400
v=0
o=123456 1741093624 1741093624 IN IP4 111.111.11.1
s=-
c=IN IP4 111.111.11.1
t=0 0
m=audio 41872 RTP/AVP 107 8 0 18 96 108
a=rtpmap:107 AMR-WB/16000
a=fmtp:107 channels=1;mode-change-capability=2;max-red=220
a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=rtpmap:108 telephone-event/16000
a=fmtp:108 0-15
a=maxptime:240
a=silenceSupp:off - - - -
a=ptime:20
<--- Transmitting SIP response (604 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d60c-336097d9-b4023098
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
From: "home_KL" <sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456" <sip:815123456@192.168.0.1>;tag=z9hG4bK-1222-46d60c-336097d9-b4023098
CSeq: 1 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1741093061/22126c4a969e0802181f360a2c3a2eb8",opaque="68404dc067f738ad",algorithm=md5,qop="auth"
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (649 bytes) from UDP:111.111.11.1:5065 --->
ACK sip:815123456@192.168.0.1:5060 SIP/2.0
From: "home_KL"<sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456"<sip:815123456@192.168.0.1>;tag=z9hG4bK-1222-46d60c-336097d9-b4023098
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
CSeq: 1 ACK
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d60c-336097d9-b4023098
Max-Forwards: 70
Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, UPDATE, OPTIONS, PRACK
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
X-Serialnumber: 55 23 56 89 56
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Received SIP request (1346 bytes) from UDP:111.111.11.1:5065 --->
INVITE sip:815123456@192.168.0.1:5060 SIP/2.0
From: "home_KL"<sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456"<sip:815123456@192.168.0.1:5060>
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
CSeq: 2 INVITE
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d617-40a8a07-b4023258
Max-Forwards: 70
Supported: replaces,100rel
Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, UPDATE, OPTIONS, PRACK
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
X-Serialnumber: 55 23 56 89 56
Contact: <sip:home_KL@111.111.11.1:5065>
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741093061/22126c4a969e0802181f360a2c3a2eb8",uri="sip:815123456@192.168.0.1:5060",response="4a49ed6b397f2dd1255328040c880f27",algorithm=MD5,cnonce="46d617",opaque="68404dc067f738ad",qop=auth,nc=00000001
Content-Type: application/sdp
Content-Length: 400
v=0
o=123456 1741093624 1741093624 IN IP4 111.111.11.1
s=-
c=IN IP4 111.111.11.1
t=0 0
m=audio 41872 RTP/AVP 107 8 0 18 96 108
a=rtpmap:107 AMR-WB/16000
a=fmtp:107 channels=1;mode-change-capability=2;max-red=220
a=fmtp:18 annexb=no
a=rtpmap:96 telephone-event/8000
a=fmtp:96 0-15
a=rtpmap:108 telephone-event/16000
a=fmtp:108 0-15
a=maxptime:240
a=silenceSupp:off - - - -
a=ptime:20
== Setting global variable 'SIPDOMAIN' to '192.168.0.1'
<--- Transmitting SIP response (408 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d617-40a8a07-b4023258
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
From: "home_KL" <sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456" <sip:815123456@192.168.0.1>
CSeq: 2 INVITE
Server: Asterisk PBX 15.3.0
Content-Length: 0
-- Executing [815123456@Phones:1] NoOp("PJSIP/home_KL-00000018", "home_KL") in new stack
-- Executing [815123456@Phones:2] Set("PJSIP/home_KL-00000018", "CALLERID(num)=my_number") in new stack
-- Executing [815123456@Phones:3] Goto("PJSIP/home_KL-00000018", "outgoing,815123456,2") in new stack
-- Goto (outgoing,815123456,2)
-- Executing [815123456@outgoing:2] Dial("PJSIP/home_KL-00000018", "PJSIP/815123456@Tan") in new stack
-- Called PJSIP/815123456@Tan
<--- Transmitting SIP request (951 bytes) to UDP:222.222.222.22:5060 --->
INVITE sip:815123456@my.isp.com SIP/2.0
Via: SIP/2.0/UDP 111.111.11.1:5060;rport;branch=z9hG4bKPje25641d5-b64e-4959-9a72-33a5792be927
From: "home_KL" <sip:my_number@192.168.0.1>;tag=03f5390a-3158-4b8e-abf3-ee7f20038e29
To: <sip:815123456@my.isp.com>
Contact: <sip:asterisk@111.111.11.1:5060>
Call-ID: 1679bbaa-adee-404e-8b0a-54df9a557455
CSeq: 17840 INVITE
Allow: OPTIONS, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, REGISTER, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 15.3.0
Content-Type: application/sdp
Content-Length: 259
v=0
o=- 803135795 803135795 IN IP4 111.111.11.1
s=Asterisk
c=IN IP4 111.111.11.1
t=0 0
m=audio 18224 RTP/AVP 0 8 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv
<--- Received SIP response (343 bytes) from UDP:222.222.222.22:5060 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 111.111.11.1:5060;received=111.111.11.1;branch=z9hG4bKPje25641d5-b64e-4959-9a72-33a5792be927;rport=5060
From: "home_KL" <sip:my_number@192.168.0.1>;tag=03f5390a-3158-4b8e-abf3-ee7f20038e29
To: <sip:815123456@my.isp.com>
Call-ID: 1679bbaa-adee-404e-8b0a-54df9a557455
CSeq: 17840 INVITE
<--- Received SIP response (374 bytes) from UDP:222.222.222.22:5060 --->
SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 111.111.11.1:5060;received=111.111.11.1;branch=z9hG4bKPje25641d5-b64e-4959-9a72-33a5792be927;rport=5060
From: "home_KL" <sip:my_number@192.168.0.1>;tag=03f5390a-3158-4b8e-abf3-ee7f20038e29
To: <sip:815123456@my.isp.com>;tag=aprqngfrt-90nnps2008h0b
Call-ID: 1679bbaa-adee-404e-8b0a-54df9a557455
CSeq: 17840 INVITE
<--- Transmitting SIP request (443 bytes) to UDP:222.222.222.22:5060 --->
ACK sip:815123456@my.isp.com SIP/2.0
Via: SIP/2.0/UDP 111.111.11.1:5060;rport;branch=z9hG4bKPje25641d5-b64e-4959-9a72-33a5792be927
From: "home_KL" <sip:my_number@192.168.0.1>;tag=03f5390a-3158-4b8e-abf3-ee7f20038e29
To: <sip:815123456@my.isp.com>;tag=aprqngfrt-90nnps2008h0b
Call-ID: 1679bbaa-adee-404e-8b0a-54df9a557455
CSeq: 17840 ACK
Max-Forwards: 70
User-Agent: Asterisk PBX 15.3.0
Content-Length: 0
== Everyone is busy/congested at this time (1:0/0/1)
-- Auto fallthrough, channel 'PJSIP/home_KL-00000018' status is 'CHANUNAVAIL'
<--- Transmitting SIP response (486 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d617-40a8a07-b4023258
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
From: "home_KL" <sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456" <sip:815123456@192.168.0.1>;tag=56dae352-f661-4329-b021-ede58c76ea10
CSeq: 2 INVITE
Server: Asterisk PBX 15.3.0
Reason: Q.850;cause=34
Content-Length: 0
<--- Received SIP request (647 bytes) from UDP:111.111.11.1:5065 --->
ACK sip:815123456@192.168.0.1:5060 SIP/2.0
From: "home_KL"<sip:home_KL@192.168.0.1>;tag=b405d6c8-74aa87d-13c9-83545D-571a4f6e-5fe9e490-46d60c
To: "815123456"<sip:815123456@192.168.0.1>;tag=56dae352-f661-4329-b021-ede58c76ea10
Call-ID: b40916b0-74aa87d-13c9-83545D-76787d14-43ef54ca-46d60c
CSeq: 2 ACK
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d617-40a8a07-b4023258
Max-Forwards: 70
Allow: INVITE, ACK, BYE, REFER, NOTIFY, CANCEL, UPDATE, OPTIONS, PRACK
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
X-Serialnumber: 55 23 56 89 56
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Received SIP request (809 bytes) from UDP:111.111.11.1:5065 --->
REGISTER sip:192.168.0.1 SIP/2.0
From: <sip:home_KL@192.168.0.1>;tag=b405cdb8-74aa87d-13c9-83545D-bb65967-385c001d-41a5e0
To: <sip:home_KL@192.168.0.1>
Call-ID: b40aab78-74aa87d-13c9-83545D-4e3d6305-7388e187-41a5e0
CSeq: 3 REGISTER
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d84c-17d8264d-b4022b58
Max-Forwards: 70
Supported: replaces,100rel
X-Serialnumber: 55 23 56 89 56
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
Expires: 0
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741092721/db88bf9d1ad846fc1360865ebf1ff88f",uri="sip:192.168.0.1:5060",response="4ac85a9ebb4c4772f011f81e2dc9d4b6",algorithm=MD5,cnonce="46d84d",opaque="7c6709f515df9e70",qop=auth,nc=00000002
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Transmitting SIP response (594 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d84c-17d8264d-b4022b58
Call-ID: b40aab78-74aa87d-13c9-83545D-4e3d6305-7388e187-41a5e0
From: <sip:home_KL@192.168.0.1>;tag=b405cdb8-74aa87d-13c9-83545D-bb65967-385c001d-41a5e0
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1222-46d84c-17d8264d-b4022b58
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1741093062/1afc67560bf324322be07df2cb974a08",opaque="52cf85580f42f8e6",stale=true,algorithm=md5,qop="auth"
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (809 bytes) from UDP:111.111.11.1:5065 --->
REGISTER sip:192.168.0.1 SIP/2.0
From: <sip:home_KL@192.168.0.1>;tag=b405cdb8-74aa87d-13c9-83545D-bb65967-385c001d-41a5e0
To: <sip:home_KL@192.168.0.1>
Call-ID: b40aab78-74aa87d-13c9-83545D-4e3d6305-7388e187-41a5e0
CSeq: 4 REGISTER
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d856-2561cb43-b4023418
Max-Forwards: 70
Supported: replaces,100rel
X-Serialnumber: 55 23 56 89 56
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
Expires: 0
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741093062/1afc67560bf324322be07df2cb974a08",uri="sip:192.168.0.1:5060",response="0afa9608c372be310df11b71f2f33f51",algorithm=MD5,cnonce="46d856",opaque="52cf85580f42f8e6",qop=auth,nc=00000001
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
-- Removed contact 'sip:home_KL@111.111.11.1:5065' from AOR 'home_KL' due to request
== Contact home_KL/sip:home_KL@111.111.11.1:5065 has been deleted
<--- Transmitting SIP response (503 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d856-2561cb43-b4023418
Call-ID: b40aab78-74aa87d-13c9-83545D-4e3d6305-7388e187-41a5e0
From: <sip:home_KL@192.168.0.1>;tag=b405cdb8-74aa87d-13c9-83545D-bb65967-385c001d-41a5e0
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1222-46d856-2561cb43-b4023418
CSeq: 4 REGISTER
Date: Tue, 04 Mar 2025 12:57:42 GMT
Contact: <sip:192.168.0.1>
Expires: 0
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (552 bytes) from UDP:111.111.11.1:5065 --->
REGISTER sip:192.168.0.1 SIP/2.0
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
CSeq: 1 REGISTER
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d879-503ab5d1-b40235d8
Max-Forwards: 70
Supported: replaces,100rel
X-Serialnumber: 55 23 56 89 56
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
Expires: 600
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Transmitting SIP response (583 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d879-503ab5d1-b40235d8
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1222-46d879-503ab5d1-b40235d8
CSeq: 1 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1741093062/1afc67560bf324322be07df2cb974a08",opaque="262113eb5ce48ed8",algorithm=md5,qop="auth"
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (811 bytes) from UDP:111.111.11.1:5065 --->
REGISTER sip:192.168.0.1 SIP/2.0
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
CSeq: 2 REGISTER
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1222-46d895-67348f7f-b4023798
Max-Forwards: 70
Supported: replaces,100rel
X-Serialnumber: 55 23 56 89 56
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
Expires: 600
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741093062/1afc67560bf324322be07df2cb974a08",uri="sip:192.168.0.1:5060",response="1df7e32e27f5614629f2cf4d08ca0393",algorithm=MD5,cnonce="46d895",opaque="262113eb5ce48ed8",qop=auth,nc=00000001
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
-- Added contact 'sip:home_KL@111.111.11.1:5065' to AOR 'home_KL' with expiration of 600 seconds
== Contact home_KL/sip:home_KL@111.111.11.1:5065 has been created
<--- Transmitting SIP response (559 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1222-46d895-67348f7f-b4023798
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1222-46d895-67348f7f-b4023798
CSeq: 2 REGISTER
Date: Tue, 04 Mar 2025 12:57:42 GMT
Contact: <sip:home_KL@111.111.11.1:5065>;expires=599
Contact: <sip:192.168.0.1>
Expires: 600
Server: Asterisk PBX 15.3.0
Content-Length: 0
-- Contact home_KL/sip:home_KL@111.111.11.1:5065 is now Unknown. RTT: 0.000 msec
<--- Received SIP request (497 bytes) from UDP:111.111.11.1:5065 --->
SUBSCRIBE sip:home_KL@192.168.0.1:5060 SIP/2.0
From: <sip:home_KL@192.168.0.1:5060>;tag=b405e1a8-74aa87d-13c9-83545D-51e2e91e-52b0d7e6-46dc96
To: <sip:home_KL@192.168.0.1:5060>
Call-ID: b40918f8-74aa87d-13c9-83545D-7dcc865-80575c8-46dc96
CSeq: 1 SUBSCRIBE
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1223-46dc96-19db4040-b4023b18
Expires: 86400
Event: message-summary
Max-Forwards: 70
Supported: replaces,100rel
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Transmitting SIP response (583 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1223-46dc96-19db4040-b4023b18
Call-ID: b40918f8-74aa87d-13c9-83545D-7dcc865-80575c8-46dc96
From: <sip:home_KL@192.168.0.1>;tag=b405e1a8-74aa87d-13c9-83545D-51e2e91e-52b0d7e6-46dc96
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1223-46dc96-19db4040-b4023b18
CSeq: 1 SUBSCRIBE
WWW-Authenticate: Digest realm="asterisk",nonce="1741093063/b75d7523041e880a3137ca2ed1780e44",opaque="0b5880583cee0934",algorithm=md5,qop="auth"
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (764 bytes) from UDP:111.111.11.1:5065 --->
SUBSCRIBE sip:home_KL@192.168.0.1:5060 SIP/2.0
From: <sip:home_KL@192.168.0.1:5060>;tag=b405e1a8-74aa87d-13c9-83545D-51e2e91e-52b0d7e6-46dc96
To: <sip:home_KL@192.168.0.1:5060>
Call-ID: b40918f8-74aa87d-13c9-83545D-7dcc865-80575c8-46dc96
CSeq: 2 SUBSCRIBE
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1223-46dc9d-57281166-b4023cd8
Expires: 86400
Event: message-summary
Max-Forwards: 70
Supported: replaces,100rel
Contact: <sip:home_KL@111.111.11.1:5065>
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741093063/b75d7523041e880a3137ca2ed1780e44",uri="sip:home_KL@192.168.0.1:5060",response="f703d9d8bd242b24d5dd571755fb56f5",algorithm=MD5,cnonce="46dc9d",opaque="0b5880583cee0934",qop=auth,nc=00000001
Content-Length: 0
<--- Transmitting SIP response (433 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 404 Not Found
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1223-46dc9d-57281166-b4023cd8
Call-ID: b40918f8-74aa87d-13c9-83545D-7dcc865-80575c8-46dc96
From: <sip:home_KL@192.168.0.1>;tag=b405e1a8-74aa87d-13c9-83545D-51e2e91e-52b0d7e6-46dc96
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1223-46dc9d-57281166-b4023cd8
CSeq: 2 SUBSCRIBE
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (811 bytes) from UDP:111.111.11.1:5065 --->
REGISTER sip:192.168.0.1 SIP/2.0
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
CSeq: 3 REGISTER
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1451-4f6046-6e06e2f7-b4023958
Max-Forwards: 70
Supported: replaces,100rel
X-Serialnumber: 55 23 56 89 56
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
Expires: 600
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741093062/1afc67560bf324322be07df2cb974a08",uri="sip:192.168.0.1:5060",response="96584efbad2966ad9c4488c062a3441c",algorithm=MD5,cnonce="4f6047",opaque="262113eb5ce48ed8",qop=auth,nc=00000002
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Transmitting SIP response (594 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1451-4f6046-6e06e2f7-b4023958
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1451-4f6046-6e06e2f7-b4023958
CSeq: 3 REGISTER
WWW-Authenticate: Digest realm="asterisk",nonce="1741093621/5c5aa8d9d19bf32f93b44aabf99e5795",opaque="47d493af60faee7e",stale=true,algorithm=md5,qop="auth"
Server: Asterisk PBX 15.3.0
Content-Length: 0
<--- Received SIP request (810 bytes) from UDP:111.111.11.1:5065 --->
REGISTER sip:192.168.0.1 SIP/2.0
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
CSeq: 4 REGISTER
Via: SIP/2.0/UDP 111.111.11.1:5065;rport;branch=z9hG4bK-1452-4f6051-f0d6905-b4023e98
Max-Forwards: 70
Supported: replaces,100rel
X-Serialnumber: 55 23 56 89 56
User-Agent: MyRouter 123456 Build 555555 5555555 55555 -- 55 23 56 89 56
Expires: 600
Authorization: Digest username="home_KL",realm="asterisk",nonce="1741093621/5c5aa8d9d19bf32f93b44aabf99e5795",uri="sip:192.168.0.1:5060",response="b44324078bcc568f9b2be0d547e96524",algorithm=MD5,cnonce="4f6051",opaque="47d493af60faee7e",qop=auth,nc=00000001
Contact: <sip:home_KL@111.111.11.1:5065>
Content-Length: 0
<--- Transmitting SIP response (557 bytes) to UDP:111.111.11.1:5065 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 111.111.11.1:5065;rport=5065;received=111.111.11.1;branch=z9hG4bK-1452-4f6051-f0d6905-b4023e98
Call-ID: b40aad20-74aa87d-13c9-83545D-37cebe7-3c595222-46d878
From: <sip:home_KL@192.168.0.1>;tag=b405dc38-74aa87d-13c9-83545D-40b343eb-33b25f68-46d878
To: <sip:home_KL@192.168.0.1>;tag=z9hG4bK-1452-4f6051-f0d6905-b4023e98
CSeq: 4 REGISTER
Date: Tue, 04 Mar 2025 13:07:01 GMT
Contact: <sip:home_KL@111.111.11.1:5065>;expires=599
Contact: <sip:192.168.0.1>
Expires: 600
Server: Asterisk PBX 15.3.0
Content-Length: 0
legend-
815123456 is the number I am dialling.
111.111.11.1 is my IP
I noticed the lines-
SIP/2.0 503 Service Unavailable
Reason: Q.850;cause=34
SIP/2.0 401 Unauthorized
My pjsip.conf part for the offending provider (the same for the working provider)-
[global]
type=global
; Define the transport
[transport-udp]
type=transport
protocol=udp
bind=0.0.0.0:5060
; #### Phones ####
; ## home_KL (Phone) ##
[home_KL]
type=endpoint
context=Phones
disallow=all
allow=ulaw,alaw
auth=home_KL
aors=home_KL
direct_media=yes
[home_KL]
type=auth
auth_type=userpass
username=home_KL
password=<my_password>
[home_KL]
type=aor
max_contacts=1
contact=sip:192.168.0.1
; ## Service-Provider1 ##
[Service-Provider1]
type=endpoint
context=Service-Provider1
disallow=all
allow=ulaw,alaw
outbound_auth=Service-Provider1
auth=Service-Provider1
aors=Service-Provider1
direct_media=yes
[Service-Provider1]
type=auth
auth_type=userpass
username=<my_number>
password=<my_password>
[Service-Provider1]
type=aor
max_contacts=1
contact=sip:my.provider.com
My extesnions.conf part for the offending provider.-
; # Dial Extension Tan #
exten => _X.,1,NoOp(${CALLERID(num)})
same => n,Set(CALLERID(num)=<my_number>)
same => n,Goto(outgoing,${EXTEN},2)
; ## Outgoing calls ##
; # Outgoing Providers #
[outgoing]
exten => _X.,1,Dial(PJSIP/${EXTEN}@Other)
exten => _X.,2,Dial(PJSIP/${EXTEN}@Tan)
Can anyone tell me some of the main reasons as to why voip providers can reject PJSIP as opposed to chan_sip, which in this case works fine, so I can troubleshoot this issue and one by one try solutions.
I have done some reading but am stuck, after reading the log file I do not believe CALLERID is the issue.
Any help is appreciated.