[asterisk-commits] twilson: branch 1.4 r169581 - /branches/1.4/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jan 20 17:49:34 CST 2009
Author: twilson
Date: Tue Jan 20 17:49:34 2009
New Revision: 169581
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=169581
Log:
One-touch parking was calling back the wrong channel on timeout
Modified:
branches/1.4/res/res_features.c
Modified: branches/1.4/res/res_features.c
URL: http://svn.digium.com/svn-view/asterisk/branches/1.4/res/res_features.c?view=diff&rev=169581&r1=169580&r2=169581
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Tue Jan 20 17:49:34 2009
@@ -568,10 +568,12 @@
struct ast_channel *parkee;
int res = 0;
struct ast_module_user *u;
+ const char *orig_chan_name;
u = ast_module_user_add(chan);
set_peers(&parker, &parkee, peer, chan, sense);
+ orig_chan_name = ast_strdupa(parker->name);
/* we used to set chan's exten and priority to "s" and 1
here, but this generates (in some cases) an invalid
extension, and if "s" exists, could errantly
@@ -586,7 +588,7 @@
res = ast_safe_sleep(chan, 1000);
if (!res) { /* one direction used to call park_call.... */
- masq_park_call_announce(parkee, parker, 0, NULL, NULL);
+ masq_park_call_announce(parkee, parker, 0, NULL, orig_chan_name);
res = 0; /* PBX should hangup zombie channel */
}
More information about the asterisk-commits
mailing list