[Freeswitch-svn] [commit] r7553 - freeswitch/trunk/src/mod/applications/mod_commands

Freeswitch SVN brian at freeswitch.org
Fri Feb 8 10:17:53 EST 2008


Author: brian
Date: Fri Feb  8 10:17:52 2008
New Revision: 7553

Modified:
   freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c

Log:
fix transfer

Modified: freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_commands/mod_commands.c	Fri Feb  8 10:17:52 2008
@@ -701,11 +701,7 @@
 	switch_core_session_t *tsession = NULL, *other_session = NULL;
 	char *mycmd = NULL, *argv[5] = { 0 };
 	int argc = 0;
-	char *tuuid = argv[0];
-	char *dest = argv[1];
-	char *dp = argv[2];
-	char *context = argv[3];
-	char *arg = NULL;
+	char *tuuid, *dest, *dp, *context, *arg = NULL;
 
 	if (session) {
 		return SWITCH_STATUS_FALSE;
@@ -722,6 +718,11 @@
 		goto done;
 	}
 
+	tuuid = argv[0];
+	dest = argv[1];
+	dp = argv[2];
+	context = argv[3];
+
 	if (!(tsession = switch_core_session_locate(tuuid))) {
 		stream->write_function(stream, "-ERR No Such Channel!\n");
 		goto done;



More information about the Freeswitch-svn mailing list