FS-9685 Update broadsoft SLA to work with newer Polycom firmware.

This commit is contained in:
Brian West 2016-11-01 10:22:57 -05:00
parent c9452d15d0
commit ff7ee1aa80
1 changed files with 4 additions and 5 deletions

View File

@ -10601,11 +10601,10 @@ void sofia_handle_sip_i_invite(switch_core_session_t *session, nua_t *nua, sofia
p++; p++;
} }
sql = sql = switch_mprintf(
switch_mprintf "select call_id from sip_dialogs where (call_info='%q' or call_info='%q;appearance-state=held') and "
("select call_id from sip_dialogs where call_info='%q' and ((sip_from_user='%q' and sip_from_host='%q') or presence_id='%q@%q') " "((sip_from_user='%q' and sip_from_host='%q') or presence_id='%q@%q') and call_id is not null",
"and call_id is not null", switch_str_nil(p), switch_str_nil(p), user, host, user, host);
switch_str_nil(p), user, host, user, host);
if ((str = sofia_glue_execute_sql2str(profile, profile->dbh_mutex, sql, cid, sizeof(cid)))) { if ((str = sofia_glue_execute_sql2str(profile, profile->dbh_mutex, sql, cid, sizeof(cid)))) {
bnh = nua_handle_by_call_id(nua, str); bnh = nua_handle_by_call_id(nua, str);