diff options
author | Mark Spencer <markster@digium.com> | 2005-01-17 12:37:55 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2005-01-17 12:37:55 +0000 |
commit | 840f035827cd7d75d1601c29d731d594afe330d4 (patch) | |
tree | 34bc6eb8b0c1666b2821cf4e797a9af81b2477e0 /apps | |
parent | 441c545ccc7d81e9d5162e7325f017b1fe5efe97 (diff) |
Merge hold patch (bug #1840)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rwxr-xr-x | apps/app_dial.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 2828262b7..16323881c 100755 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -393,6 +393,16 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu if (!ast_test_flag(outgoing, DIAL_RINGBACKONLY)) ast_indicate(in, AST_CONTROL_PROGRESS); break; + case AST_CONTROL_HOLD: + if (option_verbose > 2) + ast_verbose(VERBOSE_PREFIX_3 "Call on %s placed on hold\n", o->chan->name); + ast_indicate(in, AST_CONTROL_HOLD); + break; + case AST_CONTROL_UNHOLD: + if (option_verbose > 2) + ast_verbose(VERBOSE_PREFIX_3 "Call on %s left from hold\n", o->chan->name); + ast_indicate(in, AST_CONTROL_UNHOLD); + break; case AST_CONTROL_OFFHOOK: case AST_CONTROL_FLASH: /* Ignore going off hook and flash */ |