]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4676 going over the traces the only thing I can guess is that you may have some...
authorAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Oct 2012 14:29:50 +0000 (09:29 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Wed, 3 Oct 2012 14:29:50 +0000 (09:29 -0500)
src/mod/endpoints/mod_sofia/sofia_presence.c

index 10d741bca4063d3334569f871cd2073e2850acda..d7d7a49cf77e7891ae3060f515c3dfa3b3d10309 100644 (file)
@@ -3138,9 +3138,6 @@ static int broadsoft_sla_notify_callback(void *pArg, int argc, char **argv, char
        switch_snprintf(key, sizeof(key), "%s%s", user, host);
        data = switch_core_hash_find(sh->hash, key);
        
-
-       data = switch_core_hash_find(sh->hash, key);
-
        if (data) {
                tmp = switch_core_sprintf(sh->pool, "%s,<sip:%s>;appearance-index=*;appearance-state=idle", data, host);
        } else {
@@ -3354,7 +3351,7 @@ static int sync_sla(sofia_profile_t *profile, const char *to_user, const char *t
        switch_core_hash_init(&sh->hash, sh->pool);
 
        sql = switch_mprintf("select sip_from_user,sip_from_host,call_info,call_info_state,uuid from sip_dialogs "
-                                                "where call_info_state is not null and call_info_state != '' and hostname='%q' and profile_name='%q' "
+                                                "where call_info_state is not null and call_info_state != '' and call_info_state != 'idle' and hostname='%q' and profile_name='%q' "
                                                 "and ((sip_from_user='%q' and sip_from_host='%q') or presence_id='%q@%q') "
                                                 "and profile_name='%q'", 
                                                 mod_sofia_globals.hostname, profile->name, to_user, to_host, to_user, to_host, profile->name);