]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6223 --resolve v1.2.22
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 13 Feb 2014 17:11:34 +0000 (22:11 +0500)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 13 Feb 2014 17:12:09 +0000 (22:12 +0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 7883e484c6f348be3b90bd1e47741b88b11c410e..f62fc88325a18e6bd4859fb6c9e5551ff50f4fed 100644 (file)
@@ -3923,7 +3923,7 @@ void sofia_presence_handle_sip_i_subscribe(int status,
                                switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Sending NOTIFY with Expires [0] and State [%s]\n", sstr);
                        }
 
-                       if (zstr(full_agent) || !switch_stristr("zoiper", full_agent)) {
+                       if (zstr(full_agent) || (*full_agent != 'z' && *full_agent != 'Z')) {
                                /* supress endless loop bug with zoiper */
                                nua_notify(nh,
                                                   SIPTAG_EXPIRES_STR("0"),