]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-6939 please do pull request next time. ;)
authorBrian West <brian@freeswitch.org>
Mon, 27 Oct 2014 19:12:55 +0000 (14:12 -0500)
committerBrian West <brian@freeswitch.org>
Mon, 27 Oct 2014 19:12:55 +0000 (14:12 -0500)
src/mod/endpoints/mod_sofia/sofia_reg.c

index 78651e08bbef2bec09f1110ab41019084305163f..98ac88df6828a3800abc400f9e9dee3ee92d5607 100644 (file)
@@ -920,7 +920,7 @@ void sofia_reg_check_ping_expire(sofia_profile_t *profile, time_t now, int inter
                                irand = mean + sofia_reg_uniform_distribution(interval);
                                next = (long) now + irand;
        
-                               sql = switch_mprintf("update sip_registrations set ping_expires = %ld where hostname='%q' and profile_name='%q' ping_expires <= %ld ",
+                               sql = switch_mprintf("update sip_registrations set ping_expires = %ld where hostname='%q' and profile_name='%q' and ping_expires <= %ld ",
                                                        next, mod_sofia_globals.hostname, profile->name, (long) now);
                                sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE);
                        }