Inbound calls to DID@URL not working

  • ASTPP Version 6
  • Operating System: Debian 10

I have set up ASTPP before, however, for the life of me I cannot get my inbound calls to terminate to a DID@URL 1234567890@voip.pbx.com

I can see the call reaching the FreeSWITCH, and it will forward to PSTN just fine, so I know it’s not an IP authentication issue. I don’t see it ever hitting the PBX system’s network at all.

Could someone help? I’m sure this is a really easy fix, it’s just I’m missing something here…

Hello @zachakit ,
Please check your domain, it is not pinging any IP to forward the call.
image

Thanks.

Palak,

This was just the example… I didn’t use the actual domain. If you’d like to discuss one-on-one I’m happy to.

-Zach

Might help if you show some logs, tpcdump, or anything than “it don’t work”

Hello @zachakit ,
But without any IP pinging, DID will not know where to forward the DID.
Please add directly IP instead and test.
Thanks.

2022-12-14 04:43:42.374152 95.50% [NOTICE] switch_channel.c:1123 New Channel sofia/default/1836@xx.xx.xx.xx:5060 [88d5d8d4-8be5-4a80-a05e-dd3c6bab064e]
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/183
6@xx.xx.xx.xx:5060) Running State Change CS_NEW (Cur 1 Tot 52160)
2022-12-14 04:43:42.374152 95.50% [INFO] sofia.c:10468 sofia/default/1836@xx.xx.xx.xx:5060 receiving invite from xx.xx.xx.xx:15728 version: 1.10.8 -release-20-3510866140 64bit call-id: 218667735_31384770@xx.xx.xx.xx
2022-12-14 04:43:42.374152 95.50% [DEBUG] sofia.c:10562 verifying acl “default” for ip/port xx.xx.xx.xx:0.
2022-12-14 04:43:42.374152 95.50% [DEBUG] sofia.c:10591 IP xx.xx.xx.xx Approved by acl “default[]”. Access Granted.
2022-12-14 04:43:42.374152 95.50% [DEBUG] sofia.c:11677 Setting NAT mode based on via port
2022-12-14 04:43:42.374152 95.50% [DEBUG] sofia.c:7502 Channel sofia/default/183
6@xx.xx.xx.xx:5060 entering state [received][100]
2022-12-14 04:43:42.374152 95.50% [DEBUG] sofia.c:7512 Remote SDP:
v=0
o=- 2166402929 172580 IN IP4 xx.xx.xx.xx
s=-
c=IN IP4 xx.xx.xx.xx
t=0 0
m=audio 58890 RTP/AVP 0 18 100
a=rtpmap:0 PCMU/8000
a=rtpmap:18 G729/8000
a=fmtp:18 annexb=no
a=rtpmap:100 telephone-event/8000
a=fmtp:100 0-15
a=ptime:20

