Ensure no spaces exist before "refresher=" when doing the comparison.
authorJoshua Colp <jcolp@digium.com>
Thu, 17 Sep 2009 19:57:39 +0000 (19:57 +0000)
committerJoshua Colp <jcolp@digium.com>
Thu, 17 Sep 2009 19:57:39 +0000 (19:57 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@219264 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index ecfe951..ef06268 100644 (file)
@@ -23155,7 +23155,8 @@ int parse_session_expires(const char *p_hdrval, int *const p_interval, enum st_r
 
                if (!p_se_hdr)
                        continue;
-               
+
+               p_se_hdr = ast_skip_blanks(p_se_hdr);
                ref_idx = strlen("refresher=");
                if (!strncasecmp(p_se_hdr, "refresher=", ref_idx)) {
                        p_se_hdr += ref_idx;