]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix stuck channel with voicemail and loopback
authorJeff Lenk <jeff@jefflenk.com>
Sun, 31 Oct 2010 03:29:26 +0000 (22:29 -0500)
committerJeff Lenk <jeff@jefflenk.com>
Sun, 31 Oct 2010 03:29:26 +0000 (22:29 -0500)
src/mod/endpoints/mod_loopback/mod_loopback.c

index 07f6d74dcf465bb33049e941417a44bd654b5c64..7c69ff252e806f4afb4d45dc7d6501ecf890403b 100644 (file)
@@ -788,7 +788,7 @@ static switch_status_t channel_receive_message(switch_core_session_t *session, s
                switch_status_t r = SWITCH_STATUS_FALSE;
                switch_core_session_t *other_session;
                
-               if (switch_core_session_get_partner(tech_pvt->other_session, &other_session)) {
+               if (switch_core_session_get_partner(tech_pvt->other_session, &other_session) == SWITCH_STATUS_SUCCESS) {
                        r = switch_core_session_receive_message(other_session, msg);
                        switch_core_session_rwunlock(other_session);
                }