FS-4676 going over the traces the only thing I can guess is that you may have some race condition on the speed of your box or something regarding the db, Try this patch that may help
This commit is contained in:
parent
cefeaee88c
commit
fd177cdf33
|
@ -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);
|
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);
|
||||||
|
|
||||||
|
|
||||||
data = switch_core_hash_find(sh->hash, key);
|
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
tmp = switch_core_sprintf(sh->pool, "%s,<sip:%s>;appearance-index=*;appearance-state=idle", data, host);
|
tmp = switch_core_sprintf(sh->pool, "%s,<sip:%s>;appearance-index=*;appearance-state=idle", data, host);
|
||||||
} else {
|
} 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);
|
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 "
|
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 ((sip_from_user='%q' and sip_from_host='%q') or presence_id='%q@%q') "
|
||||||
"and profile_name='%q'",
|
"and profile_name='%q'",
|
||||||
mod_sofia_globals.hostname, profile->name, to_user, to_host, to_user, to_host, profile->name);
|
mod_sofia_globals.hostname, profile->name, to_user, to_host, to_user, to_host, profile->name);
|
||||||
|
|
Loading…
Reference in New Issue