FS-6939 #resolve

This commit is contained in:
Brian West 2014-10-27 12:23:44 -05:00
parent b25ae6ab6c
commit 26af9c3d67
1 changed files with 2 additions and 2 deletions

View File

@ -920,8 +920,8 @@ 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 ping_expires <= %ld ",
next, (long) now);
sql = switch_mprintf("update sip_registrations set ping_expires = %ld where hostname='%q' and profile_name='%q' ping_expires <= %ld ",
next, mod_sofia_globals.hostname, profile->name, (long) now);
sofia_glue_execute_sql(profile, &sql, SWITCH_TRUE);
}
}