Help with carrier settings and dialplan

All installation and configuration problems and questions

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

Help with carrier settings and dialplan

Postby kjburto » Wed Oct 12, 2016 4:16 pm

Hey everyone,

I am trying to set up a new carrier for outbound traffic on teleinx and I am confused slightly on the dialplan and carrier account entry.

Current VERSION: 2.12-565a BUILD: 160827-0917

They have a prefix of 9962# and they use IP authentication, so I am curious as to what I have to have in the account entry field?

Also is the following dialplan correct?

exten => _9962#1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9962#1NXXNXXXXXX,n,Dial(SIP/xx.xx.xxx.xx/${EXTEN:5},,tTor)
exten => _9962#1NXXNXXXXXX,n,Hangup

I am a little lost as this is my first carrier set up that is IP based and utilizing a prefix. I am currently reading the manual and searching the forums but I think I might be confusing things and need some clarification. Thanks
kjburto
 
Posts: 81
Joined: Tue Aug 23, 2016 2:07 pm

Re: Help with carrier settings and dialplan

Postby ambiorixg12 » Thu Oct 13, 2016 12:46 am

IP authentication is easier than using pasword authentication, , First you need to white list the vicidial IP on your carrier portal.

then configure the carrier as usual.

Carrier settings
[teleinx]
host=teleinx-IP-ADRESS
type=peer
port=5060
disallow=all
allow=ulaw
allow=alaw
nat=force_rport,comedia
directmedia=no
context=trunkinbound
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
qualify=yes
insecure=port,invite


Dial Plan :


exten => _9.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9.,2,Dial(SIP/teleinx/9962#${EXTEN},,To)
exten => _9.,3,Hangup
ambiorixg12
 
Posts: 453
Joined: Tue Sep 17, 2013 10:35 pm

Re: Help with carrier settings and dialplan

Postby Eugene » Thu Oct 13, 2016 2:53 am

Hello,

Vicidial manager manual reads:

For this tutorial we will use the following values for the fields on the ADD A NEW CARRIER
form:
Carrier ID: NEWSIP
Carrier Name: VICIdial SIP carrier
Registration String: register => newsip:test@10.10.10.15:5060
<we will leave the Template ID field blank>
Account Entry: (see notes at the end of this tutorial for more information)
[testcarrier]
disallow=all
allow=ulaw
type=friend
username=testcarrier
secret=test
host=dynamic
dtmfmode=rfc2833
context=trunkinbound
Protocol: SIP
<we will leave the Globals String field blank> Example value: “SIP/testcarrier”
Dialplan Entry:
exten => _91NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91NXXNXXXXXX,2,Dial(newsip:test@10.10.10.15:5060/${EXTEN:2},,tTor)
exten => _91NXXNXXXXXX,3,Hangup
Server IP: 10.10.10.15 (set this to your server ip)
NOTE: Some carriers may not require the Registration String, or the username & passwo


Regards,
Gene
ViciBox_v.7.x86_64-7.0.3.iso, Asterisk v.11.22.0-vici
ASTGUI Admin v. 2.12-552a b.160429-0835, ASTGUI Client v. 2.12-492c b.160428-1826
1 DB + 1 WEB + 1 Asterisk + 1 Archive servers
No extra software, No Digium/Sangoma Hardware
Eugene
 
Posts: 56
Joined: Tue Nov 09, 2010 5:22 am

Re: Help with carrier settings and dialplan

Postby kjburto » Sat Oct 15, 2016 12:26 pm

ambiorixg12 wrote:IP authentication is easier than using pasword authentication, , First you need to white list the vicidial IP on your carrier portal.

then configure the carrier as usual.

Carrier settings
[teleinx]
host=teleinx-IP-ADRESS
type=peer
port=5060
disallow=all
allow=ulaw
allow=alaw
nat=force_rport,comedia
directmedia=no
context=trunkinbound
dtmfmode=rfc2833
trustrpid=yes
sendrpid=yes
qualify=yes
insecure=port,invite


Dial Plan :


exten => _9.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _9.,2,Dial(SIP/teleinx/9962#${EXTEN},,To)
exten => _9.,3,Hangup



Thanks I got everything thing working with a minor change to the dialplan. I had to switch dial prefix to X and modify the dialplan a little. Thanks again for the help!

exten => _1NXXNXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _1NXXNXXXXXX,2,Dial(SIP/teleinx/9962#${EXTEN},,To)
exten => _1NXXNXXXXXX,3,Hangup
kjburto
 
Posts: 81
Joined: Tue Aug 23, 2016 2:07 pm


Return to Support

Who is online

Users browsing this forum: Google [Bot] and 144 guests