Seeking Advice with Configuring Telnyx SIP Trunk on VitalPBX v4

I recently decided to explore VitalPBX version 4 and came to realize that there are some significant differences compared to its predecessor, particularly in terms of certain terminology, icons, and functionality. Notably, the SIP trunk setup no longer seems to support SIP configuration method as before. I am currently evaluating whether or not to continue using VitalPBX in light of these changes.

On that note, I am seeking assistance from anyone who has experience configuring a SIP trunk to Telnyx on VitalPBX version 4.
For reference, I have included a screenshot of our configuration on VitalPBX version 3.0 below (with sensitive information such as passwords and usernames redacted)
Any guidance on how to adapt our current Telnyx SIP trunk settings to the new version would be greatly appreciated.

The form for SIP and PJSIP are quite similar.

Thank you Miguel, it worked

Hi Miguel, I have discovered that the registration is happening but no calls can be made

    -- Goto (trk-1-dial,12488418561,37)
    -- Executing [12488418561@trk-1-dial:37] NoOp("PJSIP/100-00000002", "End Fax Section") in new stack
    -- Executing [12488418561@trk-1-dial:38] Gosub("PJSIP/100-00000002", "sub-setup-callrec-name,s,1") in new stack
    -- Executing [s@sub-setup-callrec-name:1] NoOp("PJSIP/100-00000002", "Setting up call recording file name for 8eedaf332be054ed") in new stack
    -- Executing [s@sub-setup-callrec-name:2] GotoIf("PJSIP/100-00000002", "0?end") in new stack
    -- Executing [s@sub-setup-callrec-name:3] Set("PJSIP/100-00000002", "RECORDING_ID=1683466031.4") in new stack
    -- Executing [s@sub-setup-callrec-name:4] Set("PJSIP/100-00000002", "APP_TYPE=NONE") in new stack
    -- Executing [s@sub-setup-callrec-name:5] Set("PJSIP/100-00000002", "AUDIO_FILE=132711-OUT-NONE-100-12488418561-1683466031.4") in new stack
    -- Executing [s@sub-setup-callrec-name:6] Set("PJSIP/100-00000002", "RECORDING_FORMAT=wav") in new stack
    -- Executing [s@sub-setup-callrec-name:7] Set("PJSIP/100-00000002", "__REC_FILENAME=/var/spool/asterisk/monitor/2023/05/07/132711-OUT-NONE-100-12488418561-1683466031.4.wav") in new stack
    -- Executing [s@sub-setup-callrec-name:8] GotoIf("PJSIP/100-00000002", "0?:end") in new stack
    -- Goto (sub-setup-callrec-name,s,11)
    -- Executing [s@sub-setup-callrec-name:11] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [12488418561@trk-1-dial:39] Dial("PJSIP/100-00000002", "PJSIP/12488418561@v27500,90,kKtrU(sub-before-bridging-call^8eedaf332be054ed^100^12488418561^no)") in new stack
    -- Called PJSIP/12488418561@v27500
  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [12488418561@trk-1-dial:40] GotoIf("PJSIP/100-00000002", "0?:after-fax") in new stack
    -- Goto (trk-1-dial,12488418561,43)
    -- Executing [12488418561@trk-1-dial:43] NoOp("PJSIP/100-00000002", "End Fax Section") in new stack
    -- Executing [12488418561@trk-1-dial:44] NoOp("PJSIP/100-00000002", "After Dial") in new stack
    -- Executing [12488418561@trk-1-dial:45] GotoIf("PJSIP/100-00000002", "1?come-back") in new stack
    -- Goto (trk-1-dial,12488418561,47)
    -- Executing [12488418561@trk-1-dial:47] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [12488418561@trk-1:3] GotoIf("PJSIP/100-00000002", "1?come-back") in new stack
    -- Goto (trk-1,12488418561,5)
    -- Executing [12488418561@trk-1:5] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [s-1@cos-all-post:4] NoOp("PJSIP/100-00000002", "Hangup Cause: 21, Dial Status: CHANUNAVAIL") in new stack
    -- Executing [s-1@cos-all-post:5] ForkCDR("PJSIP/100-00000002", "e") in new stack
    -- Executing [s-1@cos-all-post:6] GotoIf("PJSIP/100-00000002", "0?end_call") in new stack
    -- Executing [s-1@cos-all-post:7] GosubIf("PJSIP/100-00000002", "0?sub-outbound-queue-call,s,1") in new stack
    -- Executing [s-1@cos-all-post:8] GotoIf("PJSIP/100-00000002", "1?app-termination,busy,1") in new stack
    -- Goto (app-termination,busy,1)
    -- Executing [busy@app-termination:1] NoOp("PJSIP/100-00000002", "Termination: Signal the other end that the line is busy") in new stack
    -- Executing [busy@app-termination:2] NoCDR("PJSIP/100-00000002", "") in new stack
    -- Executing [busy@app-termination:3] Progress("PJSIP/100-00000002", "") in new stack
    -- Executing [busy@app-termination:4] PlayTones("PJSIP/100-00000002", "busy") in new stack
    -- Executing [busy@app-termination:5] Wait("PJSIP/100-00000002", "2") in new stack
       > 0x7f43c8277440 -- Strict RTP learning after remote address set to: 192.168.1.16:12274
       > 0x7f43c8277440 -- Strict RTP qualifying stream type: audio
       > 0x7f43c8277440 -- Strict RTP switching source address to 97.70.106.84:12274
    -- Executing [busy@app-termination:6] Busy("PJSIP/100-00000002", "10") in new stack
  == Spawn extension (app-termination, busy, 6) exited non-zero on 'PJSIP/100-00000002'

