Hi all–
I’m relatively new to asterisk, and I’m trying to set up a system which uses Broadvoice’s SIP service to connect to the outside world. The goal is to connect a softphone on a remote computer to an external (POTS) phone number which will be dialled through Broadvoice. The server has a static IP.
I have the O’Reilly book and have been reading the documentation, but I’m still unclear as to how to set up the extensions and how to write a dialplan that will let me connect to the asterisk server with the softphone.
Here’s my sip.conf (set up according to the BV docs and the example inthe O’Reilly book):
[general]
context=default
recordhistory=yes
port=5060 ; UDP Port to bind to (SIP standard port is 5060)
bindaddr=0.0.0.0 ; IP address to bind to (0.0.0.0 binds to all)
pedantic=no
useragent=Asterisk PBX
nat=no
register => 2XXXXXXXXX@sip.broadvoice.com::2XXXXXXXXX@sip.broadvoice.com
[sip.broadvoice.com]
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=2XXXXXXXXXX
secret=
username=2XXXXXXXXXX
insecure=very
context=from-broadvoice
authname=2XXXXXXXXXX
dtmfmode=inband
dtmf=inband
;Disable canreinvite if you are behind a NAT
canreinvite=yes
[softphone]
type=friend
secret=welcome
qualify=yes
nat=yes
host=dynamic
canreinvite=no
context=internal
and here’s my extensions.conf:
[default]
exten => _1NXXNXXXXXX, 1, dial(SIP/${EXTEN}@sip.broadvoice.com,30)
exten => _1NXXNXXXXXX, 2, congestion()
exten => _1NXXNXXXXXX, 102, busy()
How do I set up the right extensions and how do I set up a softphone (I’m starting with kphone) to do this? Any help would be greatly appreciated!