diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_dial.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index e83f80a0e..38fc338b4 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -459,10 +459,12 @@ static void do_forward(struct chanlist *o, } else { /* Setup parameters */ c = o->chan = ast_request(tech, in->nativeformats, stuff, &cause); - if (!c) - ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s' (cause = %d)\n", tech, stuff, cause); - else + if (c) { + if (single) + ast_channel_make_compatible(o->chan, in); ast_channel_inherit_variables(in, o->chan); + } else + ast_log(LOG_NOTICE, "Unable to create local channel for call forward to '%s/%s' (cause = %d)\n", tech, stuff, cause); } } else { if (option_verbose > 2) |