Emergency call outbound route only sends character 1 instead of 911

Status
Not open for further replies.

DaveDog

New Member
Feb 9, 2018
9
0
1
60
recreated route several times. one client domain was sending 911for a bit, but no other client domains would. Rebuilt the global route and now it's all gone.
 

DaveDog

New Member
Feb 9, 2018
9
0
1
60
condition ${user_exists} false 0 0 true
condition destination_number ^(911)$ 0 10 true
action set sip_h_X-accountcode=${accountcode} 0 20 true
action export call_direction=outbound 0 30 true
action unset call_timeout 0 40 true
action set hangup_after_bridge=true 0 50 true
action set effective_caller_id_name=${emergency_caller_id_name} 0 60 true
action set effective_caller_id_number=${emergency_caller_id_number} 0 70 true
action set inherit_codec=true 0 80 true
action set ignore_display_updates=true 0 90 true
action set callee_id_number=$1 0 100 true
action set continue_on_fail=1,2,3,6,18,21,27,28,31,34,38,41,42,44,58,88,111,403,501,602,607 0 110 true
action bridge sofia/gateway/out.skyetel.com/$1 0 120 true
action bridge sofia/gateway/skyetel.NW1/$1 0 130 true
action bridge sofia/gateway/skyetel.SE1/$1 0 140 true


 

49thnorth

New Member
Sep 18, 2020
1
0
1
Update
Additionally I can add to DaveDog's post above.
In the trace logs we see the dialplan "skyetel_911" being selected:

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com parsing [phone.XXXXX.com->default_caller_id] continue=true

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Regex (FAIL) [default_caller_id] ${emergency_caller_id_number}(5093403041) =~ /^$/ break=never

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Regex (FAIL) [default_caller_id] ${outbound_caller_id_number}(5093403041) =~ /^$/ break=never

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com parsing [phone.XXXXX.com->out.skyetel.com.711] continue=false

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Regex (PASS) [out.skyetel.com.711] ${user_exists}(false) =~ /false/ break=on-false

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Regex (FAIL) [out.skyetel.com.711] destination_number(933) =~ /^(711)$/ break=on-false

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com parsing [phone.XXXXX.com->skyetel_911] continue=false

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Regex (PASS) [skyetel_911] ${user_exists}(false) =~ /false/ break=on-false

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Regex (PASS) [skyetel_911] destination_number(933) =~ /^(911)$|^(933)$/ break=on-false


Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(sip_h_X-accountcode=${accountcode})

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(sip_h_X-Tenant=${domain_name})

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(effective_caller_id_name=${emergency_caller_id_name})

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(effective_caller_id_number=${emergency_caller_id_number})

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(call_direction=outbound)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action unset(call_timeout)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(hangup_after_bridge=true)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(inherit_codec=true)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(ignore_display_updates=true)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(callee_id_number=)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action set(continue_on_fail=true)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action sleep(${sleep})

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action bridge(sofia/gateway/22245a48-552c-463a-a723-ce01ebbd69a2/1)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action bridge(sofia/gateway/b171ba70-06a5-4560-82be-596ed9d00041/1)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action bridge(sofia/gateway/4864ac6e-9e50-4fff-8381-2c508f8912b5/1)

Dialplan: sofia/internal/XXXXX3003@phone.XXXXX.com Action bridge(sofia/gateway/5553606b-e543-4427-bb63-ebed16001937/1)

2022-03-17 17:09:58.362679 [DEBUG] switch_core_state_machine.c:286 (sofia/internal/XXXXX3003@phone.XXXXX.com) State Change CS_ROUTING -> CS_EXECUTE

2022-03-17 17:09:58.362679 [DEBUG] switch_core_state_machine.c:643 (sofia/internal/XXXXX3003@phone.XXXXX.com) State ROUTING going to sleep

2022-03-17 17:09:58.362679 [DEBUG] switch_core_state_machine.c:584 (sofia/internal/XXXXX3003@phone.XXXXX.com) Running State Change CS_EXECUTE (Cur 13 Tot 11277)

2022-03-17 17:09:58.362679 [DEBUG] switch_core_state_machine.c:650 (sofia/internal/XXXXX3003@phone.XXXXX.com) State EXECUTE

2022-03-17 17:09:58.362679 [DEBUG] mod_sofia.c:209 sofia/internal/XXXXX3003@phone.XXXXX.com SOFIA EXECUTE

and the gateways having a 1 on the end which I presume would be the issue. However, we do not show a dailplan called "skyetel_911" anywhere in the system.
Here is are dialplan manager showing current dialplans (and shows the correct dialplans that should be in the system:
1647551432681.png

So, it would seem we have a stuck old dialplan? I have searched and can not find a way to locate and delete it from the system. I have come accross a script for searching and deleting dialplans during an upgrade from the database, but I must have a syntax error in it after editing as it errors out not being able to find a dialplan called "skyetel_911".

Any help in resolving this issue would be GREATLY appreciated.
 

DaveDog

New Member
Feb 9, 2018
9
0
1
60
Update, determined there was a ghosted route not showing in the GUI, so we rebuilt that route using its name skyetel_911, made it global and that solved the issue.

We also temporarily fixed the issue by creating a new 911 route and then giving it a 90 priority, but we didn't think that band-aid was a nice clean solution.
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,070
577
113
Not that this is a fix but remember too that we don't even need to use $1 for this, ie:

action bridge sofia/gateway/skyetel.SE1/911

etc

The destination is fixed so we can always put this

In Europe 112 is an emergency number and in the UK it is 999

One of my carriers only accepts 999 so I use similar to:

condition destination_number ^(112|999)$
action bridge sofia/gateway/blah/999
 
Status
Not open for further replies.