BroadVoice Patch instructions

You really only need this if you are using Asterisk behind a NAT device, communicating with Broadvoice on the Internet.
It will not hurt if you are running your Asterisk server on a public IP address, it will make Asterisk sending fewer packets.

About the patch

This patch is created by Olle E. Johansson, Edvina.net, for BroadVoice. It changes the way Asterisk registers to an outside service provider. The first time your server registers, it will behave as before. The next time, at re-registration, Asterisk will resend the authentication credentials from the first registration. This will make Asterisk register faster and will make the burden of extra packets easier on both sides.
The patch will be submitted to the Asterisk bug tracker to be included in the standard Asterisk distribution.

1. Copy the patch to /usr/src/asterisk/ (or wherever you store your Asterisk source image).

Patches:

# cp /usr/bob/broadvoicesip.txt /usr/src/asterisk/

2. Apply the patch using the following command:

# cd /usr/src/asterisk
# patch < broadvoicesip.txt

3. Re-compile the SIP channel by executing 'make' in the /etc/asterisk directory.

# cd /usr/src/asterisk
# make

4. Install the newly compiled SIP channel with the 'make install' command.

# make install

5. Restart Asterisk to enable the patch as follows:

# asterisk -rx "restart when convenient"

This patch will update the Asterisk channel to cache and properly handle registration messages. Please review the code and, if you have any suggestions, send comments to the author at oej@edvina.net.

[back]