aboutsummaryrefslogtreecommitdiffstats
path: root/res/res_features.c
diff options
context:
space:
mode:
authorbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-03 21:39:24 +0000
committerbweschke <bweschke@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-03 21:39:24 +0000
commitefada3b700940dc9b7482eb71205378942a4282d (patch)
tree6dc9cf8fa500c777710f092ab7ea13c40e2b6a2b /res/res_features.c
parent319475e9c3e8b48f89f55fdc545e8a45e9a20c42 (diff)
Correct call parking behavior when there is no courtesytone specified. #6306 (murf)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@24605 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_features.c')
-rw-r--r--res/res_features.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c
index 273f311cc..b4a284bae 100644
--- a/res/res_features.c
+++ b/res/res_features.c
@@ -1662,8 +1662,11 @@ static int park_exec(struct ast_channel *chan, void *data)
ast_hangup(peer);
return -1;
}
+ } else {
+ ast_moh_stop(peer);
+ ast_indicate(peer, AST_CONTROL_UNHOLD);
}
-
+
res = ast_channel_make_compatible(chan, peer);
if (res < 0) {
ast_log(LOG_WARNING, "Could not make channels %s and %s compatible for bridge\n", chan->name, peer->name);