[asterisk-users] Alcatel OXO Sip

Steve Langstaff steve.langstaff at citel.com
Tue Sep 19 04:41:42 MST 2006


Oops! Yes, I was confusing strcmp and strcasecmp, sorry - too little
coffee.

However, it's funny that the strcasecmp of "SIP/2.0/UDP" fails to match
with "SIP/2.0/udp". Almost like it's using a strcmp instead of
strcasecmp!

> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of 
> Christian Gatti

>Asterisk gives me an WARNING if I try to register with my alcatel oxo
pbx.
>Sep 18 11:27:19 WARNING[11977]: chan_sip.c:5259 check_via: Don't know 
>how to respond via 'SIP/2.0/udp' 

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com 
> [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Patrick
> Sent: 19 September 2006 10:57
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: RE: [asterisk-users] Alcatel OXO Sip
> 
> On Tue, 2006-09-19 at 02:18 -0700, Steve Langstaff wrote:
> > I think that (one of the) offending line(s) is in chan_sip.c:
> > 
> > 		if (strcasecmp(via, "SIP/2.0/UDP")) {
> > 			ast_log(LOG_WARNING, "Don't know how to 
> respond via '%s'\n", via);
> > 			return -1;
> > 		}
> > 
> > This is looking for an upper-case 'UDP' whereas your oxo 
> pbx is using 
> > a lower-case 'udp'.
> 
> man strcasecmp says:
> strcasecmp, strncasecmp - compare two strings ignoring case
> 
> So the case is ignored and either sip and SIP or udp and UDP 
> should work.
> 
> Regards,
> Patrick
> 
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 


More information about the asterisk-users mailing list