Hello, been at it for hours but since I am no way near as pro as you guys are, thought of asking for your help
Trying to route calls between the two FusionPBXs using Bridges and issue seems to be destination returning 404 for not able to find number.
Created a Bridge using: sofia/internal/$1@172.19.20.10:5060
Possibly treating the extension in Public context, which is why it is expecting an inbound route to be defined. Below is the log from destination FusionPBX.
What route should I have in the destination instance for it to route calls?
Trying to route calls between the two FusionPBXs using Bridges and issue seems to be destination returning 404 for not able to find number.
Created a Bridge using: sofia/internal/$1@172.19.20.10:5060
Possibly treating the extension in Public context, which is why it is expecting an inbound route to be defined. Below is the log from destination FusionPBX.
Code:
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [NOTICE] switch_channel.c:1142 New Channel sofia/internal/100@172.16.20.10 [e2893cd1-fbeb-4625-bb12-217a99c336d1]
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/100@172.16.20.10) Running State Change CS_NEW (Cur 1 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [INFO] sofia.c:10459 sofia/internal/100@172.16.20.10 receiving invite from 172.16.20.10:5060 version: 1.10.10 -release 64bit call-id: cea96558-4f2f-123d-c39d-0206451e8aad
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] sofia.c:7493 Channel sofia/internal/100@172.16.20.10 entering state [received][100]
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] sofia.c:7503 Remote SDP:
e2893cd1-fbeb-4625-bb12-217a99c336d1 v=0
e2893cd1-fbeb-4625-bb12-217a99c336d1 o=FreeSWITCH 1708911579 1708911580 IN IP4 172.16.20.10
e2893cd1-fbeb-4625-bb12-217a99c336d1 s=FreeSWITCH
e2893cd1-fbeb-4625-bb12-217a99c336d1 c=IN IP4 172.16.20.10
e2893cd1-fbeb-4625-bb12-217a99c336d1 t=0 0
e2893cd1-fbeb-4625-bb12-217a99c336d1 m=audio 29662 RTP/AVP 9 8 0 101 13
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=rtpmap:9 G722/8000
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=rtpmap:8 PCMA/8000
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=rtpmap:0 PCMU/8000
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=rtpmap:101 telephone-event/8000
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=fmtp:101 0-15
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=rtpmap:13 CN/8000
e2893cd1-fbeb-4625-bb12-217a99c336d1 a=ptime:20
e2893cd1-fbeb-4625-bb12-217a99c336d1
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] sofia.c:7906 (sofia/internal/100@172.16.20.10) State Change CS_NEW -> CS_INIT
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:600 (sofia/internal/100@172.16.20.10) State NEW
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/100@172.16.20.10) Running State Change CS_INIT (Cur 1 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:624 (sofia/internal/100@172.16.20.10) State INIT
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] mod_sofia.c:97 sofia/internal/100@172.16.20.10 SOFIA INIT
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:40 sofia/internal/100@172.16.20.10 Standard INIT
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:48 (sofia/internal/100@172.16.20.10) State Change CS_INIT -> CS_ROUTING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:624 (sofia/internal/100@172.16.20.10) State INIT going to sleep
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/100@172.16.20.10) Running State Change CS_ROUTING (Cur 1 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_channel.c:2399 (sofia/internal/100@172.16.20.10) Callstate Change DOWN -> RINGING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:640 (sofia/internal/100@172.16.20.10) State ROUTING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] mod_sofia.c:158 sofia/internal/100@172.16.20.10 SOFIA ROUTING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [DEBUG] switch_core_state_machine.c:230 sofia/internal/100@172.16.20.10 Standard ROUTING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.658722 94.63% [INFO] mod_dialplan_xml.c:639 Processing Bilal Waheed <100>->300 in context public
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 parsing [public->caller-details] continue=true
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Regex (PASS) [caller-details] () =~ // break=never
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action export(call_direction=inbound) INLINE
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 export(call_direction=inbound)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.678714 94.63% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [call_direction]=[inbound]
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action set(caller_destination=${sip_to_user}) INLINE
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 set(caller_destination=300)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.678714 94.63% [DEBUG] mod_dptools.c:1671 SET sofia/internal/100@172.16.20.10 [caller_destination]=[300]
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action set(caller_id_name=${caller_id_name}) INLINE
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 set(caller_id_name=Bilal Waheed)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_dptools.c:1671 SET sofia/internal/100@172.16.20.10 [caller_id_name]=[Bilal Waheed]
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action set(caller_id_number=${caller_id_number})
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 parsing [public->2101114] continue=false
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Regex (FAIL) [2101114] destination_number(300) =~ /^(2101114)$/ break=on-false
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 parsing [public->not-found] continue=false
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Regex (PASS) [not-found] () =~ // break=on-false
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action export(call_direction=inbound) INLINE
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 export(call_direction=inbound)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_channel.c:1334 EXPORT (export_vars) [call_direction]=[inbound]
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action set(call_direction=inbound) INLINE
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 set(call_direction=inbound)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_dptools.c:1671 SET sofia/internal/100@172.16.20.10 [call_direction]=[inbound]
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action log(WARNING [inbound routes] 404 not found ${sip_network_ip} destination_number ${destination_number} sip_to_user ${sip_to_user} sip_req_user ${sip_req_user})
e2893cd1-fbeb-4625-bb12-217a99c336d1 Dialplan: sofia/internal/100@172.16.20.10 Action respond(404 Not Found)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:281 (sofia/internal/100@172.16.20.10) State Change CS_ROUTING -> CS_EXECUTE
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:640 (sofia/internal/100@172.16.20.10) State ROUTING going to sleep
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/100@172.16.20.10) Running State Change CS_EXECUTE (Cur 1 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:647 (sofia/internal/100@172.16.20.10) State EXECUTE
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_sofia.c:213 sofia/internal/100@172.16.20.10 SOFIA EXECUTE
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:323 sofia/internal/100@172.16.20.10 Standard EXECUTE
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 set(caller_id_number=100)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_dptools.c:1671 SET sofia/internal/100@172.16.20.10 [caller_id_number]=[100]
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 log(WARNING [inbound routes] 404 not found 172.16.20.10 destination_number 300 sip_to_user 300 sip_req_user 300)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [WARNING] mod_dptools.c:1865 [inbound routes] 404 not found 172.16.20.10 destination_number 300 sip_to_user 300 sip_req_user 300
e2893cd1-fbeb-4625-bb12-217a99c336d1 EXECUTE [depth=0] sofia/internal/100@172.16.20.10 respond(404 Not Found)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_sofia.c:2350 Responding with 404 [Not Found]
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [NOTICE] mod_sofia.c:2416 Hangup sofia/internal/100@172.16.20.10 [CS_EXECUTE] [UNALLOCATED_NUMBER]
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_session.c:2979 sofia/internal/100@172.16.20.10 skip receive message [APPLICATION_EXEC_COMPLETE] (channel is hungup already)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:647 (sofia/internal/100@172.16.20.10) State EXECUTE going to sleep
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/100@172.16.20.10) Running State Change CS_HANGUP (Cur 1 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:844 (sofia/internal/100@172.16.20.10) Callstate Change RINGING -> HANGUP
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:846 (sofia/internal/100@172.16.20.10) State HANGUP
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_sofia.c:469 Channel sofia/internal/100@172.16.20.10 hanging up, cause: UNALLOCATED_NUMBER
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_sofia.c:614 Responding to INVITE with: 404
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:59 sofia/internal/100@172.16.20.10 Standard HANGUP, cause: UNALLOCATED_NUMBER
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:846 (sofia/internal/100@172.16.20.10) State HANGUP going to sleep
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:616 (sofia/internal/100@172.16.20.10) State Change CS_HANGUP -> CS_REPORTING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:581 (sofia/internal/100@172.16.20.10) Running State Change CS_REPORTING (Cur 1 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:932 (sofia/internal/100@172.16.20.10) State REPORTING
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:168 sofia/internal/100@172.16.20.10 Standard REPORTING, cause: UNALLOCATED_NUMBER
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:932 (sofia/internal/100@172.16.20.10) State REPORTING going to sleep
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:607 (sofia/internal/100@172.16.20.10) State Change CS_REPORTING -> CS_DESTROY
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_session.c:1744 Session 78 (sofia/internal/100@172.16.20.10) Locked, Waiting on external entities
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [NOTICE] switch_core_session.c:1762 Session 78 (sofia/internal/100@172.16.20.10) Ended
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [NOTICE] switch_core_session.c:1766 Close Channel sofia/internal/100@172.16.20.10 [CS_DESTROY]
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:735 (sofia/internal/100@172.16.20.10) Running State Change CS_DESTROY (Cur 0 Tot 78)
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] switch_core_state_machine.c:745 (sofia/internal/100@172.16.20.10) State DESTROY
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.698680 94.63% [DEBUG] mod_sofia.c:380 sofia/internal/100@172.16.20.10 SOFIA DESTROY
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.798718 94.63% [DEBUG] switch_core_state_machine.c:175 sofia/internal/100@172.16.20.10 Standard DESTROY
e2893cd1-fbeb-4625-bb12-217a99c336d1 2024-02-26 14:54:01.798718 94.63% [DEBUG] switch_core_state_machine.c:745 (sofia/internal/100@172.16.20.10) State DESTROY going to sleep
What route should I have in the destination instance for it to route calls?