add -bleg and -both flags to the transfer api command so you can transfer both sides or the opposite side of a call as well

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5770 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale
2007-10-01 14:57:15 +00:00
parent 094593980b
commit 6d2ff03bb1
2 changed files with 35 additions and 4 deletions

View File

@@ -895,6 +895,8 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_session_transfer(switch_core_session_
}
if (uuid && (other_session = switch_core_session_locate(uuid))) {
other_channel = switch_core_session_get_channel(other_session);
assert(other_channel != NULL);
switch_channel_set_variable(other_channel, SWITCH_SIGNAL_BOND_VARIABLE, NULL);
switch_core_session_rwunlock(other_session);
}