]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Fixed call deflect, previous code was uncompilable on any version of OPAL. Sorry...
authorRobert Joly <rjoly@nortel.com>
Thu, 4 Jun 2009 04:15:05 +0000 (04:15 +0000)
committerRobert Joly <rjoly@nortel.com>
Thu, 4 Jun 2009 04:15:05 +0000 (04:15 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13606 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/endpoints/mod_opal/mod_opal.cpp

index baff6a01a8d4aa0377c8bb91d49e7f05f4b7ac5d..56aeede1bf2435f4878b93440cf9992c6ca9958e 100644 (file)
@@ -995,9 +995,9 @@ switch_status_t FSConnection::receive_message(switch_core_session_message_t *msg
 \r
     case SWITCH_MESSAGE_INDICATE_DEFLECT:\r
     {\r
-        char transfer_to[128] = "";\r
-        switch_set_string(transfer_to, msg->string_arg);\r
-        GetCall().Transfer(transfer_to);\r
+        PSafePtr<OpalConnection> other = GetOtherPartyConnection();\r
+        if (other != NULL)\r
+          other->TransferConnection(msg->string_arg);\r
         break;\r
     }\r
 \r