add some goodies to mod_fifo

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8031 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-04-04 21:53:45 +00:00
parent 777c8c8fe7
commit d4e5a7e743
1 changed files with 20 additions and 0 deletions

View File

@ -407,6 +407,26 @@ SWITCH_STANDARD_APP(fifo_function)
moh = switch_channel_get_variable(channel, "fifo_music");
announce = switch_channel_get_variable(channel, "fifo_announce");
if (consumer) {
if (argc > 3) {
announce = argv[3];
}
if (argc > 4) {
moh = argv[4];
}
} else {
if (argc > 2) {
announce = argv[2];
}
if (argc > 3) {
moh = argv[3];
}
}
check_string(announce);
check_string(moh);