mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 03:47:39 +00:00
fix regression where backwards printf args are messing up a sql stmt that breaks SLA
This commit is contained in:
parent
303de52bad
commit
5a349eecc4
@ -3030,12 +3030,12 @@ static int sync_sla(sofia_profile_t *profile, const char *to_user, const char *t
|
|||||||
if (unseize) {
|
if (unseize) {
|
||||||
sql = switch_mprintf("select call_id,expires,sub_to_user,sub_to_host,event,full_to,full_from,contact,expires,network_ip,network_port "
|
sql = switch_mprintf("select call_id,expires,sub_to_user,sub_to_host,event,full_to,full_from,contact,expires,network_ip,network_port "
|
||||||
"from sip_subscriptions where call_id='%q' and hostname='%q' and profile_name='%q')",
|
"from sip_subscriptions where call_id='%q' and hostname='%q' and profile_name='%q')",
|
||||||
mod_sofia_globals.hostname, call_id, profile->name);
|
call_id, mod_sofia_globals.hostname, profile->name);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
sql = switch_mprintf("select call_id,expires,sub_to_user,sub_to_host,event,full_to,full_from,contact,expires,network_ip,network_port "
|
sql = switch_mprintf("select call_id,expires,sub_to_user,sub_to_host,event,full_to,full_from,contact,expires,network_ip,network_port "
|
||||||
"from sip_subscriptions where call_id='%q' and hostname='%q' and profile_name='%q'",
|
"from sip_subscriptions where call_id='%q' and hostname='%q' and profile_name='%q'",
|
||||||
mod_sofia_globals.hostname, call_id, profile->name);
|
call_id, mod_sofia_globals.hostname, profile->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user