I installed the trixbox 2.0 and signed up for the BroadVoice service. I had all sorts of trouble getting it work and noticed that when applying configuration changes inside of FreePBX I would not be able to make calls in or out.
After much reading / searching / trial and error testing, I have found that when the FreePBX script issues a “sip reload” after a configuration change it drops the BroadVoice connection. The status for a “sip show peers” is:
Name/username Host Dyn Nat ACL Port Status
sip.broadvoice.com/XXXXX 147.135.20.128 5060 UNREACHABLE
A “sip show registry” is:
Host Username Refresh State
sip.broadvoice.com:5060 XXXXXXXXX@s 120 Unregistered
Starting and stopping Asterisk or even rebooting does not get it registered again. All I have found that works is just waiting… and waiting… after about an hour it will come back.
I sent an email to broadvoice and they said “We imagine the multiple registration attempts before expiration is what is causing the problems. Our system thinks multiple devices are logging in to use your account while we only allow 1.”
So I am thinking the “sip reload” command isn’t doing something (or undoing something) quite right, but am not sure where to go from here. I suppose I could just upgrade the Asterisk 1.2.13 to the 1.4, but don’t know if that will be the correct approach.
Has anybody else seen this? and if so, is there a workaround? My current workaround is to restart asterisk after making configuration changes and never clicking the “Apply Configuration Changes” link in FreePBX.
In case someone wants to look here is my register line:
register=XXXXXXXX@sip.broadvoice.com:PPPPPPP:XXXXXXXXX@sip.broadvoice.com/200
And here is my sip_additional.conf:
[sip.broadvoice.com]
username=XXXXXXXXX
user=phone
type=peer
secret=PPPPPPPP
qualify=no
pedantic=no
insecure=very
host=sip.broadvoice.com
fromuser=XXXXXXXXX
fromdomain=sip.broadvoice.com
dtmfmode=rfc2833
dtmf=rfc2833
disallow=all
context=from-pstn
canreinvite=no
authname=XXXXXXXXX
allow=ulaw
My config APPEARS to work just fine as long as I don’t apply a new config or do anything that would make a “sip reload” happen.
Thanks for any advice.