https://origsvn.digium.com/svn/asterisk/trunk
........
r251679 | jpeeler | 2010-03-10 14:51:23 -0600 (Wed, 10 Mar 2010) | 13 lines
Fix ParkAndAnnounce not respecting parking options.
The patch ensures that if a peer does not exist, parking settings are read from
the channel. A unit test has been written to ensure proper operation for both
standard parking and parking using masquerades.
(closes issue #16592)
Reported by: mwyres
Patches:
bug_16592.diff uploaded by snuffy (license 35)
Review: https://reviewboard.asterisk.org/r/539/
........
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@251684
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
if (peer)
parkinglotname = findparkinglotname(peer);
+ else /* peer was NULL, check chan (ParkAndAnnounce / res_agi) */
+ parkinglotname = findparkinglotname(chan);
if (parkinglotname) {
if (option_debug)
return 0;
}
-/* Park call via masquraded channel */
+/* Park call via masqueraded channel */
int ast_masq_park_call(struct ast_channel *rchan, struct ast_channel *peer, int timeout, int *extout)
{
return masq_park_call(rchan, peer, timeout, extout, 0, NULL);