diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-19 20:44:39 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2006-07-19 20:44:39 +0000 |
commit | 6d0742fc1657017a3e69558b6192399b2f8469e6 (patch) | |
tree | 3c36781db3a5a7a08967cbe8d83acb5d82e581cb /pbx.c | |
parent | 54e1f06c463bf72fa730f9be042d62f4ee2c4593 (diff) |
merge Russell's 'hold_handling' branch, finally implementing music-on-hold handling the way it was decided at AstriDevCon Europe 2006 (and the way people really want it to be)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@37988 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx.c')
-rw-r--r-- | pbx.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -5170,7 +5170,7 @@ static int pbx_builtin_waitexten(struct ast_channel *chan, void *data) ast_app_parse_options(waitexten_opts, &flags, opts, args.options); if (ast_test_flag(&flags, WAITEXTEN_MOH)) - ast_moh_start(chan, opts[0]); + ast_indicate_data(chan, AST_CONTROL_HOLD, opts[0], strlen(opts[0])); /* Wait for "n" seconds */ if (args.timeout && (ms = atof(args.timeout)) > 0) @@ -5195,7 +5195,7 @@ static int pbx_builtin_waitexten(struct ast_channel *chan, void *data) } if (ast_test_flag(&flags, WAITEXTEN_MOH)) - ast_moh_stop(chan); + ast_indicate(chan, AST_CONTROL_UNHOLD); return res; } |