From a2ca0997a691af32d67aa15a8b3ca70376fb0960 Mon Sep 17 00:00:00 2001 From: Leif Madsen Date: Fri, 27 May 2011 21:40:52 +0000 Subject: [PATCH] Merged revisions 321333 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r321333 | lmadsen | 2011-05-27 17:40:23 -0400 (Fri, 27 May 2011) | 7 lines Allow parking lot hints and musicclass to be set. (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/trunk@321334 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/features.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main/features.c b/main/features.c index f59054683c..81421f17b8 100644 --- a/main/features.c +++ b/main/features.c @@ -4787,6 +4787,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);