Hello,
I’m trying to setup an Asterisk 16 inside my router (OpenWrt) to work with my ISP trunk VoIP service (RED by SFR).
- The router is doing IPv4 NAT and I’m using a Internal extension to make calls outside.
- +33666666666 is the trunk phone number
- 0777777777 is the phone where I call
The Asterisk is able to register and make calls between local extensions. But if I try to make a outgoing call I receive 407 Proxy Authentication Required from my trunk.
However, using exactly the same config in Zoiper I can make the call and the phone is ringing. This is the summary of the Asterisk flow:
turris*CLI> pjsip show history
No. Timestamp (Dir) Address SIP Message
===== ========== ============================== ===================================
00000 1629472725 * ==> 77.136.6.29:5062 REGISTER sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
00001 1629472725 * <== 77.136.6.29:5062 SIP/2.0 401 Unauthorized
00002 1629472725 * ==> 77.136.6.29:5062 REGISTER sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
00003 1629472726 * <== 77.136.6.29:5062 SIP/2.0 200 OK
00004 1629472735 * <== 192.168.66.151:61309 INVITE sip:0777777777@turris.lan;transport=UDP SIP/2.0
00005 1629472735 * ==> 192.168.66.151:61309 SIP/2.0 401 Unauthorized
00006 1629472735 * <== 192.168.66.151:61309 ACK sip:0777777777@turris.lan;transport=UDP SIP/2.0
00007 1629472735 * <== 192.168.66.151:61309 INVITE sip:0777777777@turris.lan;transport=UDP SIP/2.0
00008 1629472735 * ==> 192.168.66.151:61309 SIP/2.0 100 Trying
00009 1629472735 * ==> 77.136.6.85:5062 INVITE sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
00010 1629472735 * <== 77.136.6.85:5062 SIP/2.0 100 Trying
00011 1629472735 * <== 77.136.6.85:5062 SIP/2.0 407 Proxy Authentication Required
00012 1629472735 * ==> 77.136.6.85:5062 ACK sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
00013 1629472735 * ==> 192.168.66.151:61309 SIP/2.0 503 Service Unavailable
00014 1629472735 * <== 192.168.66.151:61309 ACK sip:0777777777@turris.lan;transport=UDP SIP/2.0
Asterisk FULL LOG
Asterisk full log
<--- History Entry 0 Sent to 77.136.6.29:5062 at 1629472725 --->
REGISTER sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:5060;rport;branch=z9hG4bKPj4fc82350-86fb-4d2d-9a0e-2ec5f632f347
Route: <sip:residential.p-cscf.sfr.net;lr>
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=a22e62cb-5b3f-4f5f-95e4-ee8255e2a8d0
To: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>
Call-ID: 23dc936a-ecd9-4203-bd2d-9e442fe9bbaa
CSeq: 3558 REGISTER
Contact: <sip:s@78.78.78.78:5060>
Expires: 3600
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Max-Forwards: 70
User-Agent: Asterisk PBX 16.3.0
Content-Length: 0
<--- History Entry 1 Received from 77.136.6.29:5062 at 1629472725 --->
SIP/2.0 401 Unauthorized
Call-ID: 23dc936a-ecd9-4203-bd2d-9e442fe9bbaa
Via: SIP/2.0/UDP 78.78.78.78:5060;rport=5060;received=78.78.78.78;branch=z9hG4bKPj4fc82350-86fb-4d2d-9a0e-2ec5f632f347
To: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=60da4d83-611fc7d53ac1f3a1
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=a22e62cb-5b3f-4f5f-95e4-ee8255e2a8d0
CSeq: 3558 REGISTER
Date: Fri, 20 Aug 2021 15:18:45 GMT
Server: Alcatel-Lucent-HPSS/3.0.3
WWW-Authenticate: Digest realm="sfr.fr",nonce="611fc7d4b7c9036dbf3054aea940e9703dc8f84c0008",opaque="ALU:QbkRBthOEgEQAkgFAQ0NWEYBBBpdGQIRQkVbHxoLVwknMG0qIDJ9fXlze3c1Yy42OG9q",algorithm=MD5,qop="auth"
Content-Length: 0
Content-Length: 0
<--- History Entry 2 Sent to 77.136.6.29:5062 at 1629472725 --->
REGISTER sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:5060;rport;branch=z9hG4bKPjee3e4e73-1b20-4459-8df7-b8d9958ada81
Route: <sip:residential.p-cscf.sfr.net;lr>
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=a22e62cb-5b3f-4f5f-95e4-ee8255e2a8d0
To: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>
Call-ID: 23dc936a-ecd9-4203-bd2d-9e442fe9bbaa
CSeq: 3559 REGISTER
Contact: <sip:s@78.78.78.78:5060>
Expires: 3600
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Max-Forwards: 70
User-Agent: Asterisk PBX 16.3.0
Authorization: Digest username="NDI0567891234.MPY.THD@sfr.fr", realm="sfr.fr", nonce="611fc7d4b7c9036dbf3054aea940e9703dc8f84c0008", uri="sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org", response="96969846d97a4009ff7e036a9e48d2c0", algorithm=MD5, cnonce="32b5a138-79c7-44e1-b3e1-1ac92d9d2be4", opaque="ALU:QbkRBthOEgEQAkgFAQ0NWEYBBBpdGQIRQkVbHxoLVwknMG0qIDJ9fXlze3c1Yy42OG9q", qop=auth, nc=00000001
Content-Length: 0
<--- History Entry 3 Received from 77.136.6.29:5062 at 1629472726 --->
SIP/2.0 200 OK
Call-ID: 23dc936a-ecd9-4203-bd2d-9e442fe9bbaa
Via: SIP/2.0/UDP 78.78.78.78:5060;rport=5060;received=78.78.78.78;branch=z9hG4bKPjee3e4e73-1b20-4459-8df7-b8d9958ada81
To: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=60da4d83-611fc7d6165cf9a
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=a22e62cb-5b3f-4f5f-95e4-ee8255e2a8d0
CSeq: 3559 REGISTER
Allow-Events: reg
Contact: <sip:s@78.78.78.78:5060;transport=udp>;expires=3175
Date: Fri, 20 Aug 2021 15:18:46 GMT
Path: <sip:pcgw-0006.imsgroup0-027.mit2isc12.ims.sfr.net:5062;lr;ottag=ue_term;bidx=49555192;access-type=ADSL>
P-Associated-URI: Main <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>
P-Associated-URI: Alias <tel:+33666666666>
Server: Alcatel-Lucent-HPSS/3.0.3
Content-Length: 0
Content-Length: 0
<--- History Entry 4 Received from 192.168.66.151:61309 at 1629472735 --->
INVITE sip:0777777777@turris.lan;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:61309;received=192.168.66.151;branch=z9hG4bK-d8754z-a966271236384795-1---d8754z-
Max-Forwards: 70
Contact: <sip:6001@78.78.78.78:61309;transport=UDP>
To: <sip:0777777777@turris.lan>
From: <sip:6001@turris.lan>;tag=040dc143
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
CSeq: 1 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Allow-Events: presence, kpml
Content-Length: 198
Content-Type: application/sdp
Content-Length: 198
v=0
o=Z 0 0 IN IP4 78.78.78.78
s=Z
c=IN IP4 78.78.78.78
t=0 0
m=audio 8000 RTP/AVP 110 8 0 3 101
a=rtpmap:110 speex/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
<--- History Entry 5 Sent to 192.168.66.151:61309 at 1629472735 --->
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 78.78.78.78:61309;rport=61309;received=192.168.66.151;branch=z9hG4bK-d8754z-a966271236384795-1---d8754z-
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
From: <sip:6001@turris.lan>;tag=040dc143
To: <sip:0777777777@turris.lan>;tag=z9hG4bK-d8754z-a966271236384795-1---d8754z-
CSeq: 1 INVITE
WWW-Authenticate: Digest realm="asterisk",nonce="1629472735/bc0dc48d30b95512ad9c70f7ec32e6d7",opaque="1c7ceb3f33076342",algorithm=md5,qop="auth"
Server: Asterisk PBX 16.3.0
Content-Length: 0
<--- History Entry 6 Received from 192.168.66.151:61309 at 1629472735 --->
ACK sip:0777777777@turris.lan;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:61309;received=192.168.66.151;branch=z9hG4bK-d8754z-a966271236384795-1---d8754z-
Max-Forwards: 70
To: <sip:0777777777@turris.lan>;tag=z9hG4bK-d8754z-a966271236384795-1---d8754z-
From: <sip:6001@turris.lan>;tag=040dc143
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
CSeq: 1 ACK
Content-Length: 0
Content-Length: 0
<--- History Entry 7 Received from 192.168.66.151:61309 at 1629472735 --->
INVITE sip:0777777777@turris.lan;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:61309;received=192.168.66.151;branch=z9hG4bK-d8754z-3acd286c0c0b0b8d-1---d8754z-
Max-Forwards: 70
Contact: <sip:6001@78.78.78.78:61309;transport=UDP>
To: <sip:0777777777@turris.lan>
From: <sip:6001@turris.lan>;tag=040dc143
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
CSeq: 2 INVITE
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE, OPTIONS, INFO, SUBSCRIBE
Content-Type: application/sdp
Supported: replaces, norefersub, extended-refer, timer, X-cisco-serviceuri
User-Agent: Z 3.3.25608 r25552
Authorization: Digest username="6001", realm="asterisk", nonce="1629472735/bc0dc48d30b95512ad9c70f7ec32e6d7", uri="sip:0777777777@turris.lan;transport=UDP", response="cbbca69370261af9a39d47f33772626d", algorithm=md5, cnonce="4b69b6fe31677d7600a0f3a8a1bd2f84", opaque="1c7ceb3f33076342", qop=auth, nc=00000001
Allow-Events: presence, kpml
Content-Length: 198
Content-Type: application/sdp
Content-Length: 198
v=0
o=Z 0 0 IN IP4 78.78.78.78
s=Z
c=IN IP4 78.78.78.78
t=0 0
m=audio 8000 RTP/AVP 110 8 0 3 101
a=rtpmap:110 speex/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
<--- History Entry 8 Sent to 192.168.66.151:61309 at 1629472735 --->
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 78.78.78.78:61309;rport=61309;received=192.168.66.151;branch=z9hG4bK-d8754z-3acd286c0c0b0b8d-1---d8754z-
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
From: <sip:6001@turris.lan>;tag=040dc143
To: <sip:0777777777@turris.lan>
CSeq: 2 INVITE
Server: Asterisk PBX 16.3.0
Content-Length: 0
<--- History Entry 9 Sent to 77.136.6.85:5062 at 1629472735 --->
INVITE sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:5060;rport;branch=z9hG4bKPj0ce760b3-e56e-4f08-a9a0-fa5b5639b6d7
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=a4d06737-36e6-4885-af64-aec2ddfed286
To: <sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org>
Contact: <sip:+33666666666@78.78.78.78:5060>
Call-ID: 8ef16633-8350-4cb4-9cae-f7fff49da472
CSeq: 22215 INVITE
Route: <sip:residential.p-cscf.sfr.net;lr>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: Asterisk PBX 16.3.0
Content-Type: application/sdp
Content-Length: 371
v=0
o=- 1528245361 1528245361 IN IP4 78.78.78.78
s=Asterisk
c=IN IP4 78.78.78.78
t=0 0
m=audio 11694 RTP/AVP 110 8 0 107 9 3 101
a=rtpmap:110 speex/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:107 opus/48000/2
a=rtpmap:9 G722/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:60
a=sendrecv
<--- History Entry 10 Received from 77.136.6.85:5062 at 1629472735 --->
SIP/2.0 100 Trying
Call-ID: 8ef16633-8350-4cb4-9cae-f7fff49da472
Via: SIP/2.0/UDP 78.78.78.78:5060;rport=5060;received=78.78.78.78;branch=z9hG4bKPj0ce760b3-e56e-4f08-a9a0-fa5b5639b6d7
To: <sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org;user=phone>
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;user=phone>;tag=a4d06737-36e6-4885-af64-aec2ddfed286
CSeq: 22215 INVITE
Date: Fri, 20 Aug 2021 15:18:55 GMT
Server: Alcatel-Lucent-HPSS/3.0.3
Content-Length: 0
Content-Length: 0
<--- History Entry 11 Received from 77.136.6.85:5062 at 1629472735 --->
SIP/2.0 407 Proxy Authentication Required
Call-ID: 8ef16633-8350-4cb4-9cae-f7fff49da472
Via: SIP/2.0/UDP 78.78.78.78:5060;rport=5060;received=78.78.78.78;branch=z9hG4bKPj0ce760b3-e56e-4f08-a9a0-fa5b5639b6d7
To: <sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org;user=phone>;tag=611db1ce-611fc7df92d53a0
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;user=phone>;tag=a4d06737-36e6-4885-af64-aec2ddfed286
CSeq: 22215 INVITE
Date: Fri, 20 Aug 2021 15:18:55 GMT
Server: Alcatel-Lucent-HPSS/3.0.3
Content-Length: 0
Content-Length: 0
<--- History Entry 12 Sent to 77.136.6.85:5062 at 1629472735 --->
ACK sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:5060;rport;branch=z9hG4bKPj0ce760b3-e56e-4f08-a9a0-fa5b5639b6d7
From: <sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org>;tag=a4d06737-36e6-4885-af64-aec2ddfed286
To: <sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org>;tag=611db1ce-611fc7df92d53a0
Call-ID: 8ef16633-8350-4cb4-9cae-f7fff49da472
CSeq: 22215 ACK
Route: <sip:residential.p-cscf.sfr.net;lr>
Max-Forwards: 70
User-Agent: Asterisk PBX 16.3.0
Content-Length: 0
<--- History Entry 13 Sent to 192.168.66.151:61309 at 1629472735 --->
SIP/2.0 503 Service Unavailable
Via: SIP/2.0/UDP 78.78.78.78:61309;rport=61309;received=192.168.66.151;branch=z9hG4bK-d8754z-3acd286c0c0b0b8d-1---d8754z-
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
From: <sip:6001@turris.lan>;tag=040dc143
To: <sip:0777777777@turris.lan>;tag=ac7bb8b1-f171-4fee-824d-f2f600c66d9e
CSeq: 2 INVITE
Server: Asterisk PBX 16.3.0
Reason: Q.850;cause=34
Content-Length: 0
<--- History Entry 14 Received from 192.168.66.151:61309 at 1629472735 --->
ACK sip:0777777777@turris.lan;transport=UDP SIP/2.0
Via: SIP/2.0/UDP 78.78.78.78:61309;received=192.168.66.151;branch=z9hG4bK-d8754z-3acd286c0c0b0b8d-1---d8754z-
Max-Forwards: 70
To: <sip:0777777777@turris.lan>;tag=ac7bb8b1-f171-4fee-824d-f2f600c66d9e
From: <sip:6001@turris.lan>;tag=040dc143
Call-ID: NDRlYTc3NDk4ODE3Nzc1N2Y1Y2RkMDI0NzRjYTJmZjQ.
CSeq: 2 ACK
Content-Length: 0
Content-Length: 0
Doing exactly the same with Zoiper it works:
Zoiper summary
1 0.000000000 192.168.66.151 → 192.168.66.1 SIP 684 Request: SUBSCRIBE sip:6001@turris.lan;transport=UDP, in-dialog |
2 3.908886647 192.168.66.151 → 77.136.6.29 SIP 802 Request: REGISTER sip:ims.mnc010.mcc208.3gppnetwork.org;transport=UDP (1 binding) |
3 3.954568282 77.136.6.29 → 192.168.66.151 SIP 764 Status: 401 Unauthorized |
4 3.957038920 192.168.66.151 → 77.136.6.29 SIP 1198 Request: REGISTER sip:ims.mnc010.mcc208.3gppnetwork.org;transport=UDP (1 binding) |
5 4.000536169 192.168.66.151 → 192.168.66.1 SIP 684 Request: SUBSCRIBE sip:6001@turris.lan;transport=UDP, in-dialog |
6 4.006867152 77.136.6.29 → 192.168.66.151 SIP 885 Status: 200 OK (1 binding) |
7 4.109179022 192.168.66.151 → 77.136.6.29 SIP/XML 1137 Request: PUBLISH sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;transport=UDP |
8 4.109207276 192.168.66.151 → 77.136.6.29 SIP 849 Request: SUBSCRIBE sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;transport=UDP |
9 4.109219248 192.168.66.151 → 77.136.6.29 SIP 858 Request: SUBSCRIBE sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;transport=UDP |
10 4.166772531 77.136.6.29 → 192.168.66.151 SIP 1300 Request: SUBSCRIBE sip:+33666666666@78.78.78.78:61309;transport=udp;rinstance=f0a91254d6955f5e |
11 4.168810217 192.168.66.151 → 77.136.6.29 SIP 553 Status: 489 Event Package Not Supported |
12 4.172376089 77.136.6.29 → 192.168.66.151 SIP/XML 1474 Request: PUBLISH sip:+33666666666@78.78.78.78:61309;transport=udp;rinstance=f0a91254d6955f5e |
13 4.174100742 192.168.66.151 → 77.136.6.29 SIP 563 Status: 405 Method Not Allowed |
14 4.178223193 77.136.6.29 → 192.168.66.151 SIP 1291 Request: SUBSCRIBE sip:+33666666666@78.78.78.78:61309;transport=udp;rinstance=f0a91254d6955f5e |
15 4.180252807 192.168.66.151 → 77.136.6.29 SIP 553 Status: 489 Event Package Not Supported |
16 4.191492274 77.136.6.29 → 192.168.66.151 SIP 534 Status: 489 Event Package Not Supported |
17 4.197361410 77.136.6.29 → 192.168.66.151 SIP 703 Status: 405 Method Not Allowed |
18 4.203337010 77.136.6.29 → 192.168.66.151 SIP 534 Status: 489 Event Package Not Supported |
19 8.000673765 192.168.66.151 → 192.168.66.1 SIP 684 Request: SUBSCRIBE sip:6001@turris.lan;transport=UDP, in-dialog |
20 12.008000224 192.168.66.151 → 192.168.66.1 SIP 684 Request: SUBSCRIBE sip:6001@turris.lan;transport=UDP, in-dialog |
21 19.444292775 192.168.66.151 → 77.136.6.29 SIP/XML 1143 Request: PUBLISH sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;transport=UDP |
22 19.444317297 192.168.66.151 → 77.136.6.29 SIP 849 Request: SUBSCRIBE sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org;transport=UDP |
23 19.497281096 77.136.6.29 → 192.168.66.151 SIP/XML 1480 Request: PUBLISH sip:+33666666666@78.78.78.78:61309;transport=udp;rinstance=f0a91254d6955f5e |
24 19.497866885 192.168.66.151 → 77.136.6.29 SIP/SDP 1041 Request: INVITE sip:0777777777@ims.mnc010.mcc208.3gppnetwork.org;transport=UDP |
25 19.497958369 192.168.66.151 → 77.136.6.29 SIP 563 Status: 405 Method Not Allowed |
26 19.513583134 77.136.6.29 → 192.168.66.151 SIP 521 Status: 100 Trying |
27 19.513583303 77.136.6.29 → 192.168.66.151 SIP 1291 Request: SUBSCRIBE sip:+33666666666@78.78.78.78:61309;transport=udp;rinstance=f0a91254d6955f5e |
28 19.514337802 192.168.66.151 → 77.136.6.29 SIP 553 Status: 489 Event Package Not Supported |
29 19.523467562 77.136.6.29 → 192.168.66.151 SIP 703 Status: 405 Method Not Allowed |
30 19.582682555 77.136.6.29 → 192.168.66.151 SIP 534 Status: 489 Event Package Not Supported |
31 21.865574051 77.136.6.29 → 192.168.66.151 SIP/SDP 1112 Status: 183 Session Progress |
32 22.122766742 77.136.6.29 → 192.168.66.151 SIP/SDP 1103 Status: 180 Ringing |
Zoiper FULL LOG
My PJSIP conf:
[transport-udp]
type = transport
protocol = udp
bind = 0.0.0.0
[reg_residential.p-cscf.sfr.net]
type = registration
outbound_auth = auth_reg_residential.p-cscf.sfr.net
client_uri = sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org
server_uri = sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org
outbound_proxy = sip:residential.p-cscf.sfr.net\;lr
[auth_reg_residential.p-cscf.sfr.net]
type = auth
password = TOP secret :)
username = NDI0567891234.MPY.THD@sfr.fr
[sfr-out]
type = aor
contact = sip:+33666666666@ims.mnc010.mcc208.3gppnetwork.org
outbound_proxy = sip:residential.p-cscf.sfr.net\;lr
[sfr-out]
type = identify
endpoint = sfr-out
match = residential.p-cscf.sfr.net
[sfr-out]
type = endpoint
context = from-sfr
outbound_auth = auth_reg_residential.p-cscf.sfr.net
from_domain = ims.mnc010.mcc208.3gppnetwork.org
from_user = +33666666666
allow=!all,opus,speex,g722,alaw,ulaw,gsm
outbound_proxy = sip:residential.p-cscf.sfr.net\;lr
aors = sfr-out
;===============EXTENSION 6001
[6001]
type=endpoint
context=internal
auth=auth6001
aors=6001
allow=!all,opus,speex,g722,alaw,ulaw
[auth6001]
type=auth
auth_type=userpass
password=6001
username=6001
[6001]
type=aor
max_contacts = 999
[6002]
type=endpoint
context=internal
auth=auth6002
aors=6002
allow=!all,opus,speex,g722,alaw,ulaw
[auth6002]
type=auth
auth_type=userpass
password=6002
username=6002
[6002]
type=aor
max_contacts = 999
Extension block:
CONSOLE=Console/dsp ; Console interface for demo
IAXINFO=guest ; IAXtel username/password
TRUNK=DAHDI/G2 ; Trunk interface
TRUNKMSD=1 ; MSD digits to strip (usually 1 or 0)
[internal]
exten => _0XXXXXXXXX,1,Dial(PJSIP/${EXTEN}@sfr-out)
exten => 6000,1,Ringing()
exten => 6000,n,Wait(3)
exten => 6000,n,Answer()
exten => 6000,n,Playback(hello-world)
exten => 6000,n,Wait(1)
exten => 6000,n,SayDigits(${CALLERID(num)})
exten => 6000,n,Wait(1)
exten => 6000,n,Playback(channel)
exten => 6000,n,Wait(1)
exten => 6000,n,SayAlpha(${CHANNEL})
exten => 6000,n,Wait(1)
exten => 6000,n,Hangup()
exten => _6XXX,1,Dial(PJSIP/${EXTEN})
Any advice? The INVITE message seems the same for me, but I only get a 407 error from Asterisk
Thank you in advance
BR,
Valentín