summaryrefslogtreecommitdiff
path: root/res/res_parking.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-04-07 04:11:00 +0000
committerMark Spencer <markster@digium.com>2004-04-07 04:11:00 +0000
commit512583709ad2648690c319703bc79d014965e74b (patch)
tree361e24fc53d85039de6fd89d1ffdf4e5d52e955e /res/res_parking.c
parent13bca43aa8d950e7db8c301a2718a2fe290c401a (diff)
Fix double parking crash (bug #1302)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2645 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'res/res_parking.c')
-rwxr-xr-xres/res_parking.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/res_parking.c b/res/res_parking.c
index 2808348bd..1c9c11b7c 100755
--- a/res/res_parking.c
+++ b/res/res_parking.c
@@ -575,11 +575,11 @@ static int park_exec(struct ast_channel *chan, void *data)
were the person called. */
if (option_verbose > 2)
ast_verbose(VERBOSE_PREFIX_3 "Channel %s connected to parked call %d\n", chan->name, park);
- res = ast_bridge_call(peer, chan, 1, 1, 0);
+ res = ast_bridge_call(chan, peer, 1, 1, 0);
/* Simulate the PBX hanging up */
- if (res != AST_PBX_KEEPALIVE)
+ if (res != AST_PBX_NO_HANGUP_PEER)
ast_hangup(peer);
- return -1;
+ return res;
} else {
/* XXX Play a message XXX */
dres = ast_streamfile(chan, "pbx-invalidpark", chan->language);