From: Jeff Lenk Date: Sun, 31 Oct 2010 03:29:26 +0000 (-0500) Subject: fix stuck channel with voicemail and loopback X-Git-Tag: v1.2-rc1~265^2~11^2~90 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b0ec75568cb08e0e1ea6d3459406b40db2eb0eb;p=thirdparty%2Ffreeswitch.git fix stuck channel with voicemail and loopback --- diff --git a/src/mod/endpoints/mod_loopback/mod_loopback.c b/src/mod/endpoints/mod_loopback/mod_loopback.c index 07f6d74dcf..7c69ff252e 100644 --- a/src/mod/endpoints/mod_loopback/mod_loopback.c +++ b/src/mod/endpoints/mod_loopback/mod_loopback.c @@ -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); }