]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix regression where backwards printf args are messing up a sql stmt that breaks SLA
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Feb 2012 17:48:12 +0000 (11:48 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 15 Feb 2012 17:48:12 +0000 (11:48 -0600)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 7a34e1a0f1af4bda0fc20420c0712ff0dc26dd17..2e112710036890a1db69f32213d4917839ebf3bf 100644 (file)
@@ -3030,12 +3030,12 @@ static int sync_sla(sofia_profile_t *profile, const char *to_user, const char *t
                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 "
                                                                 "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 {
                        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'",
-                                                                mod_sofia_globals.hostname, call_id, profile->name);
+                                                                call_id, mod_sofia_globals.hostname, profile->name);
                }
 
        } else {