You would need to provide a call trace that has PJSIP debug enabled so we can see the actual INVITE and response.

   -- Goto (sub-setup-callrec-name,s,11)
    -- Executing [s@sub-setup-callrec-name:11] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [12488418561@trk-1-dial:39] Dial("PJSIP/100-00000002", "PJSIP/12488418561@v27500,90,kKtrU(sub-before-bridging-call^8eedaf332be054ed^100^12488418561^no)") in new stack
<--- Transmitting SIP request (909 bytes) to UDP:192.76.120.10:5060 --->
INVITE sip:12488418561@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPjb72b27ed-4a7e-4dcf-a358-04adf87d2235
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>
Contact: <sip:v27500@152.44.42.168:5060>
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9046 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: VitalPBX
Content-Type: application/sdp
Content-Length:   239

v=0
o=- 1986624609 1986624609 IN IP4 152.44.42.168
s=Asterisk
c=IN IP4 152.44.42.168
t=0 0
m=audio 12062 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

    -- Called PJSIP/12488418561@v27500
<--- Transmitting SIP response (492 bytes) to UDP:97.70.106.84:1036 --->
SIP/2.0 180 Ringing
Via: SIP/2.0/UDP 192.168.1.16:5060;rport=1036;received=97.70.106.84;branch=z9hG4bK2738780104
Call-ID: 2_1494600953@192.168.1.16
From: "Ontral-100" <sip:100@pbx.ontral.com>;tag=2927482117
To: <sip:12488418561@pbx.ontral.com>;tag=ba2e3815-7b6a-4789-8245-f67063db3fe5
CSeq: 2 INVITE
Server: VitalPBX
Contact: <sip:152.44.42.168:5060>
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Content-Length:  0


<--- Received SIP response (378 bytes) from UDP:192.76.120.10:5060 --->
SIP/2.0 100 Telnyx Trying
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPjb72b27ed-4a7e-4dcf-a358-04adf87d2235;received=152.44.42.168
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9046 INVITE
Server: Telnyx SIP Proxy
Content-Length: 0


<--- Received SIP response (735 bytes) from UDP:192.76.120.10:5060 --->
SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 152.44.42.168:5060;received=152.44.42.168;rport=5060;branch=z9hG4bKPjb72b27ed-4a7e-4dcf-a358-04adf87d2235
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>;tag=vXv1Hv3tSN1va
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9046 INVITE
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: path
Allow-Events: talk, hold, conference, refer
Proxy-Authenticate: Digest realm="sip.telnyx.com", nonce="5c5200ff-2259-4259-82ea-6964c9e3f9af", algorithm=MD5, qop="auth", opaque="9cc6aa58-c549-485c-af4e-0875bff7c1b4/10.13.36.4"
Content-Length: 0


<--- Transmitting SIP request (402 bytes) to UDP:192.76.120.10:5060 --->
ACK sip:12488418561@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPjb72b27ed-4a7e-4dcf-a358-04adf87d2235
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>;tag=vXv1Hv3tSN1va
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9046 ACK
Max-Forwards: 70
User-Agent: VitalPBX
Content-Length:  0


<--- Transmitting SIP request (1253 bytes) to UDP:192.76.120.10:5060 --->
INVITE sip:12488418561@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj814dea79-4685-406e-b4db-813dfd0e579f
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>
Contact: <sip:v27500@152.44.42.168:5060>
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9047 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: VitalPBX
Proxy-Authorization: Digest username="v27500", realm="sip.telnyx.com", nonce="5c5200ff-2259-4259-82ea-6964c9e3f9af", uri="sip:12488418561@sip.telnyx.com:5060", response="d818274f8c3039f1303572fcc034cea2", algorithm=MD5, cnonce="082f8b7fa5484f5e8f1e4fab605cf32f", opaque="9cc6aa58-c549-485c-af4e-0875bff7c1b4/10.13.36.4", qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length:   239

v=0
o=- 1986624609 1986624609 IN IP4 152.44.42.168
s=Asterisk
c=IN IP4 152.44.42.168
t=0 0
m=audio 12062 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

