Allow parkedmusicclass to be settable for non-default parking lots.
authorJeff Peeler <jpeeler@digium.com>
Wed, 9 Feb 2011 20:11:11 +0000 (20:11 +0000)
committerJeff Peeler <jpeeler@digium.com>
Wed, 9 Feb 2011 20:11:11 +0000 (20:11 +0000)
(closes issue #17946)
Reported by: bluecrow76
Patches:
      asterisk-1.8.0-beta4-multipark-fixes-2010SEP02.diff

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

CHANGES
main/features.c

diff --git a/CHANGES b/CHANGES
index b3731d6..a5aa0f0 100644 (file)
--- a/CHANGES
+++ b/CHANGES
 --- Functionality changes from Asterisk 1.8 to Asterisk 1.10 -----------------
 ------------------------------------------------------------------------------
 
+Parking
+-------
+ * parkedmusicclass can now be set for non-default parking lots.
+
 Asterisk Manager Interface
 --------------------------
  * PeerStatus now includes Address and Port.
index f9e0248..98bb8c4 100644 (file)
@@ -4701,6 +4701,8 @@ static struct ast_parkinglot *build_parkinglot(char *name, struct ast_variable *
                        } else if (!strcasecmp(confvar->value, "callee")) {
                                parkinglot->parkedcallrecording = AST_FEATURE_FLAG_BYCALLEE;
                        }
+               } else if (!strcasecmp(confvar->name, "parkedmusicclass")) {
+                       ast_copy_string(parkinglot->mohclass, confvar->value, sizeof(parkinglot->mohclass));
                }
                confvar = confvar->next;
        }