inbound routes stop working

miltonviziak

New Member
Sep 2, 2023
14
0
1
35
Hello everybody,
Could you help me with one question, yesterday the inbound route worked normally, today it is giving an error, 420 bad extension.
When a call arrives it is played on an IVR

1730808988395.png


1730809014207.png



1730809042979.png



1730809073712.png
 

miltonviziak

New Member
Sep 2, 2023
14
0
1
35
2024-11-05 09:42:56.248528 99.33% [NOTICE] switch_channel.c:1123 New Channel sofia/interno-weclix/16982030694@172.16.11.66 [89629c33-89d7-4faa-839f-000f5a91f143]
2024-11-05 09:42:56.248528 99.33% [INFO] sofia.c:10453 sofia/interno-weclix/16982030694@172.16.11.66 receiving invite from 172.16.11.63:5060 version: 1.10.9 -release 64bit call-id: 52954dc9-1616-123e-5c90-005056a9b62c
2024-11-05 09:42:56.268529 99.33% [INFO] mod_dialplan_xml.c:639 Processing 16982030694 <16982030694>->1625250990 in context public
2024-11-05 09:42:56.268529 99.33% [NOTICE] switch_cpp.cpp:1465 [xml_handler] multiple key:dialplan:public
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 export(call_direction=inbound)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(domain_uuid=03959fc4-2a89-46c1-8869-d011fc91faaf)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(domain_name=pbx.weclixfixo.com.br)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 transfer(7000 XML pbx.weclixfixo.com.br)
2024-11-05 09:42:56.268529 99.33% [NOTICE] switch_ivr.c:2295 Transfer sofia/interno-weclix/16982030694@172.16.11.66 to XML[7000@pbx.weclixfixo.com.br]
2024-11-05 09:42:56.268529 99.33% [INFO] mod_dialplan_xml.c:639 Processing 16982030694 <16982030694>->7000 in context pbx.weclixfixo.com.br
2024-11-05 09:42:56.268529 99.33% [NOTICE] switch_cpp.cpp:1465 [xml_handler] multiple key:dialplan:pbx.weclixfixo.com.br
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(user_exists=false)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(from_user_exists=false)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(caller_destination=7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(caller_id_name=16982030694)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(operator=1000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 export(call_direction=outbound)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(caller_id_number=16982030694)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(RFC2822_DATE=Tue, 05 Nov 2024 09:42:56 -0300)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 export(origination_callee_id_name=7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 hash(insert/pbx.weclixfixo.com.br-last_dial/16982030694/7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 unset(call_timeout)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(hangup_after_bridge=true)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(effective_caller_id_name=)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(effective_caller_id_number=)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(inherit_codec=true)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(ignore_display_updates=true)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(callee_id_number=7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 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)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 bridge(sofia/gateway/5719458e-8222-4631-b62e-d7c64d5fef69/7000)
2024-11-05 09:42:56.288533 99.33% [NOTICE] switch_channel.c:1123 New Channel sofia/interno-weclix/7000 [b3e34708-2231-439f-aba7-b3b7b2ea625c]
2024-11-05 09:42:56.288533 99.33% [INFO] sofia_glue.c:1654 sofia/interno-weclix/7000 sending invite call-id: (null)
2024-11-05 09:42:56.288533 99.33% [NOTICE] sofia.c:8729 Hangup sofia/interno-weclix/7000 [CS_CONSUME_MEDIA] [INTERWORKING]
2024-11-05 09:42:56.308529 99.33% [NOTICE] switch_core_session.c:1761 Session 284 (sofia/interno-weclix/7000) Ended
2024-11-05 09:42:56.308529 99.33% [NOTICE] switch_core_session.c:1765 Close Channel sofia/interno-weclix/7000 [CS_DESTROY]
2024-11-05 09:42:56.308529 99.33% [INFO] mod_dptools.c:3637 Originate Failed. Cause: INTERWORKING
2024-11-05 09:42:56.308529 99.33% [NOTICE] switch_channel.c:4993 Hangup sofia/interno-weclix/16982030694@172.16.11.66 [CS_EXECUTE] [INTERWORKING]
2024-11-05 09:42:56.348530 99.33% [NOTICE] switch_channel.c:1123 New Channel sofia/interno-weclix/16982030694@172.16.11.66 [aa469626-3e49-4e47-bbcc-7596a349fa64]
2024-11-05 09:42:56.348530 99.33% [INFO] sofia.c:10453 sofia/interno-weclix/16982030694@172.16.11.66 receiving invite from 172.16.11.63:5060 version: 1.10.9 -release 64bit call-id: 52a24b4c-1616-123e-5c90-005056a9b62c
2024-11-05 09:42:56.348530 99.33% [INFO] mod_dialplan_xml.c:639 Processing 16982030694 <16982030694>->1625250990 in context public
2024-11-05 09:42:56.348530 99.33% [NOTICE] switch_cpp.cpp:1465 [xml_handler] multiple key:dialplan:public
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 export(call_direction=inbound)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(domain_uuid=03959fc4-2a89-46c1-8869-d011fc91faaf)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(domain_name=pbx.weclixfixo.com.br)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 transfer(7000 XML pbx.weclixfixo.com.br)
2024-11-05 09:42:56.348530 99.33% [NOTICE] switch_ivr.c:2295 Transfer sofia/interno-weclix/16982030694@172.16.11.66 to XML[7000@pbx.weclixfixo.com.br]
2024-11-05 09:42:56.348530 99.33% [INFO] mod_dialplan_xml.c:639 Processing 16982030694 <16982030694>->7000 in context pbx.weclixfixo.com.br
2024-11-05 09:42:56.348530 99.33% [NOTICE] switch_cpp.cpp:1465 [xml_handler] multiple key:dialplan:pbx.weclixfixo.com.br
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(user_exists=false)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(from_user_exists=false)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(caller_destination=7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(caller_id_name=16982030694)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(operator=1000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 export(call_direction=outbound)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(caller_id_number=16982030694)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(RFC2822_DATE=Tue, 05 Nov 2024 09:42:56 -0300)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 export(origination_callee_id_name=7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 hash(insert/pbx.weclixfixo.com.br-last_dial/16982030694/7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 unset(call_timeout)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(hangup_after_bridge=true)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(effective_caller_id_name=)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(effective_caller_id_number=)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(inherit_codec=true)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(ignore_display_updates=true)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 set(callee_id_number=7000)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 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)
EXECUTE [depth=0] sofia/interno-weclix/16982030694@172.16.11.66 bridge(sofia/gateway/5719458e-8222-4631-b62e-d7c64d5fef69/7000)
2024-11-05 09:42:56.368546 99.33% [NOTICE] switch_channel.c:1123 New Channel sofia/interno-weclix/7000 [554e22f4-f2fa-464d-95a3-b52dfb674a76]
2024-11-05 09:42:56.368546 99.33% [INFO] sofia_glue.c:1654 sofia/interno-weclix/7000 sending invite call-id: (null)
2024-11-05 09:42:56.368546 99.33% [NOTICE] sofia.c:8729 Hangup sofia/interno-weclix/7000 [CS_CONSUME_MEDIA] [INTERWORKING]
2024-11-05 09:42:56.368546 99.33% [NOTICE] switch_core_session.c:1761 Session 283 (sofia/interno-weclix/16982030694@172.16.11.66) Ended
2024-11-05 09:42:56.368546 99.33% [NOTICE] switch_core_session.c:1765 Close Channel sofia/interno-weclix/16982030694@172.16.11.66 [CS_DESTROY]
2024-11-05 09:42:56.388528 99.33% [NOTICE] switch_core_session.c:1761 Session 286 (sofia/interno-weclix/7000) Ended
2024-11-05 09:42:56.388528 99.33% [NOTICE] switch_core_session.c:1765 Close Channel sofia/interno-weclix/7000 [CS_DESTROY]
2024-11-05 09:42:56.388528 99.33% [INFO] mod_dptools.c:3637 Originate Failed. Cause: INTERWORKING
2024-11-05 09:42:56.388528 99.33% [NOTICE] switch_channel.c:4993 Hangup sofia/interno-weclix/16982030694@172.16.11.66 [CS_EXECUTE] [INTERWORKING]
2024-11-05 09:42:56.428527 99.33% [NOTICE] switch_core_session.c:1761 Session 285 (sofia/interno-weclix/16982030694@172.16.11.66) Ended
2024-11-05 09:42:56.428527 99.33% [NOTICE] switch_core_session.c:1765 Close Channel sofia/interno-weclix/16982030694@172.16.11.66 [CS_DESTROY]
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,068
576
113
I believe you problem is here: bridge(sofia/gateway/5719458e-8222-4631-b62e-d7c64d5fef69/7000

Why is it trying to use a gateway to send that call? I would guess that you have an outbound route that is catching that.
 

miltonviziak

New Member
Sep 2, 2023
14
0
1
35
Yes, I actually created an outbound route with the following expression (^\d{3,12}$)
To get the emergency numbers which are 1XX and 1XXXX and all other numbers such as mobile or free 0X00XXXXXXX

1730813948376.png

1730813964485.png


Any way to fix this without changing the outbounds routes ?
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,068
576
113
No, your outbound routes are likely to break everything, you are saying send anything over three digits, that will likely include ring groups, extensions, etc,etc, etc, Create separate outbound routes to match your emergency numbers etc.
 

miltonviziak

New Member
Sep 2, 2023
14
0
1
35
It worked by creating everything separate.

(^[2-5]\d{7})$
(^0[1-9][1-9][2-5]\d{7})$
(^9\d{8})$
(^0[1-9][1-9]9\d{8})$
(^1[0-9]{2,4})$
(^0[3,5,8,9]00\d{7})$

Thank you very much!!

Is there any material or document where we can learn and understand freeswitch logs ?

1730818058411.png
 

DigitalDaz

Administrator
Staff member
Sep 29, 2016
3,068
576
113
Its basically just experience. If you read through it, what you can actually see is that it is going through the dialplan as defined in the dialplan manager.