<--- Received SIP response (378 bytes) from UDP:192.76.120.10:5060 --->
SIP/2.0 100 Telnyx Trying
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPj814dea79-4685-406e-b4db-813dfd0e579f;received=152.44.42.168
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9047 INVITE
Server: Telnyx SIP Proxy
Content-Length: 0


<--- Received SIP response (627 bytes) from UDP:192.76.120.10:5060 --->
SIP/2.0 403 Caller Origination Number is Invalid D35
Via: SIP/2.0/UDP 152.44.42.168:5060;received=152.44.42.168;rport=5060;branch=z9hG4bKPj814dea79-4685-406e-b4db-813dfd0e579f
Max-Forwards: 69
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>;tag=X6NtKQmypyQFp
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9047 INVITE
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: path
Allow-Events: talk, hold, conference, refer
Reason: Q.850;cause=21;text="CALL_REJECTED"
Content-Length: 0


<--- Transmitting SIP request (402 bytes) to UDP:192.76.120.10:5060 --->
ACK sip:12488418561@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj814dea79-4685-406e-b4db-813dfd0e579f
From: <sip:v27500@sip.telnyx.com>;tag=f51b9274-5647-42fa-ab0f-d924b9b11f91
To: <sip:12488418561@sip.telnyx.com>;tag=X6NtKQmypyQFp
Call-ID: d8f9331a-5401-4b41-9f23-d124c0f33488
CSeq: 9047 ACK
Max-Forwards: 70
User-Agent: VitalPBX
Content-Length:  0


  == Everyone is busy/congested at this time (1:0/0/1)
    -- Executing [12488418561@trk-1-dial:40] GotoIf("PJSIP/100-00000002", "0?:after-fax") in new stack
    -- Goto (trk-1-dial,12488418561,43)
    -- Executing [12488418561@trk-1-dial:43] NoOp("PJSIP/100-00000002", "End Fax Section") in new stack
    -- Executing [12488418561@trk-1-dial:44] NoOp("PJSIP/100-00000002", "After Dial") in new stack
    -- Executing [12488418561@trk-1-dial:45] GotoIf("PJSIP/100-00000002", "1?come-back") in new stack
    -- Goto (trk-1-dial,12488418561,47)
    -- Executing [12488418561@trk-1-dial:47] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [12488418561@trk-1:3] GotoIf("PJSIP/100-00000002", "1?come-back") in new stack
    -- Goto (trk-1,12488418561,5)
    -- Executing [12488418561@trk-1:5] Return("PJSIP/100-00000002", "") in new stack
    -- Executing [s-1@cos-all-post:4] NoOp("PJSIP/100-00000002", "Hangup Cause: 21, Dial Status: CHANUNAVAIL") in new stack
    -- Executing [s-1@cos-all-post:5] ForkCDR("PJSIP/100-00000002", "e") in new stack
    -- Executing [s-1@cos-all-post:6] GotoIf("PJSIP/100-00000002", "0?end_call") in new stack
    -- Executing [s-1@cos-all-post:7] GosubIf("PJSIP/100-00000002", "0?sub-outbound-queue-call,s,1") in new stack
    -- Executing [s-1@cos-all-post:8] GotoIf("PJSIP/100-00000002", "1?app-termination,busy,1") in new stack
    -- Goto (app-termination,busy,1)
    -- Executing [busy@app-termination:1] NoOp("PJSIP/100-00000002", "Termination: Signal the other end that the line is busy") in new stack
    -- Executing [busy@app-termination:2] NoCDR("PJSIP/100-00000002", "") in new stack
    -- Executing [busy@app-termination:3] Progress("PJSIP/100-00000002", "") in new stack
    -- Executing [busy@app-termination:4] PlayTones("PJSIP/100-00000002", "busy") in new stack
    -- Executing [busy@app-termination:5] Wait("PJSIP/100-00000002", "2") in new stack
       > 0x7f590428dc10 -- Strict RTP learning after remote address set to: 192.168.1.16:12278
<--- Transmitting SIP response (835 bytes) to UDP:97.70.106.84:1036 --->
SIP/2.0 183 Session Progress
Via: SIP/2.0/UDP 192.168.1.16:5060;rport=1036;received=97.70.106.84;branch=z9hG4bK2738780104
Call-ID: 2_1494600953@192.168.1.16
From: "Ontral-100" <sip:100@pbx.ontral.com>;tag=2927482117
To: <sip:12488418561@pbx.ontral.com>;tag=ba2e3815-7b6a-4789-8245-f67063db3fe5
CSeq: 2 INVITE
Server: VitalPBX
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Contact: <sip:152.44.42.168:5060>
Content-Type: application/sdp
Content-Length:   300

v=0
o=- 20018 20020 IN IP4 152.44.42.168
s=Asterisk
c=IN IP4 152.44.42.168
t=0 0
m=audio 15302 RTP/AVP 0 8 18 101
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

       > 0x7f590428dc10 -- Strict RTP qualifying stream type: audio
       > 0x7f590428dc10 -- Strict RTP switching source address to 97.70.106.84:12278
    -- Executing [busy@app-termination:6] Busy("PJSIP/100-00000002", "10") in new stack
