[asterisk-commits] jrose: branch 11 r400470 - in /branches/11: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 3 17:59:06 CDT 2013
Author: jrose
Date: Thu Oct 3 17:59:04 2013
New Revision: 400470
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400470
Log:
chan_sip: Don't ignore expires value in contact header if it lacks semicolon
(closes issue ASTERISK-22574)
Reported by: Filip Jenicek
Patches:
chan_sip_expires.patch uploaded by Filip Jenicek (license 6277)
........
Merged revisions 400469 from http://svn.asterisk.org/svn/asterisk/branches/1.8
Modified:
branches/11/ (props changed)
branches/11/channels/chan_sip.c
Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: branches/11/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_sip.c?view=diff&rev=400470&r1=400469&r2=400470
==============================================================================
--- branches/11/channels/chan_sip.c (original)
+++ branches/11/channels/chan_sip.c Thu Oct 3 17:59:04 2013
@@ -23418,8 +23418,9 @@
}
tmptmp = strcasestr(contact, "expires=");
if (tmptmp) {
- if (sscanf(tmptmp + 8, "%30d;", &expires) != 1)
+ if (sscanf(tmptmp + 8, "%30d", &expires) != 1) {
expires = 0;
+ }
}
}
More information about the asterisk-commits
mailing list