2022-12-14 04:43:42.374152 95.50% [DEBUG] sofia.c:7901 (sofia/default/1836@xx.xx.xx.xx:5060) State Change CS_NEW → CS_INIT
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:600 (sofia/default/183
6@xx.xx.xx.xx:5060) State NEW
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1836@xx.xx.xx.xx:5060) Running State Change CS_INIT (Cur 1 Tot 52160)
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/183
6@xx.xx.xx.xx:5060) State INIT
2022-12-14 04:43:42.374152 95.50% [DEBUG] mod_sofia.c:97 sofia/default/1836@xx.xx.xx.xx:5060 SOFIA INIT
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:40 sofia/default/183
6@xx.xx.xx.xx:5060 Standard INIT
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:48 (sofia/default/1836@xx.xx.xx.xx:5060) State Change CS_INIT → CS_ROUTING
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:624 (sofia/default/183
6@xx.xx.xx.xx:5060) State INIT going to sleep
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/1836@xx.xx.xx.xx:5060) Running State Change CS_ROUTING (Cur 1 Tot 52160)
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_channel.c:2380 (sofia/default/183
6@xx.xx.xx.xx:5060) Callstate Change DOWN → RINGING
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/1836@xx.xx.xx.xx:5060) State ROUTING
2022-12-14 04:43:42.374152 95.50% [DEBUG] mod_sofia.c:158 sofia/default/183
6@xx.xx.xx.xx:5060 SOFIA ROUTING
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_core_state_machine.c:230 sofia/default/1836@xx.xx.xx.xx:5060 Standard ROUTING
2022-12-14 04:43:42.374152 95.50% [INFO] mod_dialplan_xml.c:639 Processing DICKINSON TX <183
6>->17133337950 in context default
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_CONF] Query :SELECT name,value FROM system WHERE group_title IN (‘global’,‘opensips’,‘callingcard’,‘calls’,‘InternationalPrefixes’)
2022-12-14 04:43:42.374152 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [LOAD_ADDON_CONF] Query :SELECT package_name FROM addons
2022-12-14 04:43:42.394139 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Dialed number : 17133337950
2022-12-14 04:43:42.394139 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT access_number FROM accessnumber WHERE access_number = ‘17133337950’ AND status=0 limit 1
2022-12-14 04:43:42.394139 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Caller Id name / number : DICKINSON TX / 1836
2022-12-14 04:43:42.394139 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 1 AND status=0 limit 1
2022-12-14 04:43:42.394139 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number =“17133337950” LIMIT 1
2022-12-14 04:43:42.394139 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] Call direction : inbound
2022-12-14 04:43:42.394139 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IPAUTHENTICATION] Query :SELECT ip_map.
, (SELECT number FROM accounts where id=accountid AND status=0 AND deleted=0) AS account_code FROM ip_map WHERE INET_ATON(“xx.xx.xx.xx”) BETWEEN(INET_ATON(SUBSTRING_INDEX(ip, ‘/’, 1)) & 0xffffffff ^((0x1 <<(32 - SUBSTRING_INDEX(ip, ‘/’, -1))) -1 )) AND(INET_ATON(SUBSTRING_INDEX(ip, ‘/’, 1)) |((0x100000000 >> SUBSTRING_INDEX(ip,‘/’, -1)) -1)) AND “17133337950” LIKE CONCAT(prefix,‘%’) ORDER BY LENGTH(prefix) DESC LIMIT 1
2022-12-14 04:43:42.414448 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Accountcode : 2642653596]
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE number = “2642653596” AND deleted = 0 limit 1
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_SPEEDDIAL] Query :SELECT A.number FROM speed_dial as A,accounts as B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.speed_num =“17133337950” AND A.accountid = ‘13’ limit 1
2022-12-14 04:43:42.414448 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] SPEED DIAL NUMBER : 17133337950
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 1 AND status=0 limit 1
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number =“17133337950” LIMIT 1
2022-12-14 04:43:42.414448 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [Dialplan] New Call direction : inbound
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 1 AND status=0 limit 1
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [IS_CHECK_DID] Query :SELECT * FROM dids WHERE number =“17133337950” AND (accountid = 0 OR status = 1) LIMIT 1
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] call_direction :inbound
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] DID_ACCOUNTID :16
2022-12-14 04:43:42.414448 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PACKAGE_INFO] Query :SELECT ,P.id as package_id,P.product_id as product_id FROM packages_view as P inner join package_patterns as PKGPTR on P.product_id = PKGPTR.product_id WHERE (patterns = '^17133337950.’ OR patterns = '^1713333795.
’ OR patterns = '^171333379.
’ OR patterns = '^17133337.
’ OR patterns = '^1713333.
’ OR patterns = '^171333.
’ OR patterns = '^17133.
’ OR patterns = ‘^1713.’ OR patterns = '^171.’ OR patterns = ‘^17.’ OR patterns = '^1.’ OR patterns =‘–’) AND accountid = 16 ORDER BY LENGTH(PKGPTR.patterns) DESC
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Account Information ===================
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] User id : 13
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Account code : 2642653596
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Balance : 10000
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Type : 0 [0:prepaid,1:postpaid]
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Ratecard id : 1
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ========================================================
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :inbound
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_LOCALIZATION] Query :SELECT id,in_caller_id_originate,out_caller_id_originate,number_originate FROM localization WHERE id = 1 AND status=0 limit 1
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [CHECK_DID] Query :SELECT A.id as id,A.number as did_number,B.id as accountid,B.number as account_code,A.number as did_number,A.connectcost,A.includedseconds,A.cost,A.inc,A.extensions,A.maxchannels,A.call_type,A.city,A.province,A.init_inc,A.leg_timeout,A.status,A.country_id,A.call_type_vm_flag FROM dids AS A,accounts AS B WHERE B.status=0 AND B.deleted=0 AND B.id=A.accountid AND A.number =“17133337950” LIMIT 1
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: inbound
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 46
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.00030
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : HOUSTON TX
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 203
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 13
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 13 !!!
2022-12-14 04:43:42.434145 95.50% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 480 mins!
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Call Max length duration : 480 minutes
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] INB_FREE:TRUE
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] free_inbound:0
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_OVERRIDE_CALLERID] Query :SELECT callerid_name as cid_name,callerid_number as cid_number,accountid FROM accounts_callerid WHERE accountid = 13 AND status=0 LIMIT 1
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [DOAUTHORIZATION] Query :SELECT * FROM accounts WHERE id = “16” AND deleted = 0 limit 1
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_PRICELIST_INFO] Query :select * from pricelists WHERE id = 1 AND status = 0
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] call_direction :outbound
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [GET_RATES] Query :SELECT * FROM routes WHERE (pattern = ‘^17133337950.’ OR pattern = '^1713333795.’ OR pattern = ‘^171333379.’ OR pattern = '^17133337.’ OR pattern = ‘^1713333.’ OR pattern = '^171333.’ OR pattern = ‘^17133.’ OR pattern = '^1713.’ OR pattern = ‘^171.’ OR pattern = '^17.’ OR pattern = '^1.’ OR pattern =‘–’) AND status = 0 AND (pricelist_id = 1 OR accountid=13) ORDER BY accountid DESC,LENGTH(pattern) DESC,cost DESC LIMIT 1
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] call_direction:::::: outbound
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] =============== Rates Information ===================
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ID : 64562
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Connectcost : 0.00000
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Includedseconds : 0
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Cost : 0.02000
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] comment : HOUSTON - TX
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Country Id : 203
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Accid : 13
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Trunk ID: 0
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] Routing type:
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] ================================================================
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Your10000 balance Accountid 13 !!!
2022-12-14 04:43:42.434145 95.50% [NOTICE] switch_cpp.cpp:1465 [ASTPP] [FIND_MAXLENGTH] Limiting call to config max length 480 mins!
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML:13
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Userinfo XML:13
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] [userinfo] Actual CustomerInfo XML : 13
2022-12-14 04:43:42.434145 95.50% [INFO] switch_cpp.cpp:1465 [ASTPP] maxlength::::::::: 480
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_1
2022-12-14 04:43:42.434145 95.50% [DEBUG] switch_cpp.cpp:1465 [ASTPP] [sip_codec_for_outbound] Query :SELECT sip_devices.codec as sip_codec FROM sip_devices as sip_devices,accounts as accounts WHERE accounts.status=0 AND accounts.deleted=0 AND accounts.id=sip_devices.accountid AND sip_devices.username="183
6" limit 1
2022-12-14 04:43:42.454144 95.50% [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:350: attempt to concatenate global ‘did_chan_var’ (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:350: in function ‘?’
/usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:305: in function ‘freeswitch_xml_inbound’
…hare/freeswitch/scripts/astpp/scripts/astpp.dialplan.lua:455: in main chunk
[C]: in function ‘dofile’
/usr/share/freeswitch/scripts/astpp/astpp.lua:85: in main chunk
2022-12-14 04:43:42.454144 95.50% [ERR] mod_lua.cpp:269 LUA script parse/execute error!
2022-12-14 04:43:42.454144 95.50% [WARNING] mod_dialplan_xml.c:669 Context default not found
2022-12-14 04:43:42.454144 95.50% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2022-12-14 04:43:42.454144 95.50% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/183
6@xx.xx.xx.xx:5060 [CS_ROUTING] [NO_ROUTE_DESTINATION]
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:640 (sofia/default/183
6@xx.xx.xx.xx:5060) State ROUTING going to sleep
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/183
6@xx.xx.xx.xx:5060) Running State Change CS_HANGUP (Cur 1 Tot 52160)
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:844 (sofia/default/183
6@xx.xx.xx.xx:5060) Callstate Change RINGING → HANGUP
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:846 (sofia/default/183
6@xx.xx.xx.xx:5060) State HANGUP
2022-12-14 04:43:42.454144 95.50% [DEBUG] mod_sofia.c:468 Channel sofia/default/183
6@xx.xx.xx.xx:5060 hanging up, cause: NO_ROUTE_DESTINATION
2022-12-14 04:43:42.454144 95.50% [DEBUG] mod_sofia.c:613 Responding to INVITE with: 404
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:59 sofia/default/183
6@xx.xx.xx.xx:5060 Standard HANGUP, cause: NO_ROUTE_DESTINATION
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:846 (sofia/default/183
6@xx.xx.xx.xx:5060) State HANGUP going to sleep
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:616 (sofia/default/183
6@xx.xx.xx.xx:5060) State Change CS_HANGUP → CS_REPORTING
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:581 (sofia/default/183
6@xx.xx.xx.xx:5060) Running State Change CS_REPORTING (Cur 1 Tot 52160)
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/183
6@xx.xx.xx.xx:5060) State REPORTING
2022-12-14 04:43:42.454144 95.50% [INFO] mod_json_cdr.c:272 Process [88d5d8d4-8be5-4a80-a05e-dd3c6bab064e.cdr.json]
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:168 sofia/default/183
6@xx.xx.xx.xx:5060 Standard REPORTING, cause: NO_ROUTE_DESTINATION
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:932 (sofia/default/183
6@xx.xx.xx.xx:5060) State REPORTING going to sleep
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:607 (sofia/default/183
6@xx.xx.xx.xx:5060) State Change CS_REPORTING → CS_DESTROY
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_session.c:1747 Session 52160 (sofia/default/183
6@xx.xx.xx.xx:5060) Locked, Waiting on external entities
2022-12-14 04:43:42.454144 95.50% [NOTICE] switch_core_session.c:1765 Session 52160 (sofia/default/183
6@xx.xx.xx.xx:5060) Ended
2022-12-14 04:43:42.454144 95.50% [NOTICE] switch_core_session.c:1769 Close Channel sofia/default/183
6@xx.xx.xx.xx:5060 [CS_DESTROY]
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:735 (sofia/default/183
6@xx.xx.xx.xx:5060) Running State Change CS_DESTROY (Cur 0 Tot 52160)
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/183
6@xx.xx.xx.xx:5060) State DESTROY
2022-12-14 04:43:42.454144 95.50% [DEBUG] mod_sofia.c:379 sofia/default/183
6@xx.xx.xx.xx:5060 SOFIA DESTROY
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:175 sofia/default/183
6@xx.xx.xx.xx:5060 Standard DESTROY
2022-12-14 04:43:42.454144 95.50% [DEBUG] switch_core_state_machine.c:745 (sofia/default/183
******6@xx.xx.xx.xx:5060) State DESTROY going to sleep

Hello @zachakit ,
Got the issue and team made the changes.
Please check the changes here and if you want to change the source directly, please wait for us to merge this MR in source then you can update the source.
Below is the link in which file changes have added.

Thanks.