]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow parking lot hints and musicclass to be set.
authorLeif Madsen <leif@leifmadsen.com>
Fri, 27 May 2011 21:40:23 +0000 (21:40 +0000)
committerLeif Madsen <leif@leifmadsen.com>
Fri, 27 May 2011 21:40:23 +0000 (21:40 +0000)
(closes issue #19378)
Reported by: sboily_proformatique
Patches:
      pf_parkinghint_music_fix uploaded by sboily proformatique (license 206)
Tested by: russell

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@321333 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/features.c

index 86e62c541bf469a0b4ff215ed88870f3520a0705..a5946303cc9cc1faa8677364523e2898d4023905 100644 (file)
@@ -4737,6 +4737,10 @@ static struct ast_parkinglot *build_parkinglot(char *name, struct ast_variable *
                        ast_copy_string(parkinglot->parking_con, confvar->value, sizeof(parkinglot->parking_con));
                } else if (!strcasecmp(confvar->name, "parkext")) {
                        ast_copy_string(parkinglot->parkext, confvar->value, sizeof(parkinglot->parkext));
+               } else if (!strcasecmp(confvar->name, "parkinghints")) {
+                       parkinglot->parkaddhints = ast_true(confvar->value);
+               } else if (!strcasecmp(confvar->name, "parkedmusicclass")) {
+                       ast_copy_string(parkinglot->mohclass, confvar->value, sizeof(parkinglot->mohclass));
                } else if (!strcasecmp(confvar->name, "parkingtime")) {
                        if ((sscanf(confvar->value, "%30d", &parkinglot->parkingtime) != 1) || (parkinglot->parkingtime < 1)) {
                                ast_log(LOG_WARNING, "%s is not a valid parkingtime\n", confvar->value);