summaryrefslogtreecommitdiff
path: root/apps/app_dial.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r--apps/app_dial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c
index 2fb7fc9ac..b995b55d9 100644
--- a/apps/app_dial.c
+++ b/apps/app_dial.c
@@ -870,7 +870,7 @@ static void do_forward(struct chanlist *o, struct cause_args *num,
c = o->chan = ast_request(tech, ast_channel_nativeformats(in), in, stuff, &cause);
if (c) {
if (single && !caller_entertained) {
- ast_channel_make_compatible(o->chan, in);
+ ast_channel_make_compatible(in, o->chan);
}
ast_channel_lock_both(in, o->chan);
ast_channel_inherit_variables(in, o->chan);
@@ -1070,7 +1070,7 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in,
ast_deactivate_generator(in);
/* If we are calling a single channel, and not providing ringback or music, */
/* then, make them compatible for in-band tone purpose */
- if (ast_channel_make_compatible(outgoing->chan, in) < 0) {
+ if (ast_channel_make_compatible(in, outgoing->chan) < 0) {
/* If these channels can not be made compatible,
* there is no point in continuing. The bridge
* will just fail if it gets that far.