<--- Transmitting SIP response (483 bytes) to UDP:97.70.106.84:1036 --->
SIP/2.0 486 Busy Here
Via: SIP/2.0/UDP 192.168.1.16:5060;rport=1036;received=97.70.106.84;branch=z9hG4bK2738780104
Call-ID: 2_1494600953@192.168.1.16
From: "Ontral-100" <sip:100@pbx.ontral.com>;tag=2927482117
To: <sip:12488418561@pbx.ontral.com>;tag=ba2e3815-7b6a-4789-8245-f67063db3fe5
CSeq: 2 INVITE
Server: VitalPBX
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Reason: Q.850;cause=21
Content-Length:  0


  == Spawn extension (app-termination, busy, 6) exited non-zero on 'PJSIP/100-00000002'
<--- Received SIP request (319 bytes) from UDP:97.70.106.84:1036 --->
ACK sip:12488418561@pbx.ontral.com:5060 SIP/2.0
Via: SIP/2.0/UDP 192.168.1.16:5060;branch=z9hG4bK2738780104
From: "Ontral-100" <sip:100@pbx.ontral.com>;tag=2927482117
To: <sip:12488418561@pbx.ontral.com>;tag=ba2e3815-7b6a-4789-8245-f67063db3fe5
Call-ID: 2_1494600953@192.168.1.16
CSeq: 2 ACK
Content-Length: 0


<--- Transmitting SIP request (408 bytes) to UDP:97.70.106.84:1036 --->
OPTIONS sip:100@97.70.106.84:1036 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj7893af49-2203-44ae-841e-9178585eea64
From: <sip:100@152.44.42.168>;tag=8541cd95-69ab-4bc9-b28f-d7887ada4d9f
To: <sip:100@97.70.106.84>
Contact: <sip:100@152.44.42.168:5060>
Call-ID: 4fa9ddb0-5544-4f97-a8ed-3efaa9ad7cfa
CSeq: 45842 OPTIONS
Max-Forwards: 70
User-Agent: VitalPBX
Content-Length:  0


<--- Received SIP response (361 bytes) from UDP:97.70.106.84:1036 --->
SIP/2.0 200 OK
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPj7893af49-2203-44ae-841e-9178585eea64
From: <sip:100@152.44.42.168>;tag=8541cd95-69ab-4bc9-b28f-d7887ada4d9f
To: <sip:100@97.70.106.84>;tag=944809362
Call-ID: 4fa9ddb0-5544-4f97-a8ed-3efaa9ad7cfa
CSeq: 45842 OPTIONS
User-Agent: Yealink SIP-T29G 46.82.0.30
Content-Length: 0


<--- Transmitting SIP request (423 bytes) to UDP:192.76.120.10:5060 --->
OPTIONS sip:v27500@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj524c0710-d3f4-45cc-a2e9-ef3856cd0d60
From: <sip:v27500@sip.telnyx.com>;tag=9794b9ee-180f-4aea-8c19-cca4dc20179b
To: <sip:v27500@sip.telnyx.com>
Contact: <sip:v27500@152.44.42.168:5060>
Call-ID: efa03bfd-eeec-4a57-a03a-9acfe286f617
CSeq: 618 OPTIONS
Max-Forwards: 70
User-Agent: VitalPBX
Content-Length:  0


<--- Received SIP response (419 bytes) from UDP:192.76.120.10:5060 --->
SIP/2.0 200 Keepalive P20
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPj524c0710-d3f4-45cc-a2e9-ef3856cd0d60;received=152.44.42.168
From: <sip:v27500@sip.telnyx.com>;tag=9794b9ee-180f-4aea-8c19-cca4dc20179b
To: <sip:v27500@sip.telnyx.com>;tag=dfb4940bfc7117e4d7fa62ed6ef36d37.160d5670
Call-ID: efa03bfd-eeec-4a57-a03a-9acfe286f617
CSeq: 618 OPTIONS
Server: Telnyx SIP Proxy
Content-Length: 0

You need to set a valid external caller ID number for the extension

The inbound calls wont come in either. I have this same setup on VitalPBX 3 and it works

Can you please share a screenshot of your trunk as well as a debug from an incoming call?


