Outbound Call is not working

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Outbound Call is not working

Postby alfie013 » Sat Jan 11, 2020 2:08 am

Hi,

I need your help on what's the correct configuration that I need to use so I can do an outbound call? Here's my current setup including the version of my ViciDial server:

Registration String:
register => 112233445566:12345567899@111.222.333.444:6789/112233445566

Account Entry:
[cts]
username=123456778899
type=friend
secret=123345677899
qualify=yes
port=6789
nat=force_rport
host=111.222.333.444
dtmfmode=rfc2833
disallow=all
context=trunkinbound
canreinvite=yes
allow=gsm
allow=ulaw
allow=alaw
allow=g729
allow=ilbc

Globals String: SIPTRUNK = SIP/cts

exten => _71NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7XXXXXXXXXXXXXX,2,Dial(${SIPTRUNK}/${EXTEN:1}@cts,,To)
exten => _7NXXNXXXXXX,3,Hangup

VERSION: 2.14-732a
BUILD: 200108-0937


The carrier successfully registered. However, when I tried to perform an outbound calls, the Asterisk logs always shows below and the calls didn't go thru:
chan_sip.c:26515 handle_request_invite: Call from '132' (123.123.123.123:65476) to extension '7861064648855' rejected because extension not found in context 'default'.

I need to use number 7 as my Prefix. I followed this guide (https://www.etollfree.net/predictive-di ... -dids.html) to configure my ViciDial.

Hope you can help me. Thank you in advance!
alfie013
 
Posts: 10
Joined: Mon May 06, 2019 12:53 am

Re: Outbound Call is not working

Postby ambiorixg12 » Mon Jan 13, 2020 8:46 am

Pattern doesn't match, removing the prefix it is an 11 digit pattern and number have 12 digits
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Outbound Call is not working

Postby williamconley » Tue Jan 21, 2020 5:17 pm

Number Dialed: 7861064648855

Dialplan:

Code: Select all
exten => _71NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7XXXXXXXXXXXXXX,2,Dial(${SIPTRUNK}/${EXTEN:1}@cts,,To)
exten => _7NXXNXXXXXX,3,Hangup


Multiple problems:
First, the dialplan is three different extension patterns and are as such unrelated to one another.
_71NXXNXXXXXX,_7XXXXXXXXXXXXXX,_7NXXNXXXXXX must be identical to be a diaplan entry, and they are obviously not.
This means that these are actually three different dialplans, and only one of them has a ",1," priority. The other two will be ignored. Dialplans without a 1 priority have no starting point.

Second, none of these three patterns actually match the number dialed. So "extension not found" is a valid and expected response.

Code: Select all
exten => _7XXXXXXXXX.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _7XXXXXXXXX.,2,Dial(${SIPTRUNK}/${EXTEN:1}@cts,,To)
exten => _7XXXXXXXXX.,3,Hangup


This will match all 10 or more digit numbers starting with a 7.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to Support

Who is online

Users browsing this forum: No registered users and 119 guests