[asterisk-users] Alcatel OXO Sip
Christian Gatti
cgatti at vo.lu
Tue Sep 19 05:53:17 MST 2006
It the question why does asterisk has problems with SIP/2.0/udp or
SIP/2.0/UDP
if (strcasecmp(via, "SIP/2.0/UDP")) {
ast_log(LOG_WARNING, "Don't know how to respond via '%s'\n", via);
return -1;
}
This code says: I don't know what to do with a SIP/2.0/UDP in a via and
blocks (return -1).
Should the alcatel pbx not send something like SIP/2.0/udp in a via?
Christian
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Steve
Langstaff
Sent: Tuesday, September 19, 2006 13:42 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: RE: [asterisk-users] Alcatel OXO Sip
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
>
_______________________________________________
--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