aboutsummaryrefslogtreecommitdiffstats
path: root/channels
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-17 18:10:30 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-06-17 18:10:30 +0000
commite48e73c1070b4e1c3c176f5c3b6d0f64cb43d568 (patch)
treea9979f0c5411a0d07433cb3808c9550027d6ae86 /channels
parent2f30a3a6e7ae5721ed086155a63f22c33c495382 (diff)
Merged revisions 123334 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ................ r123334 | mmichelson | 2008-06-17 13:09:54 -0500 (Tue, 17 Jun 2008) | 19 lines 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 ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@123335 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels')
-rw-r--r--channels/chan_sip.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/channels/chan_sip.c b/channels/chan_sip.c
index c909f5af6..3bcf5d42a 100644
--- a/channels/chan_sip.c
+++ b/channels/chan_sip.c
@@ -15150,12 +15150,12 @@ static void handle_response(struct sip_pvt *p, int resp, char *rest, struct sip_
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;