diff options
author | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-12 23:08:37 +0000 |
---|---|---|
committer | jpeeler <jpeeler@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-06-12 23:08:37 +0000 |
commit | 9b82566639752973ec27f66f81e447ace7977804 (patch) | |
tree | 64f1ddd83a9b115ed25af81aaa2c38ed2a93baff /apps/app_parkandannounce.c | |
parent | 93b3e048b86dadaea70a806901b5a536e0acab28 (diff) |
(closes issue 0012193)
Reported by: davidw
Patch by: Corydon76, modified by me to work properly with ParkAndAnnounce app
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@122433 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_parkandannounce.c')
-rw-r--r-- | apps/app_parkandannounce.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |