[svn-commits] mmichelson: trunk r123334 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Tue Jun 17 13:09:55 CDT 2008
Author: mmichelson
Date: Tue Jun 17 13:09:54 2008
New Revision: 123334
URL: http://svn.digium.com/view/asterisk?view=rev&rev=123334
Log:
Merged revisions 123333 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r123333 | mmichelson | 2008-06-17 13:09:16 -0500 (Tue, 17 Jun 2008) | 11 lines
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:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/chan_sip.c?view=diff&rev=123334&r1=123333&r2=123334
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Tue Jun 17 13:09:54 2008
@@ -16344,12 +16344,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 svn-commits
mailing list