From: Russell Bryant Date: Mon, 28 Jan 2008 18:41:23 +0000 (+0000) Subject: Merge rev 100626 from Asterisk 1.4. The svnmerge of this commit was a NoOp, since X-Git-Tag: 1.6.0-beta2~2^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf72e1adbc48e46feba5ff638f11f4703f92b06;p=thirdparty%2Fasterisk.git Merge rev 100626 from Asterisk 1.4. The svnmerge of this commit was a NoOp, since res_features doesn't exist in trunk. Thanks to qwell for pointing it out! git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@100631 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/features.c b/main/features.c index 0fd1a567cf..93a3fe41ba 100644 --- a/main/features.c +++ b/main/features.c @@ -525,6 +525,7 @@ int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, int { struct ast_channel *chan; struct ast_frame *f; + char *orig_chan_name = NULL; /* Make a new, fake channel that we'll use to masquerade in the real one */ if (!(chan = ast_channel_alloc(0, AST_STATE_DOWN, 0, 0, rchan->accountcode, rchan->exten, rchan->context, rchan->amaflags, "Parked/%s",rchan->name))) { @@ -544,7 +545,10 @@ int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, int if ((f = ast_read(chan))) ast_frfree(f); - ast_park_call(chan, peer, timeout, extout); + orig_chan_name = ast_strdupa(chan->name); + + park_call_full(chan, peer, timeout, extout, orig_chan_name); + return 0; }