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 [[email protected]:1] NoOp("SIP/r8o61ze8-00000050", "Outgoing call") in new stack
[Aug  6 15:11:29]     -- Executing [[email protected]:2] NoOp("SIP/r8o61ze8-00000050", "SpeedDial: 00441711234567") in new stack
[Aug  6 15:11:29]     -- Executing [[email protected]: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 [[email protected]:4] Set("SIP/r8o61ze8-00000050", "USERDATA=") in new stack
[Aug  6 15:11:29]     -- Executing [[email protected]: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 [[email protected]: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 [[email protected]:1] Set("SIP/r8o61ze8-00000051", "XIVO_BASE_CONTEXT=default") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:2] Set("SIP/r8o61ze8-00000051", "XIVO_BASE_EXTEN=99991711234567") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:3] Gosub("SIP/r8o61ze8-00000051", "outcall,s,1(10,)") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:1] Set("SIP/r8o61ze8-00000051", "XIVO_DSTID=10") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:2] Set("SIP/r8o61ze8-00000051", "XIVO_PRESUBR_GLOBAL_NAME=OUTCALL") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:3] Set("SIP/r8o61ze8-00000051", "XIVO_SRCNUM=r8o61ze8") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:4] Set("SIP/r8o61ze8-00000051", "XIVO_DSTNUM=99991711234567") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:5] Set("SIP/r8o61ze8-00000051", "XIVO_CONTEXT=default") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:6] Set("SIP/r8o61ze8-00000051", "WAZO_CHANNEL_DIRECTION=to-wazo") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:7] Gosub("SIP/r8o61ze8-00000051", "originate-caller-id,s,1") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]: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 [[email protected]: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 [[email protected]: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 [[email protected]:9] Return("SIP/r8o61ze8-00000051", "") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]: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 [[email protected]:9] Gosub("SIP/r8o61ze8-00000051", "xivo-subroutine,s,1()") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]: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 [[email protected]:4] Return("SIP/r8o61ze8-00000051", "") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:10] Gosub("SIP/r8o61ze8-00000051", "xivo-user_rights_check,s,1") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]_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 [[email protected]_rights_check:2] GotoIf("SIP/r8o61ze8-00000051", "ALLOW?:error,1") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]_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 [[email protected]_rights_check:1] NoOp("SIP/r8o61ze8-00000051", "User allowed to make call") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]_rights_check:2] Return("SIP/r8o61ze8-00000051", "") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]: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 [[email protected]:12] GotoIf("SIP/r8o61ze8-00000051", "0?CLOSED,1") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:13] GotoIf("SIP/r8o61ze8-00000051", "?:15") in new stack
[Aug  6 15:13:05]     -- Goto (outcall,s,15)
[Aug  6 15:13:05]     -- Executing [[email protected]:15] GotoIf("SIP/r8o61ze8-00000051", "SIP/VoipTalk?:error,1") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]:16] Set("SIP/r8o61ze8-00000051", "TRUNKINDEX=0") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]: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 [[email protected]:1] Set("SIP/r8o61ze8-00000051", "INTERFACE=SIP/VoipTalk") in new stack
[Aug  6 15:13:05]     -- Executing [[email protected]: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
379
Reaction score
69
Location
UK
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

PIAF 5 - Powered by 3CX

Forum statistics

Threads
22,317
Messages
136,960
Members
14,542
Latest member
k0dean