ontralpbx2*CLI> pjsip set logger on
PJSIP Logging enabled
<β€” Received SIP request (1468 bytes) from UDP:192.76.120.10:5060 β€”>
INVITE sip:12487801976@152.44.42.168:5060;line=kyopptt SIP/2.0
Record-Route: sip:192.76.120.10;r2=on;lr;ftag=XgQ40UB6Zg4cQ
Record-Route: sip:10.255.0.1;r2=on;lr;ftag=XgQ40UB6Zg4cQ
Record-Route: sip:10.13.245.8:6050;lr;tnx=73.8613
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK9294.49d333e42822671dc8b09049df031b9b.0
Via: SIP/2.0/UDP 10.13.245.8:6050;rport=6050;branch=z9hG4bK9294.ced2267ce121dcc0a6b7d05424cd740f.0
v:SIP/2.0/UDP 10.13.66.4:6000;received=10.13.66.4;rport=6000;branch=z9hG4bKpc3rtgjevr6ZF
Max-Forwards:67
f:"5862154074"sip:5862154074@sip.telnyx.com;tag=XgQ40UB6Zg4cQ
t:sip:12487801976@10.13.245.8
i:4eb518c7-a945-4104-8fe1-59df5b93cd4c
CSeq:67575259 INVITE
m:sip:mod_sofia@10.13.66.4:6000
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REFER,NOTIFY
k:timer,path
u:talk,hold,conference,refer
Privacy:none
c:application/sdp
Content-Disposition:session
l:353
X-Telnyx-Session-ID:0e948788-f40f-11ed-87eb-02420a0de868
X-Telnyx-Leg-ID:0e99895e-f40f-11ed-b60f-02420a0de868
P-Asserted-Identity:"5862154074"sip:5862154074@sip.telnyx.com;verstat=No-TN-Validation

v=0
o=Telnyx 1684227822 1684227823 IN IP4 64.16.227.29
s=Telnyx
c=IN IP4 64.16.227.29
t=0 0
m=audio 30280 RTP/AVP 9 0 8 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=rtcp:30281 IN IP4 64.16.227.29
a=ptime:20

<β€” Transmitting SIP response (927 bytes) to UDP:192.76.120.10:5060 β€”>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.76.120.10;rport=5060;received=192.76.120.10;branch=z9hG4bK9294.49d333e42822671dc8b09049df031b9b.0
Via: SIP/2.0/UDP 10.13.245.8:6050;rport=6050;branch=z9hG4bK9294.ced2267ce121dcc0a6b7d05424cd740f.0
Via: SIP/2.0/UDP 10.13.66.4:6000;rport=6000;received=10.13.66.4;branch=z9hG4bKpc3rtgjevr6ZF
Record-Route: sip:192.76.120.10;lr;r2=on;ftag=XgQ40UB6Zg4cQ
Record-Route: sip:10.255.0.1;lr;r2=on;ftag=XgQ40UB6Zg4cQ
Record-Route: sip:10.13.245.8:6050;lr;tnx=73.8613
Call-ID: 4eb518c7-a945-4104-8fe1-59df5b93cd4c
From: β€œ5862154074” sip:5862154074@sip.telnyx.com;tag=XgQ40UB6Zg4cQ
To: sip:12487801976@10.13.245.8;tag=z9hG4bK9294.49d333e42822671dc8b09049df031b9b.0
CSeq: 67575259 INVITE
WWW-Authenticate: Digest realm=β€œasterisk”,nonce=β€œ1684258102/0c26a48003cf513a71a488d79ed8b603”,opaque=β€œ3bdec7b5543c35fe”,algorithm=MD5,qop=β€œauth”
Server: VitalPBX
Content-Length: 0

<β€” Received SIP request (382 bytes) from UDP:192.76.120.10:5060 β€”>
ACK sip:12487801976@152.44.42.168:5060;line=kyopptt SIP/2.0
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK9294.49d333e42822671dc8b09049df031b9b.0
Max-Forwards:67
f:"5862154074"sip:5862154074@sip.telnyx.com;tag=XgQ40UB6Zg4cQ
To: sip:12487801976@10.13.245.8;tag=z9hG4bK9294.49d333e42822671dc8b09049df031b9b.0
i:4eb518c7-a945-4104-8fe1-59df5b93cd4c
CSeq:67575259 ACK
l: 0

<β€” Received SIP request (1468 bytes) from UDP:192.76.120.10:5060 β€”>
INVITE sip:12487801976@152.44.42.168:5060;line=kyopptt SIP/2.0
Record-Route: sip:192.76.120.10;r2=on;lr;ftag=ySgX2pv9vStZj
Record-Route: sip:10.255.0.1;r2=on;lr;ftag=ySgX2pv9vStZj
Record-Route: sip:10.13.246.8:6050;lr;tnx=fd.8b51
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK1d1e.ff7be0aa683f854ff3ec0c87a5c917ef.0
Via: SIP/2.0/UDP 10.13.246.8:6050;rport=6050;branch=z9hG4bK1d1e.41424357978259a48ad02402f0370d10.0
v:SIP/2.0/UDP 10.13.66.4:6000;received=10.13.66.4;rport=6000;branch=z9hG4bKQNvHvB3HS1vjB
Max-Forwards:67
f:"5862154074"sip:5862154074@sip.telnyx.com;tag=ySgX2pv9vStZj
t:sip:12487801976@10.13.246.8
i:99336a87-df91-444c-9477-fbae4e7f6f31
CSeq:67575259 INVITE
m:sip:mod_sofia@10.13.66.4:6000
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REFER,NOTIFY
k:timer,path
u:talk,hold,conference,refer
Privacy:none
c:application/sdp
Content-Disposition:session
l:353
X-Telnyx-Session-ID:0e948788-f40f-11ed-87eb-02420a0de868
X-Telnyx-Leg-ID:0e99af74-f40f-11ed-b9bb-02420a0de868
P-Asserted-Identity:"5862154074"sip:5862154074@sip.telnyx.com;verstat=No-TN-Validation

