]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10468: [mod_verto] Attended Transfer from Mod Verto leaves one channel in limbo...
authorAnthony Minessale <anthm@freeswitch.org>
Mon, 11 Sep 2017 19:47:47 +0000 (14:47 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Mon, 11 Sep 2017 19:47:56 +0000 (14:47 -0500)
src/mod/endpoints/mod_verto/mod_verto.c

index 299f1afe11f225f6589c5a14162f7a1944addaa5..7a8b6e23b113ae5fc41d76a6eef57c60215acce7 100644 (file)
@@ -3115,14 +3115,12 @@ static switch_bool_t attended_transfer(switch_core_session_t *session, switch_co
 
                                result = SWITCH_TRUE;
                                switch_channel_hangup(hup_channel, SWITCH_CAUSE_ATTENDED_TRANSFER);
+                               switch_core_session_rwunlock(t_session);
                        } else {
                                result = SWITCH_FALSE;
                        }
                }
        }
-       if (b_session) {
-               switch_core_session_rwunlock(b_session);
-       }
 
        return result;
 }