mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-06 13:08:55 +00:00
fix sql stmt
This commit is contained in:
parent
977a8ad7ce
commit
d18c3a8a60
@ -673,8 +673,8 @@ void sofia_reg_check_expire(sofia_profile_t *profile, time_t now, int reboot)
|
|||||||
if (now && sofia_test_pflag(profile, PFLAG_NAT_OPTIONS_PING)) {
|
if (now && sofia_test_pflag(profile, PFLAG_NAT_OPTIONS_PING)) {
|
||||||
switch_snprintf(sql, sizeof(sql), "select call_id,sip_user,sip_host,contact,status,rpid,"
|
switch_snprintf(sql, sizeof(sql), "select call_id,sip_user,sip_host,contact,status,rpid,"
|
||||||
"expires,user_agent,server_user,server_host,profile_name"
|
"expires,user_agent,server_user,server_host,profile_name"
|
||||||
" from sip_registrations where (status like '%%AUTO-NAT%%' "
|
" from sip_registrations where (status like '%%NAT%%' "
|
||||||
"or status like '%%UDP-NAT%%') and hostname='%s'", mod_sofia_globals.hostname);
|
"or contact like '%%fs_nat=true%%') and hostname='%s'", mod_sofia_globals.hostname);
|
||||||
|
|
||||||
sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_reg_nat_callback, profile);
|
sofia_glue_execute_sql_callback(profile, NULL, sql, sofia_reg_nat_callback, profile);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user