提交 28d02700 authored 作者: Anthony Minessale's avatar Anthony Minessale

typo

上级 8bb4d0d4
...@@ -2020,7 +2020,7 @@ SWITCH_STANDARD_API(transfer_function) ...@@ -2020,7 +2020,7 @@ SWITCH_STANDARD_API(transfer_function)
} }
#define DUAL_TRANSFER_SYNTAX "<uuid> <dest-exten>[/<dialplan>][/<context>] <dest-exten>[/<dialplan>][/<context>]" #define DUAL_TRANSFER_SYNTAX "<uuid> <A-dest-exten>[/<A-dialplan>][/<A-context>] <B-dest-exten>[/<B-dialplan>][/<B-context>]"
SWITCH_STANDARD_API(dual_transfer_function) SWITCH_STANDARD_API(dual_transfer_function)
{ {
switch_core_session_t *tsession = NULL, *other_session = NULL; switch_core_session_t *tsession = NULL, *other_session = NULL;
...@@ -2029,14 +2029,14 @@ SWITCH_STANDARD_API(dual_transfer_function) ...@@ -2029,14 +2029,14 @@ SWITCH_STANDARD_API(dual_transfer_function)
char *tuuid, *dest1, *dest2, *dp1 = NULL, *dp2 = NULL, *context1 = NULL, *context2 = NULL; char *tuuid, *dest1, *dest2, *dp1 = NULL, *dp2 = NULL, *context1 = NULL, *context2 = NULL;
if (zstr(cmd) || !(mycmd = strdup(cmd))) { if (zstr(cmd) || !(mycmd = strdup(cmd))) {
stream->write_function(stream, "-USAGE: %s\n", TRANSFER_SYNTAX); stream->write_function(stream, "-USAGE: %s\n", DUAL_TRANSFER_SYNTAX);
return SWITCH_STATUS_SUCCESS; return SWITCH_STATUS_SUCCESS;
} }
argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0]))); argc = switch_separate_string(mycmd, ' ', argv, (sizeof(argv) / sizeof(argv[0])));
if (argc != 3) { if (argc != 3) {
stream->write_function(stream, "-USAGE: %s\n", TRANSFER_SYNTAX); stream->write_function(stream, "-USAGE: %s\n", DUAL_TRANSFER_SYNTAX);
goto done; goto done;
} }
...@@ -2062,7 +2062,7 @@ SWITCH_STANDARD_API(dual_transfer_function) ...@@ -2062,7 +2062,7 @@ SWITCH_STANDARD_API(dual_transfer_function)
stream->write_function(stream, "-ERR No Such Channel!\n"); stream->write_function(stream, "-ERR No Such Channel!\n");
goto done; goto done;
} }
if (switch_core_session_get_partner(tsession, &other_session) == SWITCH_STATUS_SUCCESS) { if (switch_core_session_get_partner(tsession, &other_session) == SWITCH_STATUS_SUCCESS) {
switch_ivr_session_transfer(other_session, dest2, dp2, context2); switch_ivr_session_transfer(other_session, dest2, dp2, context2);
switch_core_session_rwunlock(other_session); switch_core_session_rwunlock(other_session);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论