freeswitchforum.com

Форум поддержки FreeSWITCH

FreeSWITCH is a registered trademark of Anthony Minessale. Official FreeSWITCH site.

Текущее время: 29 мар 2024 01:00

Часовой пояс: UTC + 4 часа




Начать новую тему Ответить на тему  [ Сообщений: 2 ] 
Автор Сообщение
 Заголовок сообщения: Calling emergency services does not work
СообщениеДобавлено: 14 сен 2022 16:31 

Зарегистрирован: 14 сен 2022 13:24
Сообщения: 1
We have the following situation.
We have a freeswitch that has a sip trunk connecton to a cisco pbx.
We us the 0 to call an external number.

We want to call the emergency services in the netherlands with number 112.

when we try to call 112 we get the message on the phone that the location is unknown.
When we try to call 0112 it does work.

We use the following file for the rules of our dialformat: C:\program files\freeswitch\conf\dialplan\default.xml.


Calling 112 does not work
<extension name="external_numbers 112">
<condition field="destination_number" expression="^112$">
<action application="bridge" data="sofia/gateway/CiscoCallManager/0112$1"/>
</condition>
</extension>

Calling 0112 does work

<extension name="external_numbers 0112">
<condition field="destination_number" expression="^0112$">
<action application="bridge" data="sofia/gateway/CiscoCallManager/0112$1"/>
</condition>
</extension>

The gateway ciscocallmanager is the sip trunk to the Cisco pbx



2022-09-13 15:27:40.227041 [DEBUG] sofia.c:7291 Channel sofia/external/0112$1 entering state [calling][0]
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:643 (sofia/external/0112$1) State ROUTING
2022-09-13 15:27:40.227041 [DEBUG] mod_sofia.c:154 sofia/external/0112$1 SOFIA ROUTING
2022-09-13 15:27:40.227041 [DEBUG] switch_ivr_originate.c:67 (sofia/external/0112$1) State Change CS_ROUTING -> CS_CONSUME_MEDIA
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:643 (sofia/external/0112$1) State ROUTING going to sleep
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0112$1) Running State Change CS_CONSUME_MEDIA (Cur 4 Tot 24)
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:662 (sofia/external/0112$1) State CONSUME_MEDIA
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:662 (sofia/external/0112$1) State CONSUME_MEDIA going to sleep
2022-09-13 15:27:40.227041 [DEBUG] sofia.c:6462 Remote Reason: 1
2022-09-13 15:27:40.227041 [DEBUG] sofia.c:7291 Channel sofia/external/0112$1 entering state [terminated][404]
2022-09-13 15:27:40.227041 [NOTICE] sofia.c:8484 Hangup sofia/external/0112$1 [CS_CONSUME_MEDIA] [UNALLOCATED_NUMBER]
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:584 (sofia/external/0112$1) Running State Change CS_HANGUP (Cur 4 Tot 24)
2022-09-13 15:27:40.227041 [DEBUG] switch_core_state_machine.c:847 (sofia/external/0112$1) Callstate Change DOWN -> HANGUP


Does anyone know what the issue and how we can resolve this.


Вернуться к началу
 Профиль  
 
 Заголовок сообщения: Re: Calling emergency services does not work
СообщениеДобавлено: 16 сен 2022 07:33 
FreeSWITCH_GuRu

Зарегистрирован: 22 авг 2012 09:52
Сообщения: 1710
try replace lines
Код:
<condition field="destination_number" expression="^112$">
to
Код:
<condition field="destination_number" expression="^(112)$">

and
Код:
<condition field="destination_number" expression="^0112$">
to
Код:
<condition field="destination_number" expression="^(0112)$">

_________________
ЛС: @rostel
Сообщество: @ru_freeswitch


Вернуться к началу
 Профиль  
 
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 2 ] 

Часовой пояс: UTC + 4 часа


Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 39


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
Powered by phpBB® Forum Software © phpBB Group
Русская поддержка phpBB