[asterisk-commits] lmadsen: trunk r321334 - in /trunk: ./ main/features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri May 27 16:40:57 CDT 2011
Author: lmadsen
Date: Fri May 27 16:40:52 2011
New Revision: 321334
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=321334
Log:
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
........
Modified:
trunk/ (props changed)
trunk/main/features.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.
Modified: trunk/main/features.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/features.c?view=diff&rev=321334&r1=321333&r2=321334
==============================================================================
--- trunk/main/features.c (original)
+++ trunk/main/features.c Fri May 27 16:40:52 2011
@@ -4787,6 +4787,10 @@
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);
More information about the asterisk-commits
mailing list