be answered before the sound is played.</para>
<note><para>Not all channel types support playing messages while still on hook.</para></note>
</option>
+ <option name="say">
+ <para>Play using the say.conf file.</para>
+ </option>
+ <option name="mix">
+ <para>Play using a mix of filename and the say.conf file.</para>
+ </option>
</optionlist>
</parameter>
</syntax>
char *tmp;
int option_skip=0;
int option_say=0;
+ int option_mix=0;
int option_noanswer = 0;
AST_DECLARE_APP_ARGS(args,
option_skip = 1;
if (strcasestr(args.options, "say"))
option_say = 1;
+ if (strcasestr(args.options, "mix"))
+ option_mix = 1;
if (strcasestr(args.options, "noanswer"))
option_noanswer = 1;
}
while (!res && (front = strsep(&back, "&"))) {
if (option_say)
res = say_full(chan, front, "", ast_channel_language(chan), NULL, -1, -1);
+ else if (option_mix){
+ /* Check if it is in say format but not remote audio file */
+ if (strcasestr(front, ":") && !strcasestr(front, "://"))
+ res = say_full(chan, front, "", ast_channel_language(chan), NULL, -1, -1);
+ else
+ res = ast_streamfile(chan, front, ast_channel_language(chan));
+ }
else
res = ast_streamfile(chan, front, ast_channel_language(chan));
if (!res) {
--- /dev/null
+Subject: app_playback
+Subject: apps
+
+A new option 'mix' is added to the Playback application that
+will play by filename and say.conf. It will look on the format of the
+name, if it is like say format it will play with say.conf if not it
+will play the file name.
\ No newline at end of file