aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-17 12:37:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-01-17 12:37:55 +0000
commitc78d9df51eade074509d76f119780a8fcee35fc9 (patch)
tree34bc6eb8b0c1666b2821cf4e797a9af81b2477e0 /apps
parent8f16ca10695470c3283716b19816baf7d9f21746 (diff)
Merge hold patch (bug #1840)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4823 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_dial.c10
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 */