mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-24 19:52:35 +00:00
FSCORE-667
This commit is contained in:
parent
35fd2bc9e7
commit
be00609aab
@ -1974,10 +1974,19 @@ unsigned int ldl_session_terminate(ldl_session_t *session)
|
|||||||
{
|
{
|
||||||
iks *iq, *sess;
|
iks *iq, *sess;
|
||||||
unsigned int id;
|
unsigned int id;
|
||||||
|
apr_hash_t *hash = session->handle->sessions;
|
||||||
|
|
||||||
new_session_iq(session, &iq, &sess, &id, "terminate");
|
new_session_iq(session, &iq, &sess, &id, "terminate");
|
||||||
schedule_packet(session->handle, id, iq, LDL_RETRY);
|
schedule_packet(session->handle, id, iq, LDL_RETRY);
|
||||||
|
|
||||||
|
if (session->id) {
|
||||||
|
apr_hash_set(hash, session->id, APR_HASH_KEY_STRING, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (session->them) {
|
||||||
|
apr_hash_set(hash, session->them, APR_HASH_KEY_STRING, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
return id;
|
return id;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user