Connecting Asterisk to PacWest VoiceSource or Dial Access

PacWest is a VOIP->PSTN gateway provider which enables virtually anyone to sell voip services. Below you will find the basic asterisk configuration needed to send and receive calls using PacWest's services.

sip.conf

[pacwest]
type=peer
qualify=yes
port=5060
host=66.53.188.XX
dtmfmode=rfc2833
disallow=all
permit=66.53.188.XX/255.255.255.255
context=from-sip-pacwest
allow=ulaw
rtpkeepalive=30

extensions.conf

[default]
include => outroutes

exten => 1600,1,Dial(SIP/1600,20,rt) ; permit transfer
exten => 1600,n,Voicemail(1600) ; Voicemail (unavailable)
exten => 1600,s+1,Hangup ; s+1, same as n

[outroutes]
exten => _1NXXNXXXXXX,1,Dial(pacwest/${EXTEN})
exten => _NXXNXXXXXX,1,Dial(pacwest/${EXTEN})
exten => _NXXXXXX,1,Dial(pacwest/209${EXTEN})

[from-sip-pacwest]
exten => 2096701600,1,Set(FROM_DID=2096701600)
exten => 2096701600,2,Goto(default,1600,1)


PacWest is a VOIP->PSTN gateway provider which enables virtually anyone to sell voip services. Below you will find the basic asterisk configuration needed to send and receive calls using PacWest's services.

sip.conf

[pacwest]
type=peer
qualify=yes
port=5060
host=66.53.188.XX
dtmfmode=rfc2833
disallow=all
permit=66.53.188.XX/255.255.255.255
context=from-sip-pacwest
allow=ulaw
rtpkeepalive=30

extensions.conf

[default]
include => outroutes

exten => 1600,1,Dial(SIP/1600,20,rt) ; permit transfer
exten => 1600,n,Voicemail(1600) ; Voicemail (unavailable)
exten => 1600,s+1,Hangup ; s+1, same as n

[outroutes]
exten => _1NXXNXXXXXX,1,Dial(pacwest/${EXTEN})
exten => _NXXNXXXXXX,1,Dial(pacwest/${EXTEN})
exten => _NXXXXXX,1,Dial(pacwest/209${EXTEN})

[from-sip-pacwest]
exten => 2096701600,1,Set(FROM_DID=2096701600)
exten => 2096701600,2,Goto(default,1600,1)


Created by: mikea, Last modification: Fri 05 of Nov, 2010 (22:32 UTC) by admin
Please update this page with new information, just login and click on the "Edit" or "Discussion" tab. Get a free login here: Register Thanks! - Find us on Google+