Page 1 of 1

Outbound Call is not working

PostPosted: Sat Jan 11, 2020 2:08 am
by alfie013
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!

Re: Outbound Call is not working

PostPosted: Mon Jan 13, 2020 8:46 am
by ambiorixg12
Pattern doesn't match, removing the prefix it is an 11 digit pattern and number have 12 digits

Re: Outbound Call is not working

PostPosted: Tue Jan 21, 2020 5:17 pm
by williamconley
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.