Broadvoice Configuration Problems

I have been trying to configure a local asterisk connection to broadvoice via the BYOD plan, but I can’t seem to get it working.

sip.conf:

[general]
context=default                 ; Default context for incoming calls
bindport=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)
srvlookup=yes                   ; Enable DNS SRV lookups on outbound calls
pedantic=no                     ; Enable slow, pedantic checking for Pingtel
videosupport=yes                ; Turn on support for SIP video
recordhistory=yes               ; Record SIP history by default
                        ; (see sip history / sip no history)

;Broadvoice config
register => 2036489552@sip.broadvoice.com:[secret]:2036489552@sip.broadvoice.com/5150


[mysjphone]
type=friend
host=dynamic
dtmfmode=inband
username=mysjphone
secret=testing


[sip.broadvoice.com]
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=2036489552
secret=[secret]
username=2036489552
insecure=very
context=from-broadvoice
authname=2036489552
dtmfmode=inband
dtmf=inband
;canreinvite=no

extensions.conf

[code]
[general]
;
; If static is set to no, or omitted, then the pbx_config will rewrite
; this file when extensions are modified. Remember that all comments
; made in the file will be lost when that happens.
;
; XXX Not yet implemented XXX
;
static=yes
;
; if static=yes and writeprotect=no, you can save dialplan by
; CLI command ‘save dialplan’ too
;
writeprotect=no
;
; If autofallthrough is set, then if an extension runs out of
; things to do, it will terminate the call with BUSY, CONGESTION
; or HANGUP depending on Asterisk’s best guess (strongly recommended).
;
; If autofallthrough is not set, then if an extension runs out of
; things to do, asterisk will wait for a new extension to be dialed
; (this is the original behavior of Asterisk 1.0 and earlier).
;
autofallthrough=yes
;
; If clearglobalvars is set, global variables will be cleared
; and reparsed on an extensions reload, or Asterisk reload.
;
; If clearglobalvars is not set, then global variables will persist
; through reloads, and even if deleted from the extensions.conf or
; one of its included files, will remain set to the previous value.
;
clearglobalvars=no
;
; If priorityjumping is set to ‘yes’, then applications that support
; ‘jumping’ to a different priority based on the result of their operations
; will do so (this is backwards compatible behavior with pre-1.2 releases
; of Asterisk). Individual applications can also be requested to do this
; by passing a ‘j’ option in their arguments.
;
priorityjumping=no
;
; You can include other config files, use the #include command
; (without the ‘;’). Note that this is different from the “include” command
; that includes contexts within other contexts. The #include command works
; in all asterisk configuration files.
;#include “filename.conf”

; The “Globals” category contains global variables that can be referenced
; in the dialplan with ${VARIABLE} or ${ENV(VARIABLE)} for Environmental
; variables,
; ${${VARIABLE}} or ${text${VARIABLE}} or any hybrid
;
[globals]

;exten => 5150,1,dial(SIP/mysjphone)
;exten => mysjphone,1,goto(5150,1) ; To be able to dial with text, “mysjphone”

exten => _1NXXNXXXXXX,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
exten => _1NXXNXXXXXX,2,congestion()
exten => _1NXXNXXXXXX,102,busy()

;exten=_01130.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01131.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01132.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01133.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01134.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011351.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011352.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011353.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011378.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01139.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01141.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011420.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01143.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01144.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01145.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01146.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01147.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01148.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01149[2-9].,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01154.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01155.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01156.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01160.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01161.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01164.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01165.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01181.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01182.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011852.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_01186.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011886.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011972.,1,dial(SIP/${EXTEN}@sip.broadvoice.com,30)
;exten=_011.,2,congestion() ; No answer, nothing
;exten=_011.,102,busy() ; Busy[/code]

Ever time I start up asterisk I get this error:

Asterisk Ready.
– Got SIP response 409 “Conflict” back from 147.135.20.128

Please any help you could give me would very helpful. I think I am going out of my mind since all the instructions seem to make it look like I am the only person in the world who can’t get this to work.

Thanks in advance.

did you define sip.broadvoice.com in your hosts file to be the IP address of the Broadvoice proxy server that you want to use (e.g. the address of proxy.bos.broadvoice.com or proxy.nyc.broadvoice.com, etc.) ?

I see that some of your settings are not accurate. You might want to check the following recent thread:

forums.digium.com/viewtopic.php? … 14674f9c3f

Use the same config setup on the thread, if you are still having problems try other close proxies.

Gentlemen,
I am uisng broadvoice and seem to have it working ok for out going calls. My server and station x-lite are on the same LAN. Out bound no problem, in bound is recording saying the extension is not available. But it does ring the phone and leaves a VM…

Here is my SIP config
[general]

port = 5060 ; Port to bind to (SIP is 5060)
bindaddr = 0.0.0.0 ; Address to bind to (all addresses on machine)
disallow=all
allow=ulaw
allow=alaw
; If you need to answer unauthenticated calls, you should change this
; next line to ‘from-trunk’, rather than ‘from-sip-external’.
; You’ll know this is happening if when you call in you get a message
; saying "The number you have dialed is not in service. Please check the
; number and try again."
context = from-pstn; Send unknown SIP callers to this context
callerid = Unknown
tos=0x68

; #, in this configuration file, is NOT A COMMENT. This is exactly
; how it should be.
#include sip_nat.conf
#include sip_custom.conf
#include sip_additional.conf
externhost=morrell.ws
localnet=192.168.15.11/255.255.255.0
nat=yes
pedantic=no