v=0
o=Telnyx 1684232186 1684232187 IN IP4 64.16.227.29
s=Telnyx
c=IN IP4 64.16.227.29
t=0 0
m=audio 25916 RTP/AVP 9 0 8 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=rtcp:25917 IN IP4 64.16.227.29
a=ptime:20

<β€” Transmitting SIP response (927 bytes) to UDP:192.76.120.10:5060 β€”>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.76.120.10;rport=5060;received=192.76.120.10;branch=z9hG4bK1d1e.ff7be0aa683f854ff3ec0c87a5c917ef.0
Via: SIP/2.0/UDP 10.13.246.8:6050;rport=6050;branch=z9hG4bK1d1e.41424357978259a48ad02402f0370d10.0
Via: SIP/2.0/UDP 10.13.66.4:6000;rport=6000;received=10.13.66.4;branch=z9hG4bKQNvHvB3HS1vjB
Record-Route: sip:192.76.120.10;lr;r2=on;ftag=ySgX2pv9vStZj
Record-Route: sip:10.255.0.1;lr;r2=on;ftag=ySgX2pv9vStZj
Record-Route: sip:10.13.246.8:6050;lr;tnx=fd.8b51
Call-ID: 99336a87-df91-444c-9477-fbae4e7f6f31
From: β€œ5862154074” sip:5862154074@sip.telnyx.com;tag=ySgX2pv9vStZj
To: sip:12487801976@10.13.246.8;tag=z9hG4bK1d1e.ff7be0aa683f854ff3ec0c87a5c917ef.0
CSeq: 67575259 INVITE
WWW-Authenticate: Digest realm=β€œasterisk”,nonce=β€œ1684258102/0c26a48003cf513a71a488d79ed8b603”,opaque=β€œ4c20720b5002135b”,algorithm=MD5,qop=β€œauth”
Server: VitalPBX
Content-Length: 0

<β€” Received SIP request (382 bytes) from UDP:192.76.120.10:5060 β€”>
ACK sip:12487801976@152.44.42.168:5060;line=kyopptt SIP/2.0
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK1d1e.ff7be0aa683f854ff3ec0c87a5c917ef.0
Max-Forwards:67
f:"5862154074"sip:5862154074@sip.telnyx.com;tag=ySgX2pv9vStZj
To: sip:12487801976@10.13.246.8;tag=z9hG4bK1d1e.ff7be0aa683f854ff3ec0c87a5c917ef.0
i:99336a87-df91-444c-9477-fbae4e7f6f31
CSeq:67575259 ACK
l: 0

<β€” Received SIP request (1468 bytes) from UDP:192.76.120.10:5060 β€”>
INVITE sip:12487801976@152.44.42.168:5060;line=kyopptt SIP/2.0
Record-Route: sip:192.76.120.10;r2=on;lr;ftag=Z29N4HDDt2gje
Record-Route: sip:10.255.0.1;r2=on;lr;ftag=Z29N4HDDt2gje
Record-Route: sip:10.13.247.8:6050;lr;tnx=911.36b
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bKc06d.bb68f2ecb70e1252edda7929aff659fb.0
Via: SIP/2.0/UDP 10.13.247.8:6050;rport=6050;branch=z9hG4bKc06d.73a4c440c97006b78311288f2f6b9ed0.0
v:SIP/2.0/UDP 10.13.66.4:6000;received=10.13.66.4;rport=6000;branch=z9hG4bKryNay6KNpaK5p
Max-Forwards:67
f:"5862154074"sip:5862154074@sip.telnyx.com;tag=Z29N4HDDt2gje
t:sip:12487801976@10.13.247.8
i:29155454-7830-4d61-9864-2714a26914f4
CSeq:67575259 INVITE
m:sip:mod_sofia@10.13.66.4:6000
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REFER,NOTIFY
k:timer,path
u:talk,hold,conference,refer
Privacy:none
c:application/sdp
Content-Disposition:session
l:353
X-Telnyx-Session-ID:0e948788-f40f-11ed-87eb-02420a0de868
X-Telnyx-Leg-ID:0e99c81a-f40f-11ed-b714-02420a0de868
P-Asserted-Identity:"5862154074"sip:5862154074@sip.telnyx.com;verstat=No-TN-Validation

