How to setup your Trunk / Carrier / Provider in ViciDial – VicidialNow – Goautodial – Vicibox

Last modified: March 19, 2019

Asterisk based dialers: VICIdial, GoAutodial, Vicibox, Vicidialnow Outgoing Configuration Parameters

1) How do I setup my SIP trunk for inbound/outbound calling?

To start making and receiving calls using Switch2VoIP please verify that your Asterisk VICIdial server is configured as follows.

We authenticate IP-PBX SIP Trunking traffic by:

  1. Digest Authentication (Username and SIP password)
  2. IP Authentication (IP address)

After you decide which dialer platform to use, you will need to establish a SIP trunk with our US proxy server 151.106.9.186 and input your IP address into our portal or register your switch with us.

Our IP’s

Configure your dialer to allow traffic from Switch2VoIP IP 151.106.9.186

Digest Authentication Settings (account and SIP password)

you can copy the values ​​from this template:





Carrier ID:
Carrier Name:
Carrier Description:
Admin User Group:
Registration String:
Template ID:
Account Entry:
Protocol:
Globals String:
Dialplan Entry:
Server IP:

 

 

 



 

 

IP Authentication (IP Address)

The IP Authentication method is normally simpler to provision and should be used only when you have a static IP Address. It is also somewhat more secure since your SIP trunk can only be used from the IP Address you provide.

With an open source applications (such as Asterisk), you can setup your SIP trunk with IP Authentication as follows:

you can copy the values ​​from this template:





Carrier ID:
Carrier Name:
Carrier Description:
Admin User Group:
Registration String:
Template ID:
Account Entry:
Protocol:
Globals String:
Dialplan Entry:
Server IP:

 

 

 



 

 

If you are using a web-based Asterisk PBX (like FreePBX), IP Authentication setup is slightly different:

In “Outgoing Settings”, name the section “out-1”
Then, in “Peer Detail”, enter the following:

type=peer
port=5060
nat=auto
insecure=invite
ignoresdpversion=yes
host= 151.106.9.186
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw
allow=g729

In “Incoming Settings”, name the section “in-1” in “User Context”. Then, in “User Detail, enter the following:

disallow=all
type=peer
port=5060
nat=auto
insecure=invite
host=151.106.9.186
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw
allow=g729

After this has been completed, you will have to create a separate trunk. For the second trunk, name the outgoing “out-2” and again enter the following information:


type=peer
port=5060
nat=auto
insecure=invite
ignoresdpversion=yes
host=151.106.9.186
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw
allow=g729

Then, for the second trunk, name the incoming “in-2” and again enter the following information:


disallow=all
type=peer
port=5060
nat=auto
insecure=invite
host=151.106.9.186
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw
allow=g729

No registration string is required for IP Authentication.

Please make sure to configure your router/firewall to allow traffic from:

151.106.9.186 for US
151.106.9.186 for UK
151.106.9.186 for Hong Kong

In addition, please allow all RTP traffic from any IP Address ports 20000-24000 UDP.

 

Your dialplan should look something like this:

Dialplan Entry:

US:

exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@switch2voip,,tTo)
exten => _91XXXXXXXXXX,3,Hangup 

UK:

exten => _944.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _944.,2,Dial(SIP/${EXTEN:1}@switch2voip,,tTo)
exten => _944.,3,Hangup 

Australia:

exten => _961.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _961.,2,Dial(SIP/${EXTEN:1}@goautodial,,tTo)
exten => _961.,3,Hangup

Universal Dialplan:

exten => _847.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _847.,2,Dial(SIP/${EXTEN:3}@switch2voip,,tTo)
exten => _847.,3,Hangup 

If you are also dialing to the United Kingdom or Australia and you want to use both USA and UK dialplans then your dialplan for UK and USA should look like this:

Make sure you change the prefix on your UK and USA campaign to 9. Copy everything below this line and paste it on your dialer trunk configuration.

exten => _91XXXXXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91XXXXXXXXXX,2,Dial(SIP/${EXTEN:1}@switch2voip,,tTo)
exten => _91XXXXXXXXXX,3,Hangup 

exten => _944.,1,AGI(agi://127.0.0.1:4577/call_log) exten => _944.,2,Dial(SIP/${EXTEN:1}@switch2voip,,tTo) exten => _944.,3,Hangup

 

 

 

ADD CREDITS TO VOIP ACCOUNT