From: Leif Madsen Date: Fri, 27 May 2011 21:40:23 +0000 (+0000) Subject: Allow parking lot hints and musicclass to be set. X-Git-Tag: 1.8.5-rc1~11^2~70 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96d69b7aa858525ca4b48087f95a0a918e79dcca;p=thirdparty%2Fasterisk.git 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/branches/1.8@321333 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/features.c b/main/features.c index 86e62c541b..a5946303cc 100644 --- a/main/features.c +++ b/main/features.c @@ -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);