v=0
o=Telnyx 1684230380 1684230381 IN IP4 64.16.227.29
s=Telnyx
c=IN IP4 64.16.227.29
t=0 0
m=audio 27722 RTP/AVP 9 0 8 18 101
a=rtpmap:9 G722/8000
a=rtpmap:0 PCMU/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-15
a=sendrecv
a=rtcp:27723 IN IP4 64.16.227.29
a=ptime:20

<β€” Transmitting SIP response (927 bytes) to UDP:192.76.120.10:5060 β€”>
SIP/2.0 401 Unauthorized
Via: SIP/2.0/UDP 192.76.120.10;rport=5060;received=192.76.120.10;branch=z9hG4bKc06d.bb68f2ecb70e1252edda7929aff659fb.0
Via: SIP/2.0/UDP 10.13.247.8:6050;rport=6050;branch=z9hG4bKc06d.73a4c440c97006b78311288f2f6b9ed0.0
Via: SIP/2.0/UDP 10.13.66.4:6000;rport=6000;received=10.13.66.4;branch=z9hG4bKryNay6KNpaK5p
Record-Route: sip:192.76.120.10;lr;r2=on;ftag=Z29N4HDDt2gje
Record-Route: sip:10.255.0.1;lr;r2=on;ftag=Z29N4HDDt2gje
Record-Route: sip:10.13.247.8:6050;lr;tnx=911.36b
Call-ID: 29155454-7830-4d61-9864-2714a26914f4
From: β€œ5862154074” sip:5862154074@sip.telnyx.com;tag=Z29N4HDDt2gje
To: sip:12487801976@10.13.247.8;tag=z9hG4bKc06d.bb68f2ecb70e1252edda7929aff659fb.0
CSeq: 67575259 INVITE
WWW-Authenticate: Digest realm=β€œasterisk”,nonce=β€œ1684258102/0c26a48003cf513a71a488d79ed8b603”,opaque=β€œ33093aeb71769a0b”,algorithm=MD5,qop=β€œauth”
Server: VitalPBX
Content-Length: 0

<β€” Received SIP request (382 bytes) from UDP:192.76.120.10:5060 β€”>
ACK sip:12487801976@152.44.42.168:5060;line=kyopptt SIP/2.0
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bKc06d.bb68f2ecb70e1252edda7929aff659fb.0
Max-Forwards:67
f:"5862154074"sip:5862154074@sip.telnyx.com;tag=Z29N4HDDt2gje
To: sip:12487801976@10.13.247.8;tag=z9hG4bKc06d.bb68f2ecb70e1252edda7929aff659fb.0
i:29155454-7830-4d61-9864-2714a26914f4
CSeq:67575259 ACK
l: 0

<β€” Transmitting SIP request (425 bytes) to UDP:192.76.120.10:5060 β€”>
OPTIONS sip:v27500@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj2e299005-150a-4a14-a471-6d2bc925c61d
From: sip:v27500@sip.telnyx.com;tag=03597899-9098-4e71-9b86-753842176728
To: sip:v27500@sip.telnyx.com
Contact: sip:v27500@152.44.42.168:5060
Call-ID: a5be57b6-4007-4169-8059-0d86ced7b6d6
CSeq: 32968 OPTIONS
Max-Forwards: 70
User-Agent: VitalPBX
Content-Length: 0

<β€” Received SIP response (421 bytes) from UDP:192.76.120.10:5060 β€”>
SIP/2.0 200 Keepalive P20
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPj2e299005-150a-4a14-a471-6d2bc925c61d;received=152.44.42.168
From: sip:v27500@sip.telnyx.com;tag=03597899-9098-4e71-9b86-753842176728
To: sip:v27500@sip.telnyx.com;tag=dfb4940bfc7117e4d7fa62ed6ef36d37.e5b31b32
Call-ID: a5be57b6-4007-4169-8059-0d86ced7b6d6
CSeq: 32968 OPTIONS
Server: Telnyx SIP Proxy
Content-Length: 0

The Local Secret isn’t required. Telnyx just needs Outbound Auth. The incoming auth is done using the Registration and the Auth Username(Local Username)

1 Like

Miguel
Thank you, removing local secret has worked and inbound calls are coming in properly.
I cannot make outbound calls still, this is probably something simple (as always) :thinking:

proto:UDP 2023-05-16T18:35:25.127984Z 152.44.42.168:5060 β€”> 192.76.120.10:5060

INVITE sip:15862154074@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj0caabf47-278d-4d9b-9caf-0858eb0ab61e
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com
Contact: sip:v27500@152.44.42.168:5060
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18470 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: VitalPBX
Content-Type: application/sdp
Content-Length: 237

v=0
o=- 159755525 159755525 IN IP4 152.44.42.168
s=Asterisk
c=IN IP4 152.44.42.168
t=0 0
m=audio 14916 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

proto:UDP 2023-05-16T18:35:25.128428Z 192.76.120.10:5060 β€”> 152.44.42.168:5060

SIP/2.0 100 Telnyx Trying
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPj0caabf47-278d-4d9b-9caf-0858eb0ab61e;received=152.44.42.168
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18470 INVITE
Server: Telnyx SIP Proxy
Content-Length: 0

