I have a cisco 2911 which has an 8 port FSX card. I am trying to setup a SIP trunk so that I can send it some DID's and/or extensions to it. My plan is to connect a couple of analog phone and/or faxes. I have setup a bridge with the syntax below which I got from a previous SIP Trunking forum. I have added my destination to point to this bridge.
sofia/internal/sip:$1${regex(${sofia_contact101021@10.21.10.12)}|^[^@]+(.*)|%1)}
When I call 7778889999 from my cell phone Freeswitch responds and attempts to bridge the call, but it seems like my syntax is wrong then dies within freeswitch. The call never gets to the Cisco 2911. What am I missing?
My Fusionbox = 10.21.10.4
Cisco 2911 = 10.21.10.12
######################################
Dialplan: sofia/internal/+13334445555@sip.mydomain.com Action set(continue_on_fail=true)
Dialplan: sofia/internal/+13334445555@sip.mydomain.com Action bridge(sofia/internal/sip:17778889999${regex(${sofia_contact101021@10.21.10.12)}|^[^@]+(.*)|%1)})
2020-03-13 20:51:39.234828 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/+13334445555@sip.mydomain.com) State Change CS_ROUTING -> CS_EXECUTE
2020-03-13 20:51:39.234828 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/+13334445555@sip.mydomain.com) State ROUTING going to sleep
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/+13334445555@sip.mydomain.com) Running State Change CS_EXECUTE (Cur 1 Tot 493)
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/+13334445555@sip.mydomain.com) State EXECUTE
2020-03-13 20:51:39.254804 [DEBUG] mod_sofia.c:198 sofia/internal/+13334445555@sip.mydomain.com SOFIA EXECUTE
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:328 sofia/internal/+13334445555@sip.mydomain.com Standard EXECUTE
EXECUTE sofia/internal/+13334445555@sip.mydomain.com set(call_direction=inbound)
2020-03-13 20:51:39.254804 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13334445555@sip.mydomain.com [call_direction]=[inbound]
EXECUTE sofia/internal/+13334445555@sip.mydomain.com set(hangup_after_bridge=true)
2020-03-13 20:51:39.254804 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13334445555@sip.mydomain.com [hangup_after_bridge]=[true]
EXECUTE sofia/internal/+13334445555@sip.mydomain.com set(continue_on_fail=true)
2020-03-13 20:51:39.254804 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13334445555@sip.mydomain.com [continue_on_fail]=[true]
EXECUTE sofia/internal/+13334445555@sip.mydomain.com bridge(sofia/internal/sip:17778889999-ERR)
2020-03-13 20:51:39.254804 [DEBUG] switch_channel.c:1250 sofia/internal/+13334445555@sip.mydomain.com EXPORTING[export_vars] [call_direction]=[inbound] to event
2020-03-13 20:51:39.254804 [DEBUG] switch_channel.c:1250 sofia/internal/+13334445555@sip.mydomain.com EXPORTING[export_vars] [call_direction]=[inbound] to event
2020-03-13 20:51:39.254804 [DEBUG] switch_channel.c:1250 sofia/internal/+13334445555@sip.mydomain.com EXPORTING[export_vars] [call_direction]=[inbound] to event
2020-03-13 20:51:39.254804 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2020-03-13 20:51:39.254804 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/sip:17778889999-ERR [0533017a-f4c5-42a3-8090-2db1cff821c0]
2020-03-13 20:51:39.254804 [DEBUG] mod_sofia.c:4819 (sofia/internal/sip:17778889999-ERR) State Change CS_NEW -> CS_INIT
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/sip:17778889999-ERR) Running State Change CS_INIT (Cur 2 Tot 494)
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/sip:17778889999-ERR) State INIT
2020-03-13 20:51:39.254804 [DEBUG] mod_sofia.c:90 sofia/internal/sip:17778889999-ERR SOFIA INIT
2020-03-13 20:51:39.254804 [DEBUG] sofia_glue.c:1295 sofia/internal/sip:17778889999-ERR sending invite version: 1.6.20 -37-987c9b9 64bit
Local SDP:
v=0
o=FreeSWITCH 1584116509 1584116510 IN IP4 10.21.10.4
s=FreeSWITCH
c=IN IP4 10.21.10.4
t=0 0
m=audio 30590 RTP/AVP 0 9 8 3 101 13
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=ptime:20
a=sendrecv
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:40 sofia/internal/sip:17778889999-ERR Standard INIT
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/sip:17778889999-ERR) State Change CS_INIT -> CS_ROUTING
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/sip:17778889999-ERR) State INIT going to sleep
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/sip:17778889999-ERR) Running State Change CS_ROUTING (Cur 2 Tot 494)
2020-03-13 20:51:39.254804 [DEBUG] sofia.c:7084 Channel sofia/internal/sip:17778889999-ERR entering state [calling][0]
2020-03-13 20:51:39.254804 [DEBUG] sofia.c:7084 Channel sofia/internal/sip:17778889999-ERR entering state [terminated][503]
2020-03-13 20:51:39.254804 [NOTICE] sofia.c:8273 Hangup sofia/internal/sip:17778889999-ERR [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]
sofia/internal/sip:$1${regex(${sofia_contact101021@10.21.10.12)}|^[^@]+(.*)|%1)}
When I call 7778889999 from my cell phone Freeswitch responds and attempts to bridge the call, but it seems like my syntax is wrong then dies within freeswitch. The call never gets to the Cisco 2911. What am I missing?
My Fusionbox = 10.21.10.4
Cisco 2911 = 10.21.10.12
######################################
Dialplan: sofia/internal/+13334445555@sip.mydomain.com Action set(continue_on_fail=true)
Dialplan: sofia/internal/+13334445555@sip.mydomain.com Action bridge(sofia/internal/sip:17778889999${regex(${sofia_contact101021@10.21.10.12)}|^[^@]+(.*)|%1)})
2020-03-13 20:51:39.234828 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/+13334445555@sip.mydomain.com) State Change CS_ROUTING -> CS_EXECUTE
2020-03-13 20:51:39.234828 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/+13334445555@sip.mydomain.com) State ROUTING going to sleep
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/+13334445555@sip.mydomain.com) Running State Change CS_EXECUTE (Cur 1 Tot 493)
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/+13334445555@sip.mydomain.com) State EXECUTE
2020-03-13 20:51:39.254804 [DEBUG] mod_sofia.c:198 sofia/internal/+13334445555@sip.mydomain.com SOFIA EXECUTE
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:328 sofia/internal/+13334445555@sip.mydomain.com Standard EXECUTE
EXECUTE sofia/internal/+13334445555@sip.mydomain.com set(call_direction=inbound)
2020-03-13 20:51:39.254804 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13334445555@sip.mydomain.com [call_direction]=[inbound]
EXECUTE sofia/internal/+13334445555@sip.mydomain.com set(hangup_after_bridge=true)
2020-03-13 20:51:39.254804 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13334445555@sip.mydomain.com [hangup_after_bridge]=[true]
EXECUTE sofia/internal/+13334445555@sip.mydomain.com set(continue_on_fail=true)
2020-03-13 20:51:39.254804 [DEBUG] mod_dptools.c:1548 SET sofia/internal/+13334445555@sip.mydomain.com [continue_on_fail]=[true]
EXECUTE sofia/internal/+13334445555@sip.mydomain.com bridge(sofia/internal/sip:17778889999-ERR)
2020-03-13 20:51:39.254804 [DEBUG] switch_channel.c:1250 sofia/internal/+13334445555@sip.mydomain.com EXPORTING[export_vars] [call_direction]=[inbound] to event
2020-03-13 20:51:39.254804 [DEBUG] switch_channel.c:1250 sofia/internal/+13334445555@sip.mydomain.com EXPORTING[export_vars] [call_direction]=[inbound] to event
2020-03-13 20:51:39.254804 [DEBUG] switch_channel.c:1250 sofia/internal/+13334445555@sip.mydomain.com EXPORTING[export_vars] [call_direction]=[inbound] to event
2020-03-13 20:51:39.254804 [DEBUG] switch_ivr_originate.c:2142 Parsing global variables
2020-03-13 20:51:39.254804 [NOTICE] switch_channel.c:1104 New Channel sofia/internal/sip:17778889999-ERR [0533017a-f4c5-42a3-8090-2db1cff821c0]
2020-03-13 20:51:39.254804 [DEBUG] mod_sofia.c:4819 (sofia/internal/sip:17778889999-ERR) State Change CS_NEW -> CS_INIT
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/sip:17778889999-ERR) Running State Change CS_INIT (Cur 2 Tot 494)
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/sip:17778889999-ERR) State INIT
2020-03-13 20:51:39.254804 [DEBUG] mod_sofia.c:90 sofia/internal/sip:17778889999-ERR SOFIA INIT
2020-03-13 20:51:39.254804 [DEBUG] sofia_glue.c:1295 sofia/internal/sip:17778889999-ERR sending invite version: 1.6.20 -37-987c9b9 64bit
Local SDP:
v=0
o=FreeSWITCH 1584116509 1584116510 IN IP4 10.21.10.4
s=FreeSWITCH
c=IN IP4 10.21.10.4
t=0 0
m=audio 30590 RTP/AVP 0 9 8 3 101 13
a=rtpmap:0 PCMU/8000
a=rtpmap:9 G722/8000
a=rtpmap:8 PCMA/8000
a=rtpmap:3 GSM/8000
a=rtpmap:101 telephone-event/8000
a=fmtp:101 0-16
a=rtpmap:13 CN/8000
a=ptime:20
a=sendrecv
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:40 sofia/internal/sip:17778889999-ERR Standard INIT
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:48 (sofia/internal/sip:17778889999-ERR) State Change CS_INIT -> CS_ROUTING
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:627 (sofia/internal/sip:17778889999-ERR) State INIT going to sleep
2020-03-13 20:51:39.254804 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/sip:17778889999-ERR) Running State Change CS_ROUTING (Cur 2 Tot 494)
2020-03-13 20:51:39.254804 [DEBUG] sofia.c:7084 Channel sofia/internal/sip:17778889999-ERR entering state [calling][0]
2020-03-13 20:51:39.254804 [DEBUG] sofia.c:7084 Channel sofia/internal/sip:17778889999-ERR entering state [terminated][503]
2020-03-13 20:51:39.254804 [NOTICE] sofia.c:8273 Hangup sofia/internal/sip:17778889999-ERR [CS_ROUTING] [NORMAL_TEMPORARY_FAILURE]