提交 b2ab979f authored 作者: Brian West's avatar Brian West

fix transfer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7553 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 d92f0657
...@@ -701,11 +701,7 @@ SWITCH_STANDARD_API(transfer_function) ...@@ -701,11 +701,7 @@ SWITCH_STANDARD_API(transfer_function)
switch_core_session_t *tsession = NULL, *other_session = NULL; switch_core_session_t *tsession = NULL, *other_session = NULL;
char *mycmd = NULL, *argv[5] = { 0 }; char *mycmd = NULL, *argv[5] = { 0 };
int argc = 0; int argc = 0;
char *tuuid = argv[0]; char *tuuid, *dest, *dp, *context, *arg = NULL;
char *dest = argv[1];
char *dp = argv[2];
char *context = argv[3];
char *arg = NULL;
if (session) { if (session) {
return SWITCH_STATUS_FALSE; return SWITCH_STATUS_FALSE;
...@@ -722,6 +718,11 @@ SWITCH_STANDARD_API(transfer_function) ...@@ -722,6 +718,11 @@ SWITCH_STANDARD_API(transfer_function)
goto done; goto done;
} }
tuuid = argv[0];
dest = argv[1];
dp = argv[2];
context = argv[3];
if (!(tsession = switch_core_session_locate(tuuid))) { if (!(tsession = switch_core_session_locate(tuuid))) {
stream->write_function(stream, "-ERR No Such Channel!\n"); stream->write_function(stream, "-ERR No Such Channel!\n");
goto done; goto done;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论