From: BJ Weschke Date: Fri, 16 Jun 2006 12:18:18 +0000 (+0000) Subject: Don't ast_request a channel structure twice when a call is being forwarded. (#7362... X-Git-Tag: 1.4.0-beta1~877 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e8a142c85b154673e5346a0bcb5d3dfe5547f24;p=thirdparty%2Fasterisk.git Don't ast_request a channel structure twice when a call is being forwarded. (#7362 - twlison / vechers confirming fix) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@34458 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_dial.c b/apps/app_dial.c index a5afc51276..25fa15aba0 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -481,8 +481,6 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct dial_l if (o->forwards < AST_MAX_FORWARDS) { if (option_verbose > 2) ast_verbose(VERBOSE_PREFIX_3 "Now forwarding %s to '%s/%s' (thanks to %s)\n", in->name, tech, stuff, c->name); - /* Setup parameters */ - c = o->chan = ast_request(tech, in->nativeformats, stuff, &cause); /* If we have been told to ignore forwards, just set this channel to null and continue processing extensions normally */ if (ast_test_flag(peerflags, OPT_IGNORE_FORWARDING)) { if (option_verbose > 2)