Main Menu
Home
Open a Ticket
My Ticket History
Browse Knowledgebase
My Account

Login
 E-mail:
 Password:
Register | Forgot Password?

Knowledgebase
Search by keywords:


Knowledgebase
Asterisk Setup

Article ID: 000121
Rating: 5.0 / 5.0 (1 votes)
Views: 4748

Connecting to Broadsoft Hosted PBX services
Before starting you will need the following information for each Broadsoft line that the Asterisk will
handle calls for
􀁺 Broadsoft Voice Domain - example: goodcompany.com
􀁺 Broadsoft User ID: - example: 000010000100001
􀁺 Broadsoft Password: - example: abcdef
and the address of the VoIPZone Outbound proxy server to be used for these connections.
Assume we want to setup an Asterisk system for 3 Broadsoft lines with the following information:
Line One
Domain: goodcompany.com
User: 000010000100001
Password: abcdef1
Line One
Domain: goodcompany.com
User: 000010000100002
Password: abcdef2
Line One
Domain: goodcompany.com
User: 000010000100003
Password: abcdef3
Outbound Proxy
las-obproxy.voipzone.us
There are three configuration files to setup:
􀁺 /etc/hosts
􀁺 /etc/asterisk/sip.conf
􀁺 /etc/asterisk/extensions.conf
/etc/hosts
The SIP domain used for ABS VOIPZone service is different from the domain used for our outbound
proxy server. Since older versions of Asterisk do not have separate settings for an outbound proxy server
and the SIP domains, we need to add an entry to the /etc/hosts file so that Asterisk will route calls
correctly.
Step 1
Get the IP address of the outbound proxy. For our example:
las-obproxy.voipzone.us = 204.14.39.36
Step 2
Add a line like this to /etc/hosts
204.14.39.36 goodcompany.com
Note: Asterisk version 1.2 and higher support the 'outboundproxy=' clause in the sip.conf file. That is an
alternative to adding this entry to the /etc/hosts file.
/etc/asterisk/sip.conf
Add the following enteries to your sip.conf file.
defaultexpirey=28 ; Default length of incoming/outoing registration
register = 000010000100001:[email protected]:5060/000010000100001
register = 000010000100002:[email protected]:5060/000010000100002
register = 000010000100003:[email protected]:5060/000010000100003
[broadsoft-line1]
type=peer
host=goodcompany.com
context=from-voipzone.us
dtmfmode=inband
username=000010000100001
secret=abcdef1
port=5060
fromdomain=goodcompany.com
canreinvite=no
insecure=very
;uncomment the next line for Asterisk version 1.2 and higher
;outboundproxy=las-obproxy.voipzone.us
[broadsoft-line2]
type=peer
host=goodcompany.com
context=from-voipzone
dtmfmode=inband
username=000010000100002
secret=abcdef2
port=5060
fromdomain=goodcompany.com
canreinvite=no
insecure=very
;uncomment the next line for Asterisk version 1.2 and higher
;outboundproxy=las-obproxy.voipzone.us
[broadsoft-line3]
type=peer
host=goodcompany.com
context=from-voipzone
dtmfmode=inband
username=000010000100003
secret=abcdef3
port=5060
fromdomain=goodcompany.com
canreinvite=no
insecure=very
;uncomment the next line for Asterisk version 1.2 and higher
;outboundproxy=las-obproxy.voipzone.us
/etc/asterisk/extensions.conf
The setup in this file will of course vary depending on your calling plan. But here are some exmaples to
get started:
For incoming calls add a section similar to this:
[from-voipzone]
exten => 000010000100001,1,Dial(SIP/5001)
exten => 000010000100002,1,Dial(SIP/5002)
exten => 000010000100003,1,Dial(SIP/5003)
exten => i,1,Playback(invalid)
For outgoing calls add enteries similar to these in the section that handles your outgoing calls:
; to dial out on broadsoft line 1, prefix the number you are calling with
; 71, example to call: 555-555-1212, dial: 71-555-555-1212
exten => _71,1,SetCallerID(000010000100001)
exten => _71,2,Dial(SIP/${EXTEN:2}@broadsoft-line1)
; to dial out on broadsoft line 2, prefix the number you are calling with
; 72, example to call: 555-555-1213, dial: 72-555-555-1213
exten => _72,1,SetCallerID(000010000100002)
exten => _72,2,Dial(SIP/${EXTEN:2}@broadsoft-line2)
; to dial out on broadsoft line 3, prefix the number you are calling with
; 73, example to call: 555-555-1214, dial: 73-555-555-1214
exten => _73,1,SetCallerID(000010000100002)
exten => _73,2,Dial(SIP/${EXTEN:2}@broadsoft-line3)

<< back

Rating
Did you find this article helpful?

Related Articles
Installing and using Wireshark on Atersisk servers
Asterisk Setup
Polycom 335 Provisioning steps