aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-09 01:06:56 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2007-04-09 01:06:56 +0000
commit6091b3b30dd1ac17cdc38a57a33b548469938ef2 (patch)
treef0ab16dacdd0a9024cdb360fab512afcd8a75bf2 /apps
parent4abb00273a333553412f96b54f7f45501cba6ea6 (diff)
Merged revisions 60798 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r60798 | file | 2007-04-08 21:03:14 -0400 (Sun, 08 Apr 2007) | 10 lines Merged revisions 60797 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r60797 | file | 2007-04-08 20:59:29 -0400 (Sun, 08 Apr 2007) | 2 lines When calling a device that then forwards us elsewhere... we have to make our channels compatible if it is the only channel being dialed. (issue #9445 reported by marcelbarbulescu) ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@60799 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-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 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)