[asterisk-commits] mmichelson: branch 1.4 r123333 - /branches/1.4/channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 17 13:09:16 CDT 2008
Author: mmichelson
Date: Tue Jun 17 13:09:16 2008
New Revision: 123333
URL: http://svn.digium.com/view/asterisk?view=rev&rev=123333
Log:
Cisco BTS sends SIP responses with a tab between the Cseq number and
SIP request method in the Cseq: header. Asterisk did not handle this
properly, but with this patch, all is well.
(closes issue #12834)
Reported by: tobias_e
Patches:
12834.patch uploaded by putnopvut (license 60)
Tested by: tobias_e
Modified:
branches/1.4/channels/chan_sip.c
Modified: branches/1.4/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=123333&r1=123332&r2=123333
==============================================================================
--- branches/1.4/channels/chan_sip.c (original)
+++ branches/1.4/channels/chan_sip.c Tue Jun 17 13:09:16 2008
@@ -12735,12 +12735,12 @@
int sipmethod;
int res = 1;
const char *c = get_header(req, "Cseq");
- const char *msg = strchr(c, ' ');
+ /* Skip the Cseq and its subsequent spaces */
+ const char *msg = ast_skip_blanks(ast_skip_nonblanks((char *)c));
if (!msg)
msg = "";
- else
- msg++;
+
sipmethod = find_sip_method(msg);
owner = p->owner;
More information about the asterisk-commits
mailing list