The important thing, is - PASSWORD is a SIP authentication password, you can get it either by emailing support@broadvoice.com (slow), or calling them at the support number listed on
http://www.broadvoice.com/.
A third and easiest way is to login to your online account, click on the "Account" tab, then at the bottom right click the "Show Settings" link. Your password is the auth_password value.
Alternative Example:
I've tried to nail down each value more specifically, and remove any unneeded values. This is the sip.conf I came up with. I *am* behind a NAT, but I have externip and localnet set in sip.conf, as well as 5060 and all my ports in rtp.conf forwarded to the Asterisk machine, as well as no firewalling.
Anything in <> is found in the configuration information available under your account page on the broadvoice website.
It's worth mentioning that your auth_id and phone_number are not ALWAYS the same (if you change your number, for example), but they usually are.
Update: Added "insecure=very". If you remove 'insecure' calls from BV to * will continue to work for a while but eventually stop (in my experience).
With version 1.0.5 of Asterisk, if it registers but you can not make nor receive calls, try to patch the following part of the patch that comes from http://edvina.net/broadvoice/. It seems that it is needed to work.
Version 1.0.6 seems to function unpatched.
Comments
333Need Help with Asterisk-Broadvoice connection
<br><br>
Sure could use some, help. Am trying to get an Asterisk (standard version - 1.2.8 running on remote server) to
register/connect to a BV World account so I can use the BV account from Asterisk. When testing the config
example, I turn off the BV phone here in the office for at least an hour before I try the Asterisk
registration/connection.
<br><br>
Am trying the configuration from broadvoice (http://www.broadvoice.com/support_install_asterisk.html):
<br><br>
sip.conf:<br>
- Under general I have
- <br>
context=default<br><br>- as instructed by bv, I have
- <br>
pedantic=no<br><br>;registration, using the account phone number minus the initial "1"<br>
;registration fails using 1xxxxxxxxxx<p>
register => xxxxxxxxxx@sip.broadvoice.com:password:xxxxxxxxxx@sip.broadvoice.com/33333
<p>
sip.broadvoice.com <br>
type=peer<br>
user=phone<br>
host=sip.broadvoice.com<br>
fromdomain=sip.broadvoice.com<br>
fromuser=xxxxxxxxxx<br>
secret=password<br>
username=xxxxxxxxxx<br>
insecure=very<br>
context=from-broadvoice<br>
authname=xxxxxxxxxx<br>
dtmfmode=inband<br>
dtmf=inband<br>
canreinvite=no<br><br>
In /etc/hosts, IP for dca proxy:<br>
147.135.0.128 sip.broadvoice.com<br><br>
In extensions.conf:<br>
default <br>
exten => _1NXXNXXXXXX, 1, dial(SIP/${EXTEN}@sip.broadvoice.com,30) <br>
exten => _1NXXNXXXXXX, 2, congestion() <br>
exten => _1NXXNXXXXXX, 102, busy()<br>
=================================================================================================<br><br>
Have tried variations on this config found on the web, some from here at voip-info.org. The Asterisk can register with the BV World account if username is phone number without the initial "1" — but any calls attempted end immediately with 404 Not Found.
<br><br>
Have asked BV tech support for help, their reply:
<br><br>
"We have many subscribers using Asterisk with success; however, we have not certified technical support
for Asterisk's many configuration requirements and leave that for the open source community."
<br><br>
Also, am confused about why the BV config example lists in the bv peer data "context=from-broadvoice" yet the bv dialplan is
added to default in extensions.conf.
<br><br>
Could someone who has succeeded in making this work please offer suggestions? This Asterisk can register and use accounts
on both fwd and on my own SER with no problems. Thank you for any help.
<br><br>
HHB
333Broadvoice, multiple numbers -- how to tell which one was called
I have three phone numbers; one called primary (408 area code), and two others called Alternate (530 and 773 area codes).
I wanted to know which number one was called...
The answer lies in the Alert-info, here is the snippet of code I use to find out the number called.
More info on this on my web site: http://pointyhair.com
333call quality drops down after 5 min of conversation
Quality of any call drops down after 5-10 minutes of conversation.
Very often calls breaks (no audio or croaking).
Before used vonage- everything was fine, but was unable to connect it to asterisk.
right now use 2 trunks- one via Voipjet and another one via brodvoice- voipjet- no problems,
broadvoice- as described above. Calls to Germany and UK- awful.
Tried to call to BV support- 30 minutes on hold- to much.
Network part is Ok- just for sure. Connection- cable/broadband.
Any suggestions/advice?
Thank you!
just some additional info:
1)Asterisk 1.2.5 built by root @ myhost on a i386 running FreeBSD on 2006-03-13 15:59:53 UTC
sip.conf
general
disallow=all
allow=gsm
allow=ulaw
allow=alaw
allow=g729
maxexpirey=180
defaultexpirey=160
tos=reliability
nat=no
externip=my_external_ip
localnet=192.168.2.0/255.255.255.0
musiconhold = default
register => XXXXXX@sip.broadvoice.com:password:XXXXXXX@sip.broadvoice.com/XXXXXXX
sip.broadvoice.com
user=phone
reinvite=no
canreinvite=no
pedantic=no
type=friend
host=sip.broadvoice.com
fromdomain=sip.broadvoice.com
fromuser=XXXXXX
secret=mypass
username=XXXXXXXXX
insecure=very
context=default
authname=XXXXXXXXXXX
dtfmode=inband
dtmf = inband
;qualify if RTT less than 200 msec
qualify = 200
nat = no
;permit = 147.135.0.0/255.255.0.0
disallow=all
allow=ulaw
Mailbox=5555
language=en
PING sip.broadvoice.com (147.135.32.128): 56 data bytes
64 bytes from 147.135.32.128: icmp_seq=0 ttl=245 time=23.536 ms
64 bytes from 147.135.32.128: icmp_seq=1 ttl=245 time=23.884 ms
64 bytes from 147.135.32.128: icmp_seq=2 ttl=245 time=23.722 ms
64 bytes from 147.135.32.128: icmp_seq=3 ttl=245 time=23.950 ms
64 bytes from 147.135.32.128: icmp_seq=4 ttl=245 time=23.203 ms
64 bytes from 147.135.32.128: icmp_seq=5 ttl=245 time=23.537 ms
Bandwidth test:
Download Speed: 3183 kbps (397.9 KB/sec transfer rate)
Upload Speed: 1826 kbps (228.3 KB/sec transfer rate)
2) router WRT54GC Linksys, portforwarding 10000-20000/UDP, 5060-5063UDP/TCP
UPNP - disabled
3) as additional sip trunk i'm using proxy01.sipphone.com - no problems-
works perfect- from this folows that SIP is Ok.
333dtmfmode changes based on # dialed
incoming_calls
exten => 1231231234,1,Gotoif($"${SIP_HEADER(Alert-Info)}" = "<http://127.0.0.1/Bellcore-dr3>"?broadvoice800,s,1)
exten => 1231231234,2,Goto(mainmenu,s,1)
<br />
; dtmfmode 'inband' doesn't work for 800 # for some reason!
broadvoice800
exten => s,1,SIPDtmfMode(rfc2833)
...
I hope this helps others avoid the confusion and wasted time troubleshooting.
333Problems dialing out with BV.
error i get is that the number i have dialed is not in service, excerpt of log shows: i replaced the phone # with "<number>" any ideas?
- Executing SetVar("SIP/200-795e", "OUTNUM=91703<number>") in new stack
— Executing Cut("SIP/200-795e", "custom=OUT_2|:|1") in new stack
— Executing GotoIf("SIP/200-795e", "0?16") in new stack
— Executing Dial("SIP/200-795e", "SIP/BroadVoice/917036522554") in new stack
— Called BroadVoice/91703<number> — SIP/BroadVoice-fa76 is ringing
— SIP/BroadVoice-fa76 answered SIP/200-795e
— Attempting native bridge of SIP/200-795e and SIP/BroadVoice-fa76
== Spawn extension (macro-dialout-trunk, s, 14) exited non-zero on 'SIP/200-795e' in macro 'dialout-trunk'
== Spawn extension (from-internal, 91703<number>, 1) exited non-zero on 'SIP/200-795e'
— Executing Macro("SIP/200-795e", "hangupcall") in new stack
— Executing ResetCDR("SIP/200-795e", "w") in new stack
— Executing NoCDR("SIP/200-795e", "") in new stack
— Executing Wait("SIP/200-795e", "5") in new stack
== Spawn extension (macro-hangupcall, s, 3) exited non-zero on 'SIP/200-795e' in macro 'hangupcall'
== Spawn extension (from-internal, h, 1) exited non-zero on 'SIP/200-795e'
333Congestion or busy signal
broadvoice
;check for an available channel at BV, and hangup if no
exten => _.,1,ChanIsAvail(SIP/broadvoice1)
exten => _.,2,noop(${AVAILCHAN})
exten => _.,10,dial(SIP/broadvoice1/${EXTEN},40,r)
exten => _.,13,hangup
exten => _.,104,noop('Can't Call on broadvoice to ${EXTEN} No Lines avaliable')
exten => _.,110,Playback(all-outgoing-lines-unavailable)
exten => _.,120,hangup
and the results are:
Executing ChanIsAvail("SIP/510-0c6e", "SIP/broadvoice1") in new stack
— Executing NoOp("SIP/510-0c6e", "SIP/broadvoice1-c075") in new stack
When I try to use another sip extension to call the results are:
Executing ChanIsAvail("SIP/502-0d3a", "SIP/broadvoice1") in new stack
— Executing NoOp("SIP/510-0d3a", "SIP/broadvoice1-0b74") in new stack
and the asterisk complete both calls at same time.
My account in Broadvoice only allow me to use one line at a time.
Can someone help me how can I prevent asterisk to use 2 lines of broadvoice at same time?
LukeSkyNery
333Re: Failover
exten => _91NXXNXXXXXX, 1,Dial(SIP/${EXTEN:${TRUNKMSD}}@sip.broadvoice.com,30)
exten => _91NXXNXXXXXX,2,Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})
exten => _91NXXNXXXXXX,3,Congestion
333Outgoing CallerID problem...
Called them 3-4 times about it. The one time they actually responded, the rep. didn't know what I was talking about at first. After explaining it in detail and forcing the rep to look at it, he entered my number in the "Outgoing CallerID" field in their system, but it still didn't work.
Cancelled the whole thing. Customer service is slow, not helpful or knowledgeable.
333Authentication change for outbound calls 5 March 05
From: Dan Weber
Reply-To: Asterisk Users Mailing List - Non-Commercial Discussion
To: asterisk-users@lists.digium.com
Subject: Asterisk-Users BroadVoice configuration changes for Outbound
Today, We have added INVITE Authentication. This seems to bring a large amount of problems to people in the way
since they can't make outbound calls. Here's what needs to be done. You need to add three variables to your
peers or friends, username, authuser, and secret.
username=
authuser=
secret=
Dan
333The device you are using is not registered to place calls on the network.