]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3443 --resolve
authorAnthony Minessale <anthm@freeswitch.org>
Sun, 31 Jul 2011 23:07:17 +0000 (18:07 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Sun, 31 Jul 2011 23:27:33 +0000 (18:27 -0500)
src/mod/endpoints/mod_dingaling/mod_dingaling.c

index 59d76d110bdab5852650915657084294dc08a32e..77dab2d092d555999a582abc2773f095f340a624 100644 (file)
@@ -735,7 +735,9 @@ static void terminate_session(switch_core_session_t **session, int line, switch_
                }
 
                switch_mutex_lock(tech_pvt->flag_mutex);
-               switch_set_flag(tech_pvt, TFLAG_TERM);
+               if (!switch_test_flag(tech_pvt, TFLAG_OUTBOUND)) {
+                       switch_set_flag(tech_pvt, TFLAG_TERM);
+               }
                switch_set_flag(tech_pvt, TFLAG_BYE);
                switch_clear_flag(tech_pvt, TFLAG_IO);
                switch_mutex_unlock(tech_pvt->flag_mutex);