From: Michael Jerris Date: Wed, 7 Jan 2015 22:41:19 +0000 (-0500) Subject: FS-6688: #resolve fix resubscribe through proxy with record route when the resub... X-Git-Tag: v1.4.16~1^2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6afc2b5a2ebe862d8e6ec047ff0d95a51d9ff60a;p=thirdparty%2Ffreeswitch.git FS-6688: #resolve fix resubscribe through proxy with record route when the resub does not have a record route and the route has uri params --- diff --git a/src/mod/endpoints/mod_sofia/sofia_presence.c b/src/mod/endpoints/mod_sofia/sofia_presence.c index 550d0e874a..5520e6ec76 100644 --- a/src/mod/endpoints/mod_sofia/sofia_presence.c +++ b/src/mod/endpoints/mod_sofia/sofia_presence.c @@ -3906,8 +3906,8 @@ void sofia_presence_handle_sip_i_subscribe(int status, if (strstr(buf, "fs_path=") && !strstr(contact_str, "fs_path=")) { char *e = strchr(buf,';'); - size_t l = e ? buf-e : strlen(buf); - if (strncmp(contact_str,buf,l)) { + size_t l = e ? e-buf : strlen(buf); + if (!strncmp(contact_str,buf,l)) { contact = buf; } }