Sip additional config
[2115]
username=2115
type=friend
secret=abc123
record_out=Adhoc
record_in=Adhoc
qualify=no
port=5060
nat=yes
mailbox=2115@device
host=dynamic
dtmfmode=rfc2833
context=from-internal
canreinvite=no
callerid=2115 <2115>

[8177562115]
username=8177562115
user=phone
type=friend
secret=xxxxxxxxxxxxxx
insecure=very
host=sip.broadvoice.com
fromuser=8177562115
fromdomain=sip.broadvoice.com
dtmfmode=inband
dtmf=inband
context=from-pstn
canreinvite=no
authname=8177562115

[sip.broadvoice.com]
username=8177562115
user=phone
type=peer
secret=xxxxxxxxxxx
qualify=yes
insecure=very
host=sip.broadvoice.com
fromuser=8177562115
fromdomain=sip.broadvoice.com
dtmfmode=inband
dtmf=inband
context=from-pstn
canreinvite=no
authname=8177562115

Below is the sip.conf and extensions.conf configuration to suceesfully register a (local or remote) phone and make/receive calls. This setup is generally the same for all providers but make sure to ask your provider for any provider-specific config info.

sip.conf

[general]
context=sip.broadvoice.com
pedantic=no
type=user
bindport=5060
bindaddr=0.0.0.0
realm=server domain name or IP address
srvlookup=yes
tos=reliability
maxexpiry=180
defaultexpiry=160
musicclass=default
;videosupport=no ;some providers such as broadvoice don’t support this, if enabled no outbound calls will go through
outgoinglimit=2
incominglimit=9999
disallow=all
disallow=gsm
allow=ulaw
allow=alaw
allow=all
;qualify=yes
host=dynamic
nat=yes
canreinvite=no
externip=yourexternalIPaddress
localnet=your
serverIPaddress/local subnet mask

register => phonenumber@sip.broadvoice.com:password:phonenumber@sip.broadvoice.com
register => phonenumber@sip.broadvoice.com:password:phonenumber@sip.broadvoice.com

;Definitions of locally connected SIP phones.

[6000]
type=friend
username=6000
secret=yourpassword
context=extensions
callgroup=0
pickupgroup=0
;qualify=yes
host=dynamic
nat=yes
canreinvite=no
mailbox=6000@default

[outbound-broadvoice] ;outbound context
type=peer
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=yourphonenumber
secret=yourpassword
username=yourphonenumber
insecure=very
context=sip.broadvoice.com
authname=yourphonenumber
dtmfmode=inband
dtmf=inband
canreinvite=no ;Disable canreinvite if you are behind a NAT
nat=yes

[sip.broadvoice.com] ;inbound context
type=user
user=phone
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=yourphonenumber
secret=yourpassword
username=yourphonenumber
insecure=very
context=sip.broadvoice.com
authname=yourphonenumber
dtmfmode=rfc2833
dtmf=rfc2833
canreinvite=no
nat=yes

extensions.conf

[general]

static=yes
writeprotect=no
autofallthrough=yes
clearglobalvars=no
priorityjumping=no

[globals]

include=>inbound
include=>outbound

[sip.broadvoice.com] ;This is going to be your inbound trunk, telling all incoming calls where to go

exten=>18177562115 ,1,Goto(extensions|s|1)
exten=>8177562115 ,1,Goto(extensions|s|1)
exten=>7562115 ,1,Goto(extensions|s|1)

[extensions]
include=>international
exten=>s,1,Dial(SIP/6000)
exten=>s,2,Voicemail,u6000@default
exten=>_XXXX,1,Dial(SIP/${EXTEN},30)
exten=>_XXXX,2,Voicemail,u${EXTEN}@default
exten=>*86,1,VoicemailMain,101 ;To check your voicemail by dialing *86
exten=>9999,1,VoicemailMain,101 ;To check your voicemail by dialing 9999

[international]
exten=>_NXXXXXX,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=>_NXXXXXX,3,congestion()
exten=>_NXXXXXX,102, busy()
exten=>_NXXNXXXXXX,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=>_NXXNXXXXXX,3,congestion()
exten=>_NXXNXXXXXX,102, busy()
exten=>_1NXXNXXXXXX,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=>_1NXXNXXXXXX,3,congestion()
exten=>_1NXXNXXXXXX,102, busy()

; This extended Dial Plan will enable International Dialing on The Unlimited World PLUS Plan
; This dial plan enables World Plus countries
; there are no built in ways to prevent calls to cell phone users (except in germany where Cell ;phone prefix’s are
; carried by 1 and has been accounted for)

exten=_01130.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01131.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01132.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01133.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01134.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011351.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011352.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011353.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011378.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01139.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01141.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011420.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01143.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01144.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01145.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01146.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01147.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01148.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01149[2-9].,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01154.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01155.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01156.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01160.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01161.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01164.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01165.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01181.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01182.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011852.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_01186.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011886.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011972.,1,dial(SIP/${EXTEN}@outbound-broadvoice,30)
exten=_011.,2,congestion() ; No answer, nothing
exten=_011.,102,busy() ; Busy

You can first make it work perfectly at the basic level then add additional features as you go on, testing the phone after adding each new feature incase of any need to revert back to previous setup. Also check the thread above for the sip.conf config.

DRWHO
I apreaciate your response. but no change in status. My phone rings on incomming calls but ht eother end hears that party is not availble. Even though the phone is registered.

any othr thoughts??

I’m sure your issues are resolved now, right bmorrell?