proto:UDP 2023-05-16T18:35:25.252519Z 192.76.120.10:5060 β€”> 152.44.42.168:5060

SIP/2.0 407 Proxy Authentication Required
Via: SIP/2.0/UDP 152.44.42.168:5060;received=152.44.42.168;rport=5060;branch=z9hG4bKPj0caabf47-278d-4d9b-9caf-0858eb0ab61e
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com;tag=gD7703gvFjBNp
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18470 INVITE
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: path
Allow-Events: talk, hold, conference, refer
Proxy-Authenticate: Digest realm=β€œsip.telnyx.com”, nonce=β€œ9e500a5b-c76f-4f54-8bd7-362dfa59323d”, algorithm=MD5, qop=β€œauth”, opaque=β€œe78cdc46-d26a-4e02-a17b-7606cb9c0a52/10.13.176.4”
Content-Length: 0

proto:UDP 2023-05-16T18:35:25.274955Z 152.44.42.168:5060 β€”> 192.76.120.10:5060

ACK sip:15862154074@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj0caabf47-278d-4d9b-9caf-0858eb0ab61e
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com;tag=gD7703gvFjBNp
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18470 ACK
Max-Forwards: 70
User-Agent: VitalPBX
Content-Length: 0

proto:UDP 2023-05-16T18:35:25.274997Z 152.44.42.168:5060 β€”> 192.76.120.10:5060

INVITE sip:15862154074@sip.telnyx.com:5060 SIP/2.0
Via: SIP/2.0/UDP 152.44.42.168:5060;rport;branch=z9hG4bKPj6ee87a6d-c56f-4882-a5f1-f445fbc9fc6b
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com
Contact: sip:v27500@152.44.42.168:5060
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18471 INVITE
Allow: OPTIONS, REGISTER, SUBSCRIBE, NOTIFY, PUBLISH, INVITE, ACK, BYE, CANCEL, UPDATE, PRACK, MESSAGE, REFER
Supported: 100rel, timer, replaces, norefersub, histinfo
Session-Expires: 1800
Min-SE: 90
Max-Forwards: 70
User-Agent: VitalPBX
Proxy-Authorization: Digest username=β€œv27500”, realm=β€œsip.telnyx.com”, nonce=β€œ9e500a5b-c76f-4f54-8bd7-362dfa59323d”, uri=β€œsip:15862154074@sip.telnyx.com:5060”, response=β€œ0612e973bcbb1cfaf9c04483420b3d75”, algorithm=MD5, cnonce=β€œ2ff20c797b0348e6adec251e6bc5dd6b”, opaque=β€œe78cdc46-d26a-4e02-a17b-7606cb9c0a52/10.13.176.4”, qop=auth, nc=00000001
Content-Type: application/sdp
Content-Length: 237

v=0
o=- 159755525 159755525 IN IP4 152.44.42.168
s=Asterisk
c=IN IP4 152.44.42.168
t=0 0
m=audio 14916 RTP/AVP 0 101
a=rtpmap:0 PCMU/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=ptime:20
a=maxptime:150
a=sendrecv

proto:UDP 2023-05-16T18:35:25.276168Z 192.76.120.10:5060 β€”> 152.44.42.168:5060

SIP/2.0 100 Telnyx Trying
Via: SIP/2.0/UDP 152.44.42.168:5060;rport=5060;branch=z9hG4bKPj6ee87a6d-c56f-4882-a5f1-f445fbc9fc6b;received=152.44.42.168
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18471 INVITE
Server: Telnyx SIP Proxy
Content-Length: 0

proto:UDP 2023-05-16T18:35:25.451831Z 192.76.120.10:5060 β€”> 152.44.42.168:5060

SIP/2.0 403 Caller Origination Number is Invalid D35
Via: SIP/2.0/UDP 152.44.42.168:5060;received=152.44.42.168;rport=5060;branch=z9hG4bKPj6ee87a6d-c56f-4882-a5f1-f445fbc9fc6b
Max-Forwards: 69
From: sip:v27500@sip.telnyx.com;tag=4b3dc913-13b1-43cb-b8b9-6181966d991c
To: sip:15862154074@sip.telnyx.com;tag=mHcB8Fma4N4Zm
Call-ID: 53fe1c14-b126-4665-8e08-5b5985f62737
CSeq: 18471 INVITE
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REFER, NOTIFY
Supported: path
Allow-Events: talk, hold, conference, refer
Reason: Q.850;cause=21;text=β€œCALL_REJECTED”
Content-Length: 0

You need to read between the lines.

SIP/2.0 403 Caller Origination Number is Invalid D35

What Telnyx says about it?

Removing the value from the field β€œFrom User” might help with this issue.

1 Like

Thank you, thank you!
removing user username from the field has worked. the calls are going in and out now.
Telnyx trunk is now working on v4
I owe you a beer!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.