[cs_routing] [no_route_destination]

024-07-25 19:11:02.726753 97.30% [INFO] switch_cpp.cpp:1466 [ASTPP] [userinfo] Actual CustomerInfo XML:64
2024-07-25 19:11:02.726753 97.30% [INFO] switch_cpp.cpp:1466 [ASTPP] [userinfo] Userinfo XML:64
2024-07-25 19:11:02.726753 97.30% [INFO] switch_cpp.cpp:1466 [ASTPP] [userinfo] Actual CustomerInfo XML : 64
2024-07-25 19:11:02.726753 97.30% [INFO] switch_cpp.cpp:1466 [ASTPP] maxlength::::::::: 100
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_cpp.cpp:1466 [ASTPP] custom_function_name:::::::::::::::::::::::::custom_inbound_2
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_cpp.cpp:1466 [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=“0779205097” limit 1
2024-07-25 19:11:02.726753 97.30% [ERR] mod_lua.cpp:202 /usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:364: attempt to concatenate global ‘did_chan_var’ (a nil value)
stack traceback:
/usr/share/freeswitch/scripts/astpp/scripts/astpp.xml.lua:364: 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
2024-07-25 19:11:02.726753 97.30% [ERR] mod_lua.cpp:269 LUA script parse/execute error!
2024-07-25 19:11:02.726753 97.30% [WARNING] mod_dialplan_xml.c:669 Context default not found
2024-07-25 19:11:02.726753 97.30% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2024-07-25 19:11:02.726753 97.30% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/0779205097@x.x.x.x [CS_ROUTING] [NO_ROUTE_DESTINATION]
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:640 (sofia/default/0779205097@x.x.x.x) State ROUTING going to sleep
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0779205097@x.x.x.x) Running State Change CS_HANGUP (Cur 1 Tot 12)
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:844 (sofia/default/0779205097@x.x.x.x) Callstate Change RINGING → HANGUP
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:846 (sofia/default/0779205097@x.x.x.x) State HANGUP
2024-07-25 19:11:02.726753 97.30% [DEBUG] mod_sofia.c:469 Channel sofia/default/0779205097@x.x.x.x hanging up, cause: NO_ROUTE_DESTINATION
2024-07-25 19:11:02.726753 97.30% [DEBUG] mod_sofia.c:614 Responding to INVITE with: 404
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:59 sofia/default/0779205097@x.x.x.x Standard HANGUP, cause: NO_ROUTE_DESTINATION
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:846 (sofia/default/0779205097@x.x.x.x) State HANGUP going to sleep
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:616 (sofia/default/0779205097@x.x.x.x) State Change CS_HANGUP → CS_REPORTING
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:581 (sofia/default/0779205097@x.x.x.x) Running State Change CS_REPORTING (Cur 1 Tot 12)
2024-07-25 19:11:02.726753 97.30% [DEBUG] switch_core_state_machine.c:932 (sofia/default/0779205097@x.x.x.x) State REPORTING
2024-07-25 19:11:02.726753 97.30% [INFO] mod_json_cdr.c:272 Process [dc8af2d3-4bfe-47c7-8119-61a9deea0d72.cdr.json]
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:168 sofia/default/0779205097@x.x.x.x Standard REPORTING, cause: NO_ROUTE_DESTINATION
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:932 (sofia/default/0779205097@x.x.x.x) State REPORTING going to sleep
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:607 (sofia/default/0779205097@x.x.x.x) State Change CS_REPORTING → CS_DESTROY
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_session.c:1744 Session 12 (sofia/default/0779205097@x.x.x.x) Locked, Waiting on external entities
2024-07-25 19:11:02.746744 97.30% [NOTICE] switch_core_session.c:1762 Session 12 (sofia/default/0779205097@x.x.x.x) Ended
2024-07-25 19:11:02.746744 97.30% [NOTICE] switch_core_session.c:1766 Close Channel sofia/default/0779205097@x.x.x.x [CS_DESTROY]
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:735
When i try to make an outbound call I get this error in my freeswitch logs.

(sofia/default/0779205097@x.x.x.x) Running State Change CS_DESTROY (Cur 0 Tot 12)
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:745 (sofia/default/0779205097@x.x.x.x) State DESTROY
2024-07-25 19:11:02.746744 97.30% [DEBUG] mod_sofia.c:380 sofia/default/0779205097@x.x.x.x SOFIA DESTROY
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:175 sofia/default/0779205097@x.x.x.x Standard DESTROY
2024-07-25 19:11:02.746744 97.30% [DEBUG] switch_core_state_machine.c:745 (sofia/default/0779205097@x.x.x.x) State DESTROY going to sleep

I assume you are using different version of ASTPP. I am looking at ASTPP 6. repo and I don’t find the line in which you are facing the issue.

raw.githubusercontent.com/iNextrix/ASTPP/V6.0/freeswitch/scripts/astpp/scripts/astpp.xml.lua

I installed version 6.0