[Freeswitch-users] Broadvoice

Dave lists+freeswitch at bigfatdave.com
Sun Apr 15 04:02:11 PDT 2007

On Sat, Apr 14, 2007 at 08:48:30AM -0400, Jonathan Rogers wrote:
> On 4/13/07, Michael Jerris <mike at jerris.com> wrote:

> In contrast, I did get FreeSwitch to register and authenticate my
> Stanaphone account. I configured it just like Broadvoice, but with
> stanaphone,com and the appropriate username and password. Looking at
> the WireShark capture of that process, I could see FreeSwitch sending
> a REGISTER request, stanaphone.com responding with "401 Unauthorized"
> and FreeSwitch sending a second REGISTER request with appropriate
> authentication.
> So, there seems to be something different about Broadvoice that
> confuses FreeSwitch and prevents it from sending authentication even
> though it thinks it is. I don't understand exactly how the
> authentication works, but I did notice that in the "401 Unauthorized"
> response stanaphone.com sends, it has a line:
> -----------------snip-------------------
> WWW-Authenticate: Digest realm="stanaphone.com",
> nonce="461f750009e560e064b2f288a44e7482b6b109bb"
> -----------------snip-------------------
> Broadvoice's "401 Unauthorized" response has this line:
> -----------------snip-------------------
> WWW-Authenticate: DIGEST
> realm="BroadWorks",qop="auth",algorithm=MD5,nonce="BroadWorksXf0glpnawTune6wdBW"
> -----------------snip-------------------
> I don't know what "qop" means or whether "DIGEST" is case sensitive,
> but I'm guessing that the problem has something to do with those
> authentication parameters.

If I'm correct, you just found the problem yourself: While Stanaphone uses the
obvious "stanaphone.com" as its realm, BroadVoice uses "BroadWorks" instead, and
so you'll need to update that in your config.

> I have succeed in registering with Broadvoice using Asterisk using the
> instructions from the broadvoice.com site. However, I'm completely new
> to Asterisk and its configuration is somewhat confusing to me. I don't
> know how to translate the configuration directly to FreeSwitch, since
> a number of the Asterisk parameters don't seem to exist in FreeSwitch.
> I thought all the parameters I'd need to configure were gateway name,
> username, and password, as that worked for Stanaphone.

Asterisk has some logic to find the realm itself, so even if you give it a bogus
realm (or no realm at all), it still manages to do the right thing.  FreeSWITCH
is far more transparent in its configuration, which IMHO is really cool, but it
also creates its share of surprises :-)

 - Dave

More information about the FreeSWITCH-users mailing list