]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-667
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 7 Sep 2010 14:40:39 +0000 (09:40 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 7 Sep 2010 14:40:47 +0000 (09:40 -0500)
libs/libdingaling/src/libdingaling.c

index 1af67f69c66bb8c2e1885c6c493afc5a28aa5879..11a9a8a5b8a6da49c365a33f83034e3556a2dd75 100644 (file)
@@ -1974,10 +1974,19 @@ unsigned int ldl_session_terminate(ldl_session_t *session)
 {
        iks *iq, *sess;
        unsigned int id;
+       apr_hash_t *hash = session->handle->sessions;
 
        new_session_iq(session, &iq, &sess, &id, "terminate");
        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;
 
 }