[asterisk-commits] jrose: trunk r400482 - in /trunk: ./ channels/chan_sip.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Oct 3 18:20:01 CDT 2013
Author: jrose
Date: Thu Oct 3 18:20:00 2013
New Revision: 400482
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=400482
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
........
Merged revisions 400470 from http://svn.asterisk.org/svn/asterisk/branches/11
........
Merged revisions 400471 from http://svn.asterisk.org/svn/asterisk/branches/12
Modified:
trunk/ (props changed)
trunk/channels/chan_sip.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.
Modified: trunk/channels/chan_sip.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_sip.c?view=diff&rev=400482&r1=400481&r2=400482
==============================================================================
--- trunk/channels/chan_sip.c (original)
+++ trunk/channels/chan_sip.c Thu Oct 3 18:20:00 2013
@@ -23911,8 +23911,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