mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-07 10:28:32 +00:00
Merge hold patch (bug #1840)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4823 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user