mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 06:34:19 +00:00
omit chat_hash code when presence is not enabled
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9574 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
b1e72c8b6e
commit
1a66e8b288
3 files changed
+11
-4
No files matched your search
@@ -1231,8 +1231,12 @@ switch_status_t sofia_glue_do_invite(switch_core_session_t *session)
|
||||
|
||||
tech_pvt->chat_from = tech_pvt->from_str;
|
||||
tech_pvt->chat_to = tech_pvt->dest;
|
||||
tech_pvt->hash_key = switch_core_session_strdup(tech_pvt->session, hash_key);
|
||||
switch_core_hash_insert(tech_pvt->profile->chat_hash, tech_pvt->hash_key, tech_pvt);
|
||||
if (tech_pvt->profile->pflags & PFLAG_PRESENCE) {
|
||||
tech_pvt->hash_key = switch_core_session_strdup(tech_pvt->session, hash_key);
|
||||
switch_mutex_lock(tech_pvt->profile->flag_mutex);
|
||||
switch_core_hash_insert(tech_pvt->profile->chat_hash, tech_pvt->hash_key, tech_pvt);
|
||||
switch_mutex_unlock(tech_pvt->profile->flag_mutex);
|
||||
}
|
||||
free(e_dest);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user