[Asterisk-Users] Last guy to get BV working outbound?

Brian G briang at net109.com
Mon Mar 21 07:07:43 MST 2005


Rich thanks, this makes it a little clearer. My servers are using NAT
behind a Cisco PIX.  I only needed the simple patch (see below).
I configured sip.conf from these instructions:

http://www.voip-info.org/wiki-Asterisk+settings+Broadvoice

Hope this helps somebody.  Sorry I wasn't clear about using NAT.

Brian

Patch I used:

--- chan_sip.c.fcs      2003-12-13 14:54:37.000000000 -0800
+++ chan_sip.c  2005-03-10 11:48:40.000000000 -0800
@@ -4444,10 +4446,10 @@
 }
 
 static int do_proxy_auth(struct sip_pvt *p, struct sip_request *req,
char *header, char *respheader, char *msg, int init) {
-       char digest[256];
+       char digest[1024];
        p->authtries++;
        memset(digest,0,sizeof(digest));
-       if (reply_digest(p,req, "Proxy-Authenticate", msg, digest,
sizeof(digest) )) {
+       if (reply_digest(p,req, header, msg, digest, sizeof(digest) )) {
                /* No way to authenticate */
                return -1;
        }


On Sat, 2005-03-19 at 09:14, Rich Adamson wrote:
> A lot of the BV config confusion is the result of users with registered
> IP's vs nat'ed IPs. The patch _was_ only required for those that used
> nat'ed systems (proven shortly after that patch was released, and backed
> by those that wrote the patch).
> 
> So, for those that are still mucking around with BV configs, it would
> be helpful to others on this list to understand whether your systems are
> nat'ed or not in initial posts.
> 
> You can also help yourself by validating some of these recommended
> parameters against those listed in /usr/src/asterisk/configs/sip.conf.samples.
> (User=phone is one such example of a do-nothing statement that has
> no meaning whatsoever.)
> 
> Since I no longer subscribe to BV's service, I don't have a clue
> which * releases need the patch and which don't.
> 
> ------------------------
> 
> > Thanks John, but I tried adding those and many others.  Turned out that
> > I needed to install a patch even though I tried CVS-3/11/05 and
> > CVS-3/17/05 code.  I'm not sure what release needs what patch to work
> > but I definitely needed a patch. Thanks to the person on this list who
> > sent it along.  There are many people with many configs posting on many
> > lists but I can't say I have a handle it.
> > 
> > Brian
> > 
> > On Fri, 2005-03-18 at 12:30, John Sawa wrote:
> > > Brian,
> > > 
> > > You will need to add the following to your broadvoice peer:
> > > 
> > > user=phone
> > > insecure=very
> > > dtmf=inband
> > > 
> > > For more info check out:
> > > 
> > > http://geekgazette.com/index.php?option=com_content&task=view&id=20&Itemid=26
> > > 
> > > Hope this helps. -john
> > > 
> > > 
> > > Brian G wrote:
> > > 
> > > >I have tried everything to get BV working outbound.  All worked fine
> > > >until the BV change last week.  I called BV and they changed me to sip
> > > >gen with a new password.  I stripped my Asterisk server to one phone on
> > > >Zap/1 until I get this working.  The same BV account works fine with a
> > > >SPA-3000 so I don't suspect a firewall problem.
> > > >
> > > >Symptoms: Asterisk registers with BV Ok
> > > >Incoming calls work
> > > >Outbound calls send Invite, receive 100, then 401
> > > >Asterisk sends an ACK instead of another Invite with credentials
> > > >
> > > >If anyone knows what specifically makes Asterisk respond to the 401 with
> > > >credentials for an authenticated Invite, I'd appreciate it.  I can't
> > > >seem to find this out.
> > > >
> > > >Thanks in advance,
> > > >Brian
> > > >
> > > >Here is my sip.conf:
> > > >
> > > >[general]
> > > >port = 5060                     ; Port to bind to
> > > >bindaddr = 0.0.0.0              ; Address to bind SIP channel to
> > > >context = default               ; Default context for incoming calls
> > > >srvlookup = yes                 ; Enable DNS SRV lookups on outbound
> > > >calls
> > > >                                                                                                            
> > > >disallow=all                    ; Disallow all codecs
> > > >allow=ulaw                      ; Allow codecs in order of preference
> > > >;
> > > >; Configuration for BroadVoice
> > > >;
> > > >register =>
> > > >508XXXXXXX at sip.broadvoice.com:pword:508XXXXXXX at sip.broadvoice.com
> > > >;
> > > >[broadvoice]
> > > >type=peer
> > > >host=sip.broadvoice.com
> > > >secret=pword
> > > >fromuser=508XXXXXXX
> > > >username=508XXXXXXX
> > > >authuser=508XXXXXXX
> > > >fromdomain=sip.broadvoice.com
> > > >context=incoming
> > > >canreinvite=no
> > > >dtmfmode=inband
> > > >qualify=yes
> > > >
> > > >in extensions.conf:
> > > >[default]
> > > >exten => _81XXXXXXXXXX,1,Dial(SIP/${EXTEN:1}@broadvoice)
> > > >exten => _81XXXXXXXXXX,2,Congestion()
> > > >exten => _81XXXXXXXXXX,102,busy()
> > > >
> > > >Other Asterisk info:
> > > >
> > > >*CLI> sip show registry
> > > >Host                  Username     Refresh State
> > > >147.135.0.128:5060    508XXXXXXX       120 Registered
> > > >*CLI>
> > > >*CLI> show version
> > > >Asterisk CVS-03/11/05-16:07:49 built by root at hostname.com on a i686
> > > >running Linux
> > > >*CLI>
> > > >*CLI> Mar 17 10:35:08 NOTICE[-245486672]: chan_sip.c:5047
> > > >handle_response: Failed to authenticate on INVITE to '"Analog1"
> > > ><sip:508XXXXXXX at sip.broadvoice.com>;tag=as212bf17
> > > >                                                                                                            
> > > >
> > > >                                                                                         
> > > >
> > > >
> > > >_______________________________________________
> > > >Asterisk-Users mailing list
> > > >Asterisk-Users at lists.digium.com
> > > >http://lists.digium.com/mailman/listinfo/asterisk-users
> > > >To UNSUBSCRIBE or update options visit:
> > > >   http://lists.digium.com/mailman/listinfo/asterisk-users
> > > >  
> > > >
> > > _______________________________________________
> > > Asterisk-Users mailing list
> > > Asterisk-Users at lists.digium.com
> > > http://lists.digium.com/mailman/listinfo/asterisk-users
> > > To UNSUBSCRIBE or update options visit:
> > >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > 
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at lists.digium.com
> > http://lists.digium.com/mailman/listinfo/asterisk-users
> > To UNSUBSCRIBE or update options visit:
> >    http://lists.digium.com/mailman/listinfo/asterisk-users
> > 
> 
> ---------------End of Original Message-----------------
> 
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-users
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list