From 84d0404ed5424a8b21b8b456579b7641e8ba8911 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Thu, 12 Jun 2008 23:08:37 +0000 Subject: (closes issue 0012193) Reported by: davidw Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@122433 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_parkandannounce.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'apps/app_parkandannounce.c') diff --git a/apps/app_parkandannounce.c b/apps/app_parkandannounce.c index 45740d901..ccd3b36e8 100644 --- a/apps/app_parkandannounce.c +++ b/apps/app_parkandannounce.c @@ -113,7 +113,9 @@ static int parkandannounce_exec(struct ast_channel *chan, void *data) /* we are using masq_park here to protect * from touching the channel once we park it. If the channel comes out of timeout before we are done announcing and the channel is messed with, Kablooeee. So we use Masq to prevent this. */ - ast_masq_park_call(chan, NULL, timeout, &lot); + res = ast_masq_park_call(chan, NULL, timeout, &lot); + if (res == -1) + return res; ast_verb(3, "Call Parking Called, lot: %d, timeout: %d, context: %s\n", lot, timeout, args.return_context); -- cgit v1.2.3