NO JOY Outbound Route Issue with Wazo

RizSher

Guru
Joined
Oct 18, 2007
Messages
146
Reaction score
7
My legacy Elastix based box got hacked over the weekend. I only found out cos my UK VoIP provider, VoipTalk.org sent an automated email telling me they've noticed suspicious calls on my account, to Montenegro, in the last 20 minutes. Luckily, I looked at the emial quick enough and was able to disble the box - still got about 10$ worth of calls I didnt make!!!.

Anyway, formatted the laptop and installed Wazo - bit of a learning curve compared to the familiar FreePBX/Nerdvittles guides I've been used to for the last 10 years plus. Have managed to configure all my trunks. Even have gotten ObiHai to do FXO - so, local calls get channeled through my local telecom POTS line - haven't gotten round to DISA and inwards calling yet.

Have an issue with OB routes. With the following "Exten" setup, I'm able to call out

Extern prefix Prefix Exten Stripnum Callerid
0 9999XXXXXXXXXX 4 012345678

dial 99991711234567, and the sytem strips the 999, adds a 0, and dials out 01711234567.

However, if I just replace the 9999 with 0044 to simulate real world calling, so, calls to the UK go through:

Extern prefix Prefix Exten Stripnum Callerid
0 0044XXXXXXXXXX 4 012345678

Ideal being, instead of 9999, if I dial a U number, 00441711234567, the system should just strip 0044, add a zero, and dial out 01711234567 - no different to 9999, just ,strip 0044 instead - calls fail

get the following CLI:

Code:
[Aug  6 15:11:29]     -- Executing [00441711234567@default:1] NoOp("SIP/r8o61ze8-00000050", "Outgoing call") in new stack
[Aug  6 15:11:29]     -- Executing [00441711234567@default:2] NoOp("SIP/r8o61ze8-00000050", "SpeedDial: 00441711234567") in new stack
[Aug  6 15:11:29]     -- Executing [00441711234567@default:3] Set("SIP/r8o61ze8-00000050", "DIALCODE=441711234567") in new stack
[Aug  6 15:11:29]        > Found no rows [SELECT name, out FROM user1 WHERE dialcode='441711234567']
[Aug  6 15:11:29]     -- Executing [00441711234567@default:4] Set("SIP/r8o61ze8-00000050", "USERDATA=") in new stack
[Aug  6 15:11:29]     -- Executing [00441711234567@default:5] GotoIf("SIP/r8o61ze8-00000050", "1?notfound:dialit") in new stack
[Aug  6 15:11:29]     -- Goto (default,00441711234567,12)
[Aug  6 15:11:29]     -- Executing [00441711234567@default:12] AGI("SIP/r8o61ze8-00000050", "picotts.agi,"No matching entry on file. Good bye.",en-US")

The corresponding 9999 cli, where the calls work fine is:

Code:
Aug  6 15:13:05]     -- Executing [99991711234567@default:1] Set("SIP/r8o61ze8-00000051", "XIVO_BASE_CONTEXT=default") in new stack
[Aug  6 15:13:05]     -- Executing [99991711234567@default:2] Set("SIP/r8o61ze8-00000051", "XIVO_BASE_EXTEN=99991711234567") in new stack
[Aug  6 15:13:05]     -- Executing [99991711234567@default:3] Gosub("SIP/r8o61ze8-00000051", "outcall,s,1(10,)") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:1] Set("SIP/r8o61ze8-00000051", "XIVO_DSTID=10") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:2] Set("SIP/r8o61ze8-00000051", "XIVO_PRESUBR_GLOBAL_NAME=OUTCALL") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:3] Set("SIP/r8o61ze8-00000051", "XIVO_SRCNUM=r8o61ze8") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:4] Set("SIP/r8o61ze8-00000051", "XIVO_DSTNUM=99991711234567") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:5] Set("SIP/r8o61ze8-00000051", "XIVO_CONTEXT=default") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:6] Set("SIP/r8o61ze8-00000051", "WAZO_CHANNEL_DIRECTION=to-wazo") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:7] Gosub("SIP/r8o61ze8-00000051", "originate-caller-id,s,1") in new stack
[Aug  6 15:13:05]     -- Executing [s@originate-caller-id:1] GotoIf("SIP/r8o61ze8-00000051", "0?:name") in new stack
[Aug  6 15:13:05]     -- Goto (originate-caller-id,s,3)
[Aug  6 15:13:05]     -- Executing [s@originate-caller-id:3] GotoIf("SIP/r8o61ze8-00000051", "0?:fix") in new stack
[Aug  6 15:13:05]     -- Goto (originate-caller-id,s,5)
[Aug  6 15:13:05]     -- Executing [s@originate-caller-id:5] GotoIf("SIP/r8o61ze8-00000051", "?:end") in new stack
[Aug  6 15:13:05]     -- Goto (originate-caller-id,s,9)
[Aug  6 15:13:05]     -- Executing [s@originate-caller-id:9] Return("SIP/r8o61ze8-00000051", "") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:8] AGI("SIP/r8o61ze8-00000051", "agi://127.0.0.1/outgoing_user_set_features") in new stack
[Aug  6 15:13:05]  agi://127.0.0.1/outgoing_user_set_features: AGI handler 'outgoing_user_set_features' successfully executed
[Aug  6 15:13:05]     -- <SIP/r8o61ze8-00000051>AGI Script agi://127.0.0.1/outgoing_user_set_features completed, returning 0
[Aug  6 15:13:05]     -- Executing [s@outcall:9] Gosub("SIP/r8o61ze8-00000051", "xivo-subroutine,s,1()") in new stack
[Aug  6 15:13:05]     -- Executing [s@xivo-subroutine:1] GotoIf("SIP/r8o61ze8-00000051", "?:nosubroutine") in new stack
[Aug  6 15:13:05]     -- Goto (xivo-subroutine,s,4)
[Aug  6 15:13:05]     -- Executing [s@xivo-subroutine:4] Return("SIP/r8o61ze8-00000051", "") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:10] Gosub("SIP/r8o61ze8-00000051", "xivo-user_rights_check,s,1") in new stack
[Aug  6 15:13:05]     -- Executing [s@xivo-user_rights_check:1] AGI("SIP/r8o61ze8-00000051", "agi://127.0.0.1/user_set_call_rights") in new stack
[Aug  6 15:13:05]  agi://127.0.0.1/user_set_call_rights: AGI handler 'user_set_call_rights' successfully executed
[Aug  6 15:13:05]     -- <SIP/r8o61ze8-00000051>AGI Script agi://127.0.0.1/user_set_call_rights completed, returning 0
[Aug  6 15:13:05]     -- Executing [s@xivo-user_rights_check:2] GotoIf("SIP/r8o61ze8-00000051", "ALLOW?:error,1") in new stack
[Aug  6 15:13:05]     -- Executing [s@xivo-user_rights_check:3] GotoIf("SIP/r8o61ze8-00000051", "1?allow,1") in new stack
[Aug  6 15:13:05]     -- Goto (xivo-user_rights_check,allow,1)
[Aug  6 15:13:05]     -- Executing [allow@xivo-user_rights_check:1] NoOp("SIP/r8o61ze8-00000051", "User allowed to make call") in new stack
[Aug  6 15:13:05]     -- Executing [allow@xivo-user_rights_check:2] Return("SIP/r8o61ze8-00000051", "") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:11] AGI("SIP/r8o61ze8-00000051", "agi://127.0.0.1/check_schedule") in new stack
[Aug  6 15:13:05]  agi://127.0.0.1/check_schedule: AGI handler 'check_schedule' successfully executed
[Aug  6 15:13:05]     -- <SIP/r8o61ze8-00000051>AGI Script agi://127.0.0.1/check_schedule completed, returning 0
[Aug  6 15:13:05]     -- Executing [s@outcall:12] GotoIf("SIP/r8o61ze8-00000051", "0?CLOSED,1") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:13] GotoIf("SIP/r8o61ze8-00000051", "?:15") in new stack
[Aug  6 15:13:05]     -- Goto (outcall,s,15)
[Aug  6 15:13:05]     -- Executing [s@outcall:15] GotoIf("SIP/r8o61ze8-00000051", "SIP/VoipTalk?:error,1") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:16] Set("SIP/r8o61ze8-00000051", "TRUNKINDEX=0") in new stack
[Aug  6 15:13:05]     -- Executing [s@outcall:17] Goto("SIP/r8o61ze8-00000051", "dial,1") in new stack
[Aug  6 15:13:05]     -- Goto (outcall,dial,1)
[Aug  6 15:13:05]     -- Executing [dial@outcall:1] Set("SIP/r8o61ze8-00000051", "INTERFACE=SIP/VoipTalk") in new stack
[Aug  6 15:13:05]     -- Executing [dial@outcall:2] Set("SIP/r8o61ze8-00000051", "TRUNKEXTEN=01711234567") in new stack

I have the same issue with outbound calls through the FXO - if I put a dummy set of numbers to route calls, calls go through fine, if I put a prefix, starting with 0, the same rule fails.

Am I missing something terribly obvious?

thanks.
Riz
 

ostridge

Guru
Joined
Jan 22, 2015
Messages
1,628
Reaction score
520
OOPS! FWIW your links are pointing to your Private IP https://192.168.1.128/service/ipbx/index.php/call_management/outcall/?act=edit&id=6#exten
192.168.1.* Those are behind a firewall on whatever network.
 

Members online

No members online now.

Forum statistics

Threads
25,810
Messages
167,754
Members
19,240
Latest member
nikko
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Top