Input route with specific did (international number) does not work

Hello, we have a sip trunk where the provider sends in international standard. in our case Brazil +551144441234

I created an inbound route informing the DID +551144441234 and directing to a specific extension.

but when I receive the call I get the error

Hello, we have a sip trunk where the provider sends in international standard. in our case Brazil +551144441234

I created an inbound route informing the DID +551144441234 and directing to a specific extension.

but when I receive the call I get the error

Executing [s@invalid-dest:1] NoOp(“SIP/sip-00000000”, “Invalid Route to Dial”) in new stack

I also tried to create at all with the did 551144441234 and the same problem.

when creating a route without informing the DID it works normally.

below log
Note: Origin +551122229988 destination +551144441234 It is an incoming call

[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:1] NoOp("SIP/sip-00000000", "Incoming call through: VIVO SIP") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:2] Set("SIP/sip-00000000", "__TRUNK_ID=1") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:3] Set("SIP/sip-00000000", "CDR(trunk)=1") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:4] Set("SIP/sip-00000000", "__DID_NUMBER=1144441234") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:5] Set("SIP/sip-00000000", "CDR(did)=1144441234") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:6] Set("SIP/sip-00000000", "DID=1144441234") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@trk-1-in:7] Goto("SIP/sip-00000000", "default-trunk,1144441234,1") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx_builtins.c: Goto (default-trunk,1144441234,1)
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@default-trunk:1] Gosub("SIP/sip-00000000", "set-global-tenant-vars,s,1") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:1] NoOp("SIP/sip-00000000", "Setting Global Vars for vitalpbx Tenant") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:2] Set("SIP/sip-00000000", "__TENANT_PATH=00fdbc826423c4b6") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:3] Set("SIP/sip-00000000", "__TENANT_PREFIX=") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:4] Set("SIP/sip-00000000", "__QUEUE_AGENTS_CONTEXT=queue-call-to-agents") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:5] Set("SIP/sip-00000000", "__FOLLOWME_CONTEXT=ext-followme") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:6] Set("SIP/sip-00000000", "__HINTS_CONTEXT=extension-hints") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:7] Set("SIP/sip-00000000", "__DEFAULT_COS=cos-all") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@set-global-tenant-vars:8] Return("SIP/sip-00000000", "") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@default-trunk:2] Gosub("SIP/sip-00000000", "sub-check-blacklist,s,1(00fdbc826423c4b6,+551122229988)") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-check-blacklist:1] NoOp("SIP/sip-00000000", "Testing if +551122229988 is in Black List") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-check-blacklist:2] GotoIf("SIP/sip-00000000", "0?banned") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-check-blacklist:3] Return("SIP/sip-00000000", "") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@default-trunk:3] Gosub("SIP/sip-00000000", "sub-setup-call-type,s,1(incoming)") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-setup-call-type:1] NoOp("SIP/sip-00000000", "Determinating Call Type") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-setup-call-type:2] GotoIf("SIP/sip-00000000", "0?return") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-setup-call-type:3] Gosub("SIP/sip-00000000", "s-incoming,1()") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s-incoming@sub-setup-call-type:1] NoOp("SIP/sip-00000000", "Incoming Call") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s-incoming@sub-setup-call-type:2] Set("SIP/sip-00000000", "__CALL_TYPE=2") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s-incoming@sub-setup-call-type:3] Set("SIP/sip-00000000", "__CALL_TYPE_LABEL=IN") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s-incoming@sub-setup-call-type:4] Return("SIP/sip-00000000", "") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-setup-call-type:4] Set("SIP/sip-00000000", "__CALL_TYPE_CONFIGURED=yes") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-setup-call-type:5] Set("SIP/sip-00000000", "CDR(calltype)=2") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@sub-setup-call-type:6] Return("SIP/sip-00000000", "") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@default-trunk:4] Gosub("SIP/sip-00000000", "dynamic-routing-in,s,1(+551122229988)") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@dynamic-routing-in:1] NoOp("SIP/sip-00000000", "Test if must to apply dynamic routing") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@dynamic-routing-in:2] Set("SIP/sip-00000000", "EXTERNAL_CALLER=+551122229988") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@dynamic-routing-in:3] Set("SIP/sip-00000000", "DYNROUTING_DM=0") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@dynamic-routing-in:4] GotoIf("SIP/sip-00000000", "1?gd") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx_builtins.c: Goto (dynamic-routing-in,s,6)
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@dynamic-routing-in:6] GotoIf("SIP/sip-00000000", "0?:rb") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx_builtins.c: Goto (dynamic-routing-in,s,11)
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@dynamic-routing-in:11] Return("SIP/sip-00000000", "") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [1144441234@default-trunk:5] Goto("SIP/sip-00000000", "incoming-calls,1144441234,1") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx_builtins.c: Goto (incoming-calls,1144441234,1)
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Channel 'SIP/sip-00000000' sent to invalid extension: context,exten,priority=incoming-calls,1144441234,1
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [i@incoming-calls:1] NoCDR("SIP/sip-00000000", "") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [i@incoming-calls:2] Goto("SIP/sip-00000000", "invalid-dest,s,1") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx_builtins.c: Goto (invalid-dest,s,1)
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@invalid-dest:1] NoOp("SIP/sip-00000000", "Invalid Route to Dial") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@invalid-dest:2] GotoIf("SIP/sip-00000000", "0?end") in new stack
[2021-10-21 22:02:31] VERBOSE[7407][C-00000001] pbx.c: Executing [s@invalid-dest:3] Playback("SIP/sip-00000000", "im-sorry&no-route-exists-to-dest&vm-goodbye") in new stack
[2021-10-21 22:02:32] VERBOSE[7407][C-00000001] res_rtp_asterisk.c: 0x7f4ec0005fb0 -- Strict RTP switching to RTP target address 10.255.240.112:36700 as source
1 Like

From the logs it looks like your provider is sending 1144441234 (without 55 or +55), try to set this as the DID.

he sends with +55.

when processing inside the bpx in the logo on some lines it appears without the + and in others with the +

already created the rules of the two ways +551144441234 and 551144441234 and both have the same error…

Executing [s@invalid-dest:1] NoOp(“SIP/sip-00000000”, “Invalid Route to Dial”) in new stack

I also put the rule with 1144441234 and it didn’t work

Try to add 1144441234 again, then run asterisk -x"dialplan show 1144441234@incoming-calls" then test again and post the output here.

1 Like

You should set up 1144441234 in your inbound routes and apply the changes.

Sorry
the customer has requested a change in their provider.

so I can’t test the solution anymore.

now the providos is sending in the format 1144441234 and in these formats it is working normally thanks for the help

Thanks for the update.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.