Hello everyone, hope everyone is doing OK.
I am in the process of getting a test system running and I am running into issues with inbound calls. I am running the latest FusionPBX on Debian 10. My sip provider is Telnyx and I am using IP auth to the trunk. I have followed the documentation of FusionPBX (to the best of my ability!) and also a how to from Telnyx (https://telnyx.com/bring-your-own-carrier/telnyx-with-fusionpbx-setup-guide). THe server is on a Vultr cloud instnace with a public IP.
Here is the snippet of a test call:
I have tried playing around with the inbound route DID by adding +1, 1, just the 10 digit # but it results in the same. Number format with Telnyx is E164. Any help will be appreciated. If you can shed some light on what I am doing wrong and help me understand the freeswitch way of doing things that would be great!
Thank you!
I am in the process of getting a test system running and I am running into issues with inbound calls. I am running the latest FusionPBX on Debian 10. My sip provider is Telnyx and I am using IP auth to the trunk. I have followed the documentation of FusionPBX (to the best of my ability!) and also a how to from Telnyx (https://telnyx.com/bring-your-own-carrier/telnyx-with-fusionpbx-setup-guide). THe server is on a Vultr cloud instnace with a public IP.
Here is the snippet of a test call:
Code:
freeswitch@FusionPBX>
recv 1185 bytes from udp/[192.76.120.10]:5060 at 00:33:56.531592:
------------------------------------------------------------------------
INVITE sip:176XXXX1441@45.76.XXX.XXX:5080 SIP/2.0
Record-Route: <sip:192.76.120.10;r2=on;lr;ftag=teB84pX9a57Hc>
Record-Route: <sip:10.255.0.1;r2=on;lr;ftag=teB84pX9a57Hc>
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bKe873.9197c487b1c4524ff0463a095a643b90.0
v:SIP/2.0/UDP 10.15.196.4:6000;received=10.15.196.4;rport=6000;branch=z9hG4bKS5tD3vB6S1H2D
Max-Forwards:67
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=teB84pX9a57Hc
t:<sip:176XXXX1441@45.76.XXX.XXX:5080>
i:99bbb169-6c35-4bab-b540-a042870128d8
CSeq:25554426 INVITE
m:<sip:mod_sofia@10.15.196.4:6000>
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REFER,NOTIFY
k:timer,path,replaces
u:talk,hold,conference,refer
Privacy:none
c:application/sdp
Content-Disposition:session
l:356
P-Asserted-Identity:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>
v=0
o=Telnyx 1600193310 1600193311 IN IP4 64.16.248.120
s=Telnyx
c=IN IP4 64.16.248.120
t=0 0
m=audio 23126 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-16
a=sendrecv
a=rtcp:23127 IN IP4 64.16.248.120
a=ptime:20
2020-09-16 00:33:56.523123 [NOTICE] switch_channel.c:1118 New Channel sofia/external/70XX749X7@sip.telnyx.com [e4389e60-87e9-4dcb-9a6c-f5c92b27f47b]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_NEW (Cur 1 Tot 18)
2020-09-16 00:33:56.523123 [DEBUG] sofia.c:10280 sofia/external/70XX749X7@sip.telnyx.com receiving invite from 192.76.120.10:5060 version: 1.10.5 -release-17-25569c1631 64bit
2020-09-16 00:33:56.523123 [DEBUG] sofia.c:10374 verifying acl "domains" for ip/port 192.76.120.10:0.
2020-09-16 00:33:56.523123 [DEBUG] sofia.c:10403 IP 192.76.120.10 Approved by acl "domains[]". Access Granted.
2020-09-16 00:33:56.523123 [DEBUG] sofia.c:7326 Channel sofia/external/70XX749X7@sip.telnyx.com entering state [received][100]
2020-09-16 00:33:56.523123 [DEBUG] sofia.c:7336 Remote SDP:
v=0
o=Telnyx 1600193310 1600193311 IN IP4 64.16.248.120
s=Telnyx
c=IN IP4 64.16.248.120
t=0 0
m=audio 23126 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-16
a=rtcp:23127 IN IP4 64.16.248.120
a=ptime:20
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:3839 Set Codec sofia/external/70XX749X7@sip.telnyx.com G722/8000 20 ms 160 samples 64000 bits 1 channels
2020-09-16 00:33:56.523123 [DEBUG] switch_core_codec.c:111 sofia/external/70XX749X7@sip.telnyx.com Original read codec set to G722:9
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
2020-09-16 00:33:56.523123 [DEBUG] switch_core_media.c:5911 sofia/external/70XX749X7@sip.telnyx.com Set 2833 dtmf send payload to 101 recv payload to 101
2020-09-16 00:33:56.523123 [DEBUG] sofia.c:7760 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_NEW -> CS_INIT
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:604 (sofia/external/70XX749X7@sip.telnyx.com) State NEW
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_INIT (Cur 1 Tot 18)
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:628 (sofia/external/70XX749X7@sip.telnyx.com) State INIT
2020-09-16 00:33:56.523123 [DEBUG] mod_sofia.c:93 sofia/external/70XX749X7@sip.telnyx.com SOFIA INIT
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:40 sofia/external/70XX749X7@sip.telnyx.com Standard INIT
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:48 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_INIT -> CS_ROUTING
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:628 (sofia/external/70XX749X7@sip.telnyx.com) State INIT going to sleep
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_ROUTING (Cur 1 Tot 18)
2020-09-16 00:33:56.523123 [DEBUG] switch_channel.c:2332 (sofia/external/70XX749X7@sip.telnyx.com) Callstate Change DOWN -> RINGING
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:644 (sofia/external/70XX749X7@sip.telnyx.com) State ROUTING
send 317 bytes to udp/[192.76.120.10]:5060 at 00:33:56.534310:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bKe873.9197c487b1c4524ff0463a095a643b90.0
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=teB84pX9a57Hc
t:<sip:176XXXX1441@45.76.XXX.XXX:5080>
i:99bbb169-6c35-4bab-b540-a042870128d8
CSeq:25554426 INVITE
User-Agent: FreeSWITCH
Content-Length: 0
2020-09-16 00:33:56.523123 [DEBUG] mod_sofia.c:154 sofia/external/70XX749X7@sip.telnyx.com SOFIA ROUTING
2020-09-16 00:33:56.523123 [DEBUG] switch_core_state_machine.c:236 sofia/external/70XX749X7@sip.telnyx.com Standard ROUTING
2020-09-16 00:33:56.523123 [INFO] mod_dialplan_xml.c:637 Processing 70XX749X7 <70XX749X7>->176XXXX1441 in context public
Dialplan: sofia/external/70XX749X7@sip.telnyx.com parsing [public->caller-details] continue=true
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Regex (PASS) [caller-details] () =~ // break=never
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com export(call_direction=inbound)
2020-09-16 00:33:56.563115 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(caller_destination=${sip_to_user}) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(caller_destination=176XXXX1441)
2020-09-16 00:33:56.563115 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [caller_destination]=[176XXXX1441]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(caller_id_name=${caller_id_name}) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(caller_id_name=70XX749X7)
2020-09-16 00:33:56.563115 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [caller_id_name]=[70XX749X7]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(caller_id_number=${caller_id_number})
Dialplan: sofia/external/70XX749X7@sip.telnyx.com parsing [public->7623201441] continue=false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Regex (FAIL) [7623201441] destination_number(176XXXX1441) =~ /^(7623201441)$/ break=on-false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com parsing [public->not-found] continue=false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Regex (PASS) [not-found] () =~ // break=on-false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com export(call_direction=inbound)
2020-09-16 00:33:56.563115 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(call_direction=inbound)
2020-09-16 00:33:56.563115 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [call_direction]=[inbound]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action log(WARNING [inbound routes] 404 not found ${sip_network_ip})
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:287 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_ROUTING -> CS_EXECUTE
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:644 (sofia/external/70XX749X7@sip.telnyx.com) State ROUTING going to sleep
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_EXECUTE (Cur 1 Tot 18)
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:651 (sofia/external/70XX749X7@sip.telnyx.com) State EXECUTE
2020-09-16 00:33:56.563115 [DEBUG] mod_sofia.c:209 sofia/external/70XX749X7@sip.telnyx.com SOFIA EXECUTE
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:329 sofia/external/70XX749X7@sip.telnyx.com Standard EXECUTE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(caller_id_number=70XX749X7)
2020-09-16 00:33:56.563115 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [caller_id_number]=[70XX749X7]
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com log(WARNING [inbound routes] 404 not found 192.76.120.10)
2020-09-16 00:33:56.563115 [WARNING] mod_dptools.c:1866 [inbound routes] 404 not found 192.76.120.10
2020-09-16 00:33:56.563115 [NOTICE] switch_core_state_machine.c:386 sofia/external/70XX749X7@sip.telnyx.com has executed the last dialplan instruction, hanging up.
2020-09-16 00:33:56.563115 [NOTICE] switch_core_state_machine.c:388 Hangup sofia/external/70XX749X7@sip.telnyx.com [CS_EXECUTE] [NORMAL_CLEARING]
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:651 (sofia/external/70XX749X7@sip.telnyx.com) State EXECUTE going to sleep
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_HANGUP (Cur 1 Tot 18)
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:848 (sofia/external/70XX749X7@sip.telnyx.com) Callstate Change RINGING -> HANGUP
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:850 (sofia/external/70XX749X7@sip.telnyx.com) State HANGUP
2020-09-16 00:33:56.563115 [DEBUG] mod_sofia.c:453 Channel sofia/external/70XX749X7@sip.telnyx.com hanging up, cause: NORMAL_CLEARING
2020-09-16 00:33:56.563115 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 480
send 772 bytes to udp/[192.76.120.10]:5060 at 00:33:56.582096:
------------------------------------------------------------------------
SIP/2.0 480 Temporarily Unavailable
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bKe873.9197c487b1c4524ff0463a095a643b90.0
v:SIP/2.0/UDP 10.15.196.4:6000;received=10.15.196.4;rport=6000;branch=z9hG4bKS5tD3vB6S1H2D
Max-Forwards: 67
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=teB84pX9a57Hc
To: <sip:176XXXX1441@45.76.XXX.XXX:5080>;tag=4gHFB9X8mXSNS
i:99bbb169-6c35-4bab-b540-a042870128d8
CSeq:25554426 INVITE
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Reason: Q.850;cause=16;text="NORMAL_CLEARING"
Content-Length: 0
P-Asserted-Identity: "176XXXX1441" <sip:176XXXX1441@45.76.XXX.XXX>
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:60 sofia/external/70XX749X7@sip.telnyx.com Standard HANGUP, cause: NORMAL_CLEARING
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:850 (sofia/external/70XX749X7@sip.telnyx.com) State HANGUP going to sleep
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:620 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_HANGUP -> CS_REPORTING
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_REPORTING (Cur 1 Tot 18)
2020-09-16 00:33:56.563115 [DEBUG] switch_core_state_machine.c:936 (sofia/external/70XX749X7@sip.telnyx.com) State REPORTING
recv 341 bytes from udp/[192.76.120.10]:5060 at 00:33:56.627209:
------------------------------------------------------------------------
ACK sip:176XXXX1441@45.76.XXX.XXX:5080 SIP/2.0
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bKe873.9197c487b1c4524ff0463a095a643b90.0
Max-Forwards:67
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=teB84pX9a57Hc
To: <sip:176XXXX1441@45.76.XXX.XXX:5080>;tag=4gHFB9X8mXSNS
i:99bbb169-6c35-4bab-b540-a042870128d8
CSeq:25554426 ACK
l: 0
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:174 sofia/external/70XX749X7@sip.telnyx.com Standard REPORTING, cause: NORMAL_CLEARING
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:936 (sofia/external/70XX749X7@sip.telnyx.com) State REPORTING going to sleep
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:611 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_REPORTING -> CS_DESTROY
2020-09-16 00:33:56.663119 [DEBUG] switch_core_session.c:1726 Session 18 (sofia/external/70XX749X7@sip.telnyx.com) Locked, Waiting on external entities
2020-09-16 00:33:56.663119 [NOTICE] switch_core_session.c:1744 Session 18 (sofia/external/70XX749X7@sip.telnyx.com) Ended
2020-09-16 00:33:56.663119 [NOTICE] switch_core_session.c:1748 Close Channel sofia/external/70XX749X7@sip.telnyx.com [CS_DESTROY]
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:739 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_DESTROY (Cur 0 Tot 18)
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:749 (sofia/external/70XX749X7@sip.telnyx.com) State DESTROY
2020-09-16 00:33:56.663119 [DEBUG] mod_sofia.c:364 sofia/external/70XX749X7@sip.telnyx.com SOFIA DESTROY
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:181 sofia/external/70XX749X7@sip.telnyx.com Standard DESTROY
2020-09-16 00:33:56.663119 [DEBUG] switch_core_state_machine.c:749 (sofia/external/70XX749X7@sip.telnyx.com) State DESTROY going to sleep
recv 1182 bytes from udp/[192.76.120.10]:5060 at 00:34:01.113986:
------------------------------------------------------------------------
INVITE sip:176XXXX1441@45.76.XXX.XXX:5080 SIP/2.0
Record-Route: <sip:192.76.120.10;r2=on;lr;ftag=ZcvrmKvcZS4Zg>
Record-Route: <sip:10.255.0.1;r2=on;lr;ftag=ZcvrmKvcZS4Zg>
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK0183.7ca2b06b44e5af8cfb71c85d39977846.0
v:SIP/2.0/UDP 10.15.185.4:6000;received=10.15.185.4;rport=6000;branch=z9hG4bK9jU37pvKg59ye
Max-Forwards:67
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=ZcvrmKvcZS4Zg
t:<sip:176XXXX1441@45.76.XXX.XXX:5080>
i:d29e30e1-edaf-4ea1-b7c6-5e755dea1c25
CSeq:25554428 INVITE
m:<sip:mod_sofia@10.15.185.4:6000>
Allow:INVITE,ACK,BYE,CANCEL,OPTIONS,MESSAGE,INFO,UPDATE,REFER,NOTIFY
k:timer,path,replaces
u:talk,hold,conference,refer
Privacy:none
c:application/sdp
Content-Disposition:session
l:353
P-Asserted-Identity:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>
v=0
o=Telnyx 1600193291 1600193292 IN IP4 64.16.248.73
s=Telnyx
c=IN IP4 64.16.248.73
t=0 0
m=audio 23150 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-16
a=sendrecv
a=rtcp:23151 IN IP4 64.16.248.73
a=ptime:20
2020-09-16 00:34:01.103127 [NOTICE] switch_channel.c:1118 New Channel sofia/external/70XX749X7@sip.telnyx.com [c80a4019-c999-4204-90aa-e1da4c80130d]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_NEW (Cur 1 Tot 19)
2020-09-16 00:34:01.103127 [DEBUG] sofia.c:10280 sofia/external/70XX749X7@sip.telnyx.com receiving invite from 192.76.120.10:5060 version: 1.10.5 -release-17-25569c1631 64bit
2020-09-16 00:34:01.103127 [DEBUG] sofia.c:10374 verifying acl "domains" for ip/port 192.76.120.10:0.
2020-09-16 00:34:01.103127 [DEBUG] sofia.c:10403 IP 192.76.120.10 Approved by acl "domains[]". Access Granted.
2020-09-16 00:34:01.103127 [DEBUG] sofia.c:7326 Channel sofia/external/70XX749X7@sip.telnyx.com entering state [received][100]
2020-09-16 00:34:01.103127 [DEBUG] sofia.c:7336 Remote SDP:
v=0
o=Telnyx 1600193291 1600193292 IN IP4 64.16.248.73
s=Telnyx
c=IN IP4 64.16.248.73
t=0 0
m=audio 23150 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-16
a=rtcp:23151 IN IP4 64.16.248.73
a=ptime:20
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [G722:9:8000:20:64000:1] ++++ is saved as a match
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G722:9:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMU:0:8000:20:64000:1] ++++ is saved as a match
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMU:0:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [PCMA:8:8000:20:64000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5649 Audio Codec Compare [PCMA:8:8000:20:64000:1] ++++ is saved as a match
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[G722:9:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMU:0:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5594 Audio Codec Compare [G729:18:8000:20:8000:1]/[PCMA:8:8000:20:64000:1]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5510 Set telephone-event payload to 101@8000
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:3839 Set Codec sofia/external/70XX749X7@sip.telnyx.com G722/8000 20 ms 160 samples 64000 bits 1 channels
2020-09-16 00:34:01.103127 [DEBUG] switch_core_codec.c:111 sofia/external/70XX749X7@sip.telnyx.com Original read codec set to G722:9
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5853 Set telephone-event payload to 101@8000
2020-09-16 00:34:01.103127 [DEBUG] switch_core_media.c:5911 sofia/external/70XX749X7@sip.telnyx.com Set 2833 dtmf send payload to 101 recv payload to 101
2020-09-16 00:34:01.103127 [DEBUG] sofia.c:7760 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_NEW -> CS_INIT
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:604 (sofia/external/70XX749X7@sip.telnyx.com) State NEW
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_INIT (Cur 1 Tot 19)
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:628 (sofia/external/70XX749X7@sip.telnyx.com) State INIT
2020-09-16 00:34:01.103127 [DEBUG] mod_sofia.c:93 sofia/external/70XX749X7@sip.telnyx.com SOFIA INIT
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:40 sofia/external/70XX749X7@sip.telnyx.com Standard INIT
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:48 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_INIT -> CS_ROUTING
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:628 (sofia/external/70XX749X7@sip.telnyx.com) State INIT going to sleep
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_ROUTING (Cur 1 Tot 19)
2020-09-16 00:34:01.103127 [DEBUG] switch_channel.c:2332 (sofia/external/70XX749X7@sip.telnyx.com) Callstate Change DOWN -> RINGING
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:644 (sofia/external/70XX749X7@sip.telnyx.com) State ROUTING
send 317 bytes to udp/[192.76.120.10]:5060 at 00:34:01.115540:
------------------------------------------------------------------------
SIP/2.0 100 Trying
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK0183.7ca2b06b44e5af8cfb71c85d39977846.0
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=ZcvrmKvcZS4Zg
t:<sip:176XXXX1441@45.76.XXX.XXX:5080>
i:d29e30e1-edaf-4ea1-b7c6-5e755dea1c25
CSeq:25554428 INVITE
User-Agent: FreeSWITCH
Content-Length: 0
2020-09-16 00:34:01.103127 [DEBUG] mod_sofia.c:154 sofia/external/70XX749X7@sip.telnyx.com SOFIA ROUTING
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:236 sofia/external/70XX749X7@sip.telnyx.com Standard ROUTING
2020-09-16 00:34:01.103127 [INFO] mod_dialplan_xml.c:637 Processing 70XX749X7 <70XX749X7>->176XXXX1441 in context public
Dialplan: sofia/external/70XX749X7@sip.telnyx.com parsing [public->caller-details] continue=true
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Regex (PASS) [caller-details] () =~ // break=never
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com export(call_direction=inbound)
2020-09-16 00:34:01.103127 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(caller_destination=${sip_to_user}) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(caller_destination=176XXXX1441)
2020-09-16 00:34:01.103127 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [caller_destination]=[176XXXX1441]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(caller_id_name=${caller_id_name}) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(caller_id_name=70XX749X7)
2020-09-16 00:34:01.103127 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [caller_id_name]=[70XX749X7]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(caller_id_number=${caller_id_number})
Dialplan: sofia/external/70XX749X7@sip.telnyx.com parsing [public->7623201441] continue=false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Regex (FAIL) [7623201441] destination_number(176XXXX1441) =~ /^(7623201441)$/ break=on-false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com parsing [public->not-found] continue=false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Regex (PASS) [not-found] () =~ // break=on-false
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action export(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com export(call_direction=inbound)
2020-09-16 00:34:01.103127 [DEBUG] switch_channel.c:1310 EXPORT (export_vars) [call_direction]=[inbound]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action set(call_direction=inbound) INLINE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(call_direction=inbound)
2020-09-16 00:34:01.103127 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [call_direction]=[inbound]
Dialplan: sofia/external/70XX749X7@sip.telnyx.com Action log(WARNING [inbound routes] 404 not found ${sip_network_ip})
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:287 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_ROUTING -> CS_EXECUTE
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:644 (sofia/external/70XX749X7@sip.telnyx.com) State ROUTING going to sleep
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_EXECUTE (Cur 1 Tot 19)
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:651 (sofia/external/70XX749X7@sip.telnyx.com) State EXECUTE
2020-09-16 00:34:01.103127 [DEBUG] mod_sofia.c:209 sofia/external/70XX749X7@sip.telnyx.com SOFIA EXECUTE
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:329 sofia/external/70XX749X7@sip.telnyx.com Standard EXECUTE
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com set(caller_id_number=70XX749X7)
2020-09-16 00:34:01.103127 [DEBUG] mod_dptools.c:1672 SET sofia/external/70XX749X7@sip.telnyx.com [caller_id_number]=[70XX749X7]
EXECUTE [depth=0] sofia/external/70XX749X7@sip.telnyx.com log(WARNING [inbound routes] 404 not found 192.76.120.10)
2020-09-16 00:34:01.103127 [WARNING] mod_dptools.c:1866 [inbound routes] 404 not found 192.76.120.10
2020-09-16 00:34:01.103127 [NOTICE] switch_core_state_machine.c:386 sofia/external/70XX749X7@sip.telnyx.com has executed the last dialplan instruction, hanging up.
2020-09-16 00:34:01.103127 [NOTICE] switch_core_state_machine.c:388 Hangup sofia/external/70XX749X7@sip.telnyx.com [CS_EXECUTE] [NORMAL_CLEARING]
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:651 (sofia/external/70XX749X7@sip.telnyx.com) State EXECUTE going to sleep
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_HANGUP (Cur 1 Tot 19)
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:848 (sofia/external/70XX749X7@sip.telnyx.com) Callstate Change RINGING -> HANGUP
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:850 (sofia/external/70XX749X7@sip.telnyx.com) State HANGUP
2020-09-16 00:34:01.103127 [DEBUG] mod_sofia.c:453 Channel sofia/external/70XX749X7@sip.telnyx.com hanging up, cause: NORMAL_CLEARING
2020-09-16 00:34:01.103127 [DEBUG] mod_sofia.c:598 Responding to INVITE with: 480
send 772 bytes to udp/[192.76.120.10]:5060 at 00:34:01.119360:
------------------------------------------------------------------------
SIP/2.0 480 Temporarily Unavailable
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK0183.7ca2b06b44e5af8cfb71c85d39977846.0
v:SIP/2.0/UDP 10.15.185.4:6000;received=10.15.185.4;rport=6000;branch=z9hG4bK9jU37pvKg59ye
Max-Forwards: 67
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=ZcvrmKvcZS4Zg
To: <sip:176XXXX1441@45.76.XXX.XXX:5080>;tag=5Sa8c4ecj6F8m
i:d29e30e1-edaf-4ea1-b7c6-5e755dea1c25
CSeq:25554428 INVITE
User-Agent: FreeSWITCH
Accept: application/sdp
Allow: INVITE, ACK, BYE, CANCEL, OPTIONS, MESSAGE, INFO, UPDATE, REGISTER, REFER, NOTIFY
Supported: timer, path, replaces
Allow-Events: talk, hold, conference, refer
Reason: Q.850;cause=16;text="NORMAL_CLEARING"
Content-Length: 0
P-Asserted-Identity: "176XXXX1441" <sip:176XXXX1441@45.76.XXX.XXX>
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:60 sofia/external/70XX749X7@sip.telnyx.com Standard HANGUP, cause: NORMAL_CLEARING
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:850 (sofia/external/70XX749X7@sip.telnyx.com) State HANGUP going to sleep
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:620 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_HANGUP -> CS_REPORTING
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:585 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_REPORTING (Cur 1 Tot 19)
2020-09-16 00:34:01.103127 [DEBUG] switch_core_state_machine.c:936 (sofia/external/70XX749X7@sip.telnyx.com) State REPORTING
recv 341 bytes from udp/[192.76.120.10]:5060 at 00:34:01.162967:
------------------------------------------------------------------------
ACK sip:176XXXX1441@45.76.XXX.XXX:5080 SIP/2.0
Via: SIP/2.0/UDP 192.76.120.10;branch=z9hG4bK0183.7ca2b06b44e5af8cfb71c85d39977846.0
Max-Forwards:67
f:"70XX749X7"<sip:70XX749X7@sip.telnyx.com>;tag=ZcvrmKvcZS4Zg
To: <sip:176XXXX1441@45.76.XXX.XXX:5080>;tag=5Sa8c4ecj6F8m
i:d29e30e1-edaf-4ea1-b7c6-5e755dea1c25
CSeq:25554428 ACK
l: 0
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:174 sofia/external/70XX749X7@sip.telnyx.com Standard REPORTING, cause: NORMAL_CLEARING
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:936 (sofia/external/70XX749X7@sip.telnyx.com) State REPORTING going to sleep
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:611 (sofia/external/70XX749X7@sip.telnyx.com) State Change CS_REPORTING -> CS_DESTROY
2020-09-16 00:34:01.163112 [DEBUG] switch_core_session.c:1726 Session 19 (sofia/external/70XX749X7@sip.telnyx.com) Locked, Waiting on external entities
2020-09-16 00:34:01.163112 [NOTICE] switch_core_session.c:1744 Session 19 (sofia/external/70XX749X7@sip.telnyx.com) Ended
2020-09-16 00:34:01.163112 [NOTICE] switch_core_session.c:1748 Close Channel sofia/external/70XX749X7@sip.telnyx.com [CS_DESTROY]
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:739 (sofia/external/70XX749X7@sip.telnyx.com) Running State Change CS_DESTROY (Cur 0 Tot 19)
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:749 (sofia/external/70XX749X7@sip.telnyx.com) State DESTROY
2020-09-16 00:34:01.163112 [DEBUG] mod_sofia.c:364 sofia/external/70XX749X7@sip.telnyx.com SOFIA DESTROY
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:181 sofia/external/70XX749X7@sip.telnyx.com Standard DESTROY
2020-09-16 00:34:01.163112 [DEBUG] switch_core_state_machine.c:749 (sofia/external/70XX749X7@sip.telnyx.com) State DESTROY going to sleep
freeswitch@FusionPBX>
I have tried playing around with the inbound route DID by adding +1, 1, just the 10 digit # but it results in the same. Number format with Telnyx is E164. Any help will be appreciated. If you can shed some light on what I am doing wrong and help me understand the freeswitch way of doing things that would be great!
Thank you!