Menu
Cart 0

Setup your Trunk in Vicidial and/or Goautodial

These 2 Asterisk based dialers are very similar in their settings, below the latest working configuration.

We authenticate IP-PBX SIP Trunking traffic using:
IP Authentication (IP address) or Digest Authentication (Username and SIP password)

Our IP's

Configure the switch to allow for traffic from AltoTelecom
For our US Server allow: 169.132.196.33 and 206.20.196.19 (for the CLI to work you have to setup both IP's)
For our UK Server allow: 213.166.103.6
For our HK Server allow: 111.235.152.141
For our BR Server allow: 206.20.196.31 and 177.53.194.33
For our PE Server allow: 206.20.196.33 and 169.132.196.43
For our AR Server allow: 206.20.196.34 and 169.132.196.44

Digest Authentication Settings (account and SIP password)

[AltoTelecom]
Peer Detail
username= <account>
type=peer
secret= <sip password>
progressinband=never
port=5060
nat=auto
insecure=very
ignoresdpversion=yes
host= 213.166.103.6
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=g729&g711

User Detail
username=<account>
user=<>
type=user
port=5060
context=from-pstn
canreinvite=no
allow=g729&ulaw&alaw

Registration
register=>account:password@213.166.103.6

 

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:

Outgoing Settings:

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

Incoming Settings:
[in-1]
disallow=all
type=peer
port=5060
nat=auto
insecure=invite
host=169.132.196.33
dtmfmode=rfc2833
context=from-trunk
canreinvite=no
allow=ulaw
allow=alaw
allow=g729

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

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= 213.166.103.6
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=169.132.196.33
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= 213.166.103.6
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=206.20.196.19
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:

- 169.132.196.33 and 206.20.196.19 for US
- 213.166.103.6 for UK
- 111.235.152.141 for Hong Kong

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

 

Your USA dialplan should look something like this:

exten => _91.,1,Set(callerid(num)=+1XXXXXXXXXX)
exten => _91.,2,Set(callerid(ani)=Phone number)
exten => _91.,3,AGI(agi://127.0.0.1:4577/call_log)
exten => _91.,4,Dial(sip/${EXTEN:1}@AltoTelecom,55,o)
exten => _91.,5,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 campaign to 8 and leave 9 for USA. Copy everything below this line and paste it on your dialer trunk configuration.

exten => _91.,1,Set(callerid(num)=+1XXXXXXXXXX)
exten => _91.,2,Set(callerid(ani)=Phone number)
exten => _91.,3,AGI(agi://127.0.0.1:4577/call_log)
exten => _91.,4,Dial(sip/${EXTEN:1}@AltoTelecom,55,o)
exten => _91.,5,Hangup

exten => _8011.,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _8011.,2,Dial(sip/${EXTEN:1}@AltoTelecom,55,o)
exten => _8011.,3,Hangup