aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_dial.c
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-19 09:59:55 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2006-03-19 09:59:55 +0000
commitae890ae89646aa61b6cd8e9166976cfcf29452bf (patch)
treecb06b84734ecb510f7b93bfa0cd886a729173023 /apps/app_dial.c
parentda88f2e35fcb9e40aa40dc794ac8696b3274689b (diff)
revert the change made in revision 12927 in favor of keeping the original
behavior of the option. The documentation has now been updated to reflect the actual behavior. (issue #6523) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@13550 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 2682ebf39..5ec606062 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -108,9 +108,10 @@ static char *descrip =
" other than the number assigned to the caller.\n"
" g - Proceed with dialplan execution at the current extension if the\n"
" destination channel hangs up.\n"
-" G(context^exten^pri) - If the call is answered, transfer both parties to\n"
-" the specified priority. Optionally, an extension, or extension and\n"
-" context may be specified. Otherwise, the current extension is used.\n"
+" G(context^exten^pri) - If the call is answered, transfer the calling party to\n"
+" the specified priority and the called party to the specified priority+1.\n"
+" Optionally, an extension, or extension and context may be specified. \n"
+" Otherwise, the current extension is used.\n"
" h - Allow the called party to hang up by sending the '*' DTMF digit.\n"
" H - Allow the calling party to hang up by hitting the '*' DTMF digit.\n"
" j - Jump to priority n+101 if all of the requested channels were busy.\n"
@@ -1414,6 +1415,7 @@ static int dial_exec_full(struct ast_channel *chan, void *data, struct ast_flags
}
ast_parseable_goto(chan, opt_args[OPT_ARG_GOTO]);
ast_parseable_goto(peer, opt_args[OPT_ARG_GOTO]);
+ peer->priority++;
ast_pbx_start(peer);
hanguptree(outgoing, NULL);
LOCAL_USER_REMOVE(u);