[ASTPPCOM-1338] Destination did error ip forwarding to external pbx Created: 05/Dec/22  Updated: 04/Jul/23  Resolved: 03/Jul/23

Status: Closed
Project: ASTPP Community
Component/s: None
Affects Version/s: None
Fix Version/s: v6.0

Type: Bug Priority: Medium
Reporter: John Doyle Assignee: Ashish Gohil
Resolution: No Change Required Votes: 0
Labels: new_bug
Remaining Estimate: Not Specified
Time Spent: 5h 5m
Original Estimate: Not Specified
Environment:

Debian 11 VM hosted in digital Ocean.

https://switch1.host-it.ie

ssh keys access.

Small environment just testing at present to swap from a2billing instance.

 


Reproducibility: always
Category: Configuration
Sprint: 2023-ENT-DEV-V70-W24
Edition: Community

 Description   

I have setup a small test switch and added in some did numbers, I can forward incoming did to PSTN with no issues, I can also forward to DID-LOCAL to a registered sip device on customer account.
It just seems if i try forward using did@ip/url eg 1234@mysipswitch.com etc I am getting the message below.
Most likely something stupid i am doing wrong.
Does the end destination PBX where i am forwarding to need to be registered, I have allowed the IP in IP auth.

Thanks

+OK log level [7] snip...
2022-12-02 15:44:20.259428 96.23% [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="0866081234" limit 1
2022-12-02 15:44:20.259428 96.23% [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-02 15:44:20.259428 96.23% [ERR] mod_lua.cpp:269 LUA script parse/execute error!
2022-12-02 15:44:20.259428 96.23% [WARNING] mod_dialplan_xml.c:669 Context default not found
2022-12-02 15:44:20.259428 96.23% [INFO] switch_core_state_machine.c:306 No Route, Aborting
2022-12-02 15:44:20.259428 96.23% [NOTICE] switch_core_state_machine.c:307 Hangup sofia/default/0866085245@46.101.29.17 [CS_ROUTING] [NO_ROUTE_DESTINATION]



 Comments   
Comment by Ashish Gohil [ 03/Jul/23 ]

Checking on latest v6 com it's working fine without any error. please check once and let me know if anything,

Comment by Prashant Kumar [ 04/Jul/23 ]

verified in latest community source v6.0

working fine as expected, so closing this issue.

Generated at Sat Feb 10 07:25:14 CET 2024 using Jira 8.13.3#813003-sha1:22ebedbb75c99b147c66f14e031dd8a2d214753a.