diff options
author | Jeff Peeler <jpeeler@digium.com> | 2008-10-06 22:08:40 +0000 |
---|---|---|
committer | Jeff Peeler <jpeeler@digium.com> | 2008-10-06 22:08:40 +0000 |
commit | abc88c1d61ecdb0b9577dd9b1755fedc120a1906 (patch) | |
tree | 94bf7a0df87e4ef961668d39c33c0d10337dc853 /main | |
parent | 7d8d1f50bb77bec2276dfa809b39cf0c3ab3e9f7 (diff) |
fix some comment placement
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@146877 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main')
-rw-r--r-- | main/features.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/main/features.c b/main/features.c index 984e9610f..1252776e0 100644 --- a/main/features.c +++ b/main/features.c @@ -627,10 +627,11 @@ static int ast_park_call_full(struct ast_channel *chan, struct ast_channel *peer con = ast_context_find_or_create(NULL, NULL, parkinglot->parking_con, registrar); if (!con) /* Still no context? Bad */ ast_log(LOG_ERROR, "Parking context '%s' does not exist and unable to create\n", parkinglot->parking_con); - /* Tell the peer channel the number of the parking space */ - if (peer && !ast_test_flag(args, AST_PARK_OPT_SILENCE) && (ast_strlen_zero(args->orig_chan_name) || !strcasecmp(peer->name, args->orig_chan_name))) { /* Only say number if it's a number and the channel hasn't been masqueraded away */ + /* Only say number if it's a number and the channel hasn't been masqueraded away */ + if (peer && !ast_test_flag(args, AST_PARK_OPT_SILENCE) && (ast_strlen_zero(args->orig_chan_name) || !strcasecmp(peer->name, args->orig_chan_name))) { /* If a channel is masqueraded into peer while playing back the parking slot number do not continue playing it back. This is the case if an attended transfer occurs. */ ast_set_flag(peer, AST_FLAG_MASQ_NOSTREAM); + /* Tell the peer channel the number of the parking space */ ast_say_digits(peer, pu->parkingnum, "", peer->language); ast_clear_flag(peer, AST_FLAG_MASQ_NOSTREAM); } |