New Freeswitch user here looking for some basic configuration help. I am trying to have an incoming call routed to extension 1000. I have my SIP registration working with my provider (voip.ms). I have a DID assigned with them, etc.

When I call my DID I see the incoming call show up in fs_cli but it never routes to extension 1000. It fails after a few seconds. In the log I see an entry where the incoming call number is mapping to my registration username which happens to be a number. I don’t think that is what should be happening but maybe that is normal. This is a log snippet from when the call state changes to ringing to the call state hangup.

There are some default configurations in place such as a conference profile in conf/dialplane/default.xml but I don’t think that is causing the problem.

What are your thoughts on what I have done wrong on this?

Thanks.

  • xxxxxxxxxx is the number of the phone I am calling from
  • yyyyyy is the username (and they are all digits no letters) of my SIP registration account found in conf/sip_profiles/external/voipms.xml
  • zzzzzzzzzz is the number of the DID I have assigned with my SIP provider

2023-11-16 20:33:36.632437 98.50% [DEBUG] switch_channel.c:2380 (sofia/external/xxxxxxxxxx@208.100.60.33) Callstate Change DOWN -> RINGING
2023-11-16 20:33:36.632437 98.50% [DEBUG] switch_core_state_machine.c:640 (sofia/external/xxxxxxxxxx@208.100.60.33) State ROUTING
2023-11-16 20:33:36.632437 98.50% [DEBUG] mod_sofia.c:158 sofia/external/xxxxxxxxxx@208.100.60.33 SOFIA ROUTING
2023-11-16 20:33:36.632437 98.50% [DEBUG] switch_core_state_machine.c:230 sofia/external/xxxxxxxxxx@208.100.60.33 Standard ROUTING
2023-11-16 20:33:36.632437 98.50% [INFO] mod_dialplan_xml.c:639 Processing [V] xxxxxxxxxx ->yyyyyy in context public
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 parsing [public->unloop] continue=false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Regex (PASS) [unloop] ${unroll_loops}(true) =~ /^true$/ break=on-false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Regex (FAIL) [unloop] ${sip_looped_call}() =~ /^true$/ break=on-false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 parsing [public->outside_call] continue=true
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Absolute Condition [outside_call]
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Action set(outside_call=true)
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Action export(RFC2822_DATE=${strftime(%a, %d %b %Y %T %z)})
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 parsing [public->call_debug] continue=true
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Regex (FAIL) [call_debug] ${call_debug}(false) =~ /^true$/ break=never
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 parsing [public->public_extensions] continue=false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Regex (FAIL) [public_extensions] destination_number(yyyyyy) =~ /^(10[01][0-9])$/ break=on-false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 parsing [public->public_conference_extensions] continue=false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Regex (FAIL) [public_conference_extensions] destination_number(yyyyyy) =~ /^(3[5-8][01][0-9])$/ break=on-false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 parsing [public->public_did] continue=false
Dialplan: sofia/external/xxxxxxxxxx@208.100.60.33 Regex (FAIL) [public_did] destination_number(yyyyyy) =~ /^zzzzzzzzzz$/ break=on-false
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:281 (sofia/external/xxxxxxxxxx@208.100.60.33) State Change CS_ROUTING -> CS_EXECUTE
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:640 (sofia/external/xxxxxxxxxx@208.100.60.33) State ROUTING going to sleep
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:581 (sofia/external/xxxxxxxxxx@208.100.60.33) Running State Change CS_EXECUTE (Cur 1 Tot 1)
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:647 (sofia/external/xxxxxxxxxx@208.100.60.33) State EXECUTE
2023-11-16 20:33:36.652510 98.50% [DEBUG] mod_sofia.c:213 sofia/external/xxxxxxxxxx@208.100.60.33 SOFIA EXECUTE
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:323 sofia/external/xxxxxxxxxx@208.100.60.33 Standard EXECUTE
EXECUTE [depth=0] sofia/external/xxxxxxxxxx@208.100.60.33 set(outside_call=true)
2023-11-16 20:33:36.652510 98.50% [DEBUG] mod_dptools.c:1673 SET sofia/external/xxxxxxxxxx@208.100.60.33 [outside_call]=[true]
EXECUTE [depth=0] sofia/external/xxxxxxxxxx@208.100.60.33 export(RFC2822_DATE=Thu, 16 Nov 2023 20:33:36 +0000)
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_channel.c:1315 EXPORT (export_vars) [RFC2822_DATE]=[Thu, 16 Nov 2023 20:33:36 +0000]
2023-11-16 20:33:36.652510 98.50% [NOTICE] switch_core_state_machine.c:382 sofia/external/xxxxxxxxxx@208.100.60.33 has executed the last dialplan instruction, hanging up.
2023-11-16 20:33:36.652510 98.50% [NOTICE] switch_core_state_machine.c:384 Hangup sofia/external/xxxxxxxxxx@208.100.60.33 [CS_EXECUTE] [NORMAL_CLEARING]
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:647 (sofia/external/xxxxxxxxxx@208.100.60.33) State EXECUTE going to sleep
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:581 (sofia/external/xxxxxxxxxx@208.100.60.33) Running State Change CS_HANGUP (Cur 1 Tot 1)
2023-11-16 20:33:36.652510 98.50% [DEBUG] switch_core_state_machine.c:844 (sofia/external/xxxxxxxxxx@208.100.60.33) Callstate Change RINGING -> HANGUP

In my conf/dialplan/public/00_inbound_did.xml file I have this set: