mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +00:00
Adding support for the "automixmonitor" dial and queue options.
This works in much the same way as the automonitor, except that instead of using the monitor app, it uses the mixmonitor app. By providing an 'x' or 'X' as a dial or queue option, a DTMF sequence may be entered (as defined in features.conf) to start the one-touch mixmonitor. This patch also introduces some new API calls to the audiohooks code for searching for an audiohook by type and for searching for a running audiohook by type. Big thanks to joetester for writing the initial patch, testing it and patiently waiting for it to be committed. (closes issue #10185, reported and patched by xmarksthespot) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@90388 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -152,6 +152,9 @@ static char *descrip =
|
||||
" the DTMF sequence defined for call parking in features.conf.\n"
|
||||
" 'K' -- Allow the calling party to enable parking of the call by sending\n"
|
||||
" the DTMF sequence defined for call parking in features.conf.\n"
|
||||
" 'x' -- allow the called user to write the conversation to disk via MixMonitor\n"
|
||||
" 'X' -- allow the calling user to write the conversation to disk via MixMonitor\n"
|
||||
|
||||
" In addition to transferring the call, a call may be parked and then picked\n"
|
||||
"up by another user.\n"
|
||||
" The optional URL will be sent to the called party if the channel supports\n"
|
||||
@@ -2775,6 +2778,13 @@ static int try_calling(struct queue_ent *qe, const char *options, char *announce
|
||||
case 'i':
|
||||
forwardsallowed = 0;
|
||||
break;
|
||||
case 'x':
|
||||
ast_set_flag(&(bridge_config.features_callee), AST_FEATURE_AUTOMIXMON);
|
||||
break;
|
||||
case 'X':
|
||||
ast_set_flag(&(bridge_config.features_caller), AST_FEATURE_AUTOMIXMON);
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
/* Hold the lock while we setup the outgoing calls */
|
||||
|
Reference in New Issue
Block a user