dect
/
asterisk
Archived
13
0
Fork 0

Add documentation for MOH realtime fields

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@277452 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2010-07-16 20:25:11 +00:00
parent 0f0f08947b
commit 5ab35caeaa
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,19 @@
CREATE TABLE musiconhold (
-- Name of the MOH class
name char(80) not null primary key,
-- One of 'custom', 'files', 'mp3nb', 'quietmp3nb', or 'quietmp3'
mode char(80) null,
-- If 'custom', directory is ignored. Otherwise, specifies a directory with files to play or a stream URL
directory char(255) null,
-- If 'custom', application will be invoked to provide MOH. Ignored otherwise.
application char(255) null,
-- Digit associated with this MOH class, when MOH is selectable by the caller.
digit char(1) null,
-- One of 'random' or 'alpha', to determine how files are played. If NULL, files are played in directory order
sort char(10) null,
-- In custom mode, the format of the audio delivered. Ignored otherwise. Defaults to SLIN.
format char(10) null,
-- When this record was last modified
stamp timestamp
);

View File

@ -1097,9 +1097,12 @@ static int init_files_class(struct mohclass *class)
return -1;
}
#if 0
/* XXX This isn't correct. Args is an application for custom mode. XXX */
if (strchr(class->args, 'r')) {
ast_set_flag(class, MOH_RANDOMIZE);
}
#endif
return 0;
}