From: Robert Joly Date: Thu, 4 Jun 2009 04:15:05 +0000 (+0000) Subject: Fixed call deflect, previous code was uncompilable on any version of OPAL. Sorry... X-Git-Tag: v1.0.4~636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49aec077ac3efd72b8ccec9801466dbad0967db4;p=thirdparty%2Ffreeswitch.git Fixed call deflect, previous code was uncompilable on any version of OPAL. Sorry total brain fade there. git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13606 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/endpoints/mod_opal/mod_opal.cpp b/src/mod/endpoints/mod_opal/mod_opal.cpp index baff6a01a8..56aeede1bf 100644 --- a/src/mod/endpoints/mod_opal/mod_opal.cpp +++ b/src/mod/endpoints/mod_opal/mod_opal.cpp @@ -995,9 +995,9 @@ switch_status_t FSConnection::receive_message(switch_core_session_message_t *msg case SWITCH_MESSAGE_INDICATE_DEFLECT: { - char transfer_to[128] = ""; - switch_set_string(transfer_to, msg->string_arg); - GetCall().Transfer(transfer_to); + PSafePtr other = GetOtherPartyConnection(); + if (other != NULL) + other->TransferConnection(msg->string_arg); break; }