[asterisk-commits] russell: branch 1.4 r100626 - /branches/1.4/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jan 28 12:26:32 CST 2008
Author: russell
Date: Mon Jan 28 12:26:31 2008
New Revision: 100626
URL: http://svn.digium.com/view/asterisk?view=rev&rev=100626
Log:
Fix a crash in ast_masq_park_call()
(issue #11342)
Reported by: DEA
Patches:
res_features-park.txt uploaded by DEA (license 3)
Modified:
branches/1.4/res/res_features.c
Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=100626&r1=100625&r2=100626
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Mon Jan 28 12:26:31 2008
@@ -456,6 +456,7 @@
{
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))) {
@@ -476,7 +477,10 @@
if (f)
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;
}
More information about the asterisk-commits
mailing list