[asterisk-commits] tilghman: branch 1.4 r235821 - /branches/1.4/res/res_features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 21 10:45:07 CST 2009


Author: tilghman
Date: Mon Dec 21 10:45:03 2009
New Revision: 235821

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=235821
Log:
Send parking lot announcement to the channel which parked the call, not the park-ee.
(closes issue #16234)
 Reported by: yeshuawatso
 Patches: 
       20091210__issue16234.diff.txt uploaded by tilghman (license 14)
       20091221__issue16234__1.4.diff.txt uploaded by tilghman (license 14)
 Tested by: yeshuawatso

Modified:
    branches/1.4/res/res_features.c

Modified: branches/1.4/res/res_features.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.4/res/res_features.c?view=diff&rev=235821&r1=235820&r2=235821
==============================================================================
--- branches/1.4/res/res_features.c (original)
+++ branches/1.4/res/res_features.c Mon Dec 21 10:45:03 2009
@@ -591,7 +591,8 @@
 	}
 
 	if (!play_announcement || !orig_chan_name) {
-		orig_chan_name = ast_strdupa(chan->name);
+		/* chan is the channel being parked, peer is the effective park-er */
+		orig_chan_name = ast_strdupa(peer->name);
 	}
 
 	park_status = park_call_full(chan, peer, timeout, extout, orig_chan_name, pu);




More information about the asterisk-commits mailing list