[asterisk-commits] branch oej/multiparking r16427 - in
/team/oej/multiparking: configs/ res/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Mar 29 21:41:58 MST 2006
Author: oej
Date: Wed Mar 29 22:41:57 2006
New Revision: 16427
URL: http://svn.digium.com/view/asterisk?rev=16427&view=rev
Log:
Use parkinglot_ as start for configuration section (a la macro_)
Modified:
team/oej/multiparking/configs/features.conf.sample
team/oej/multiparking/res/res_features.c
Modified: team/oej/multiparking/configs/features.conf.sample
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/configs/features.conf.sample?rev=16427&r1=16426&r2=16427&view=diff
==============================================================================
--- team/oej/multiparking/configs/features.conf.sample (original)
+++ team/oej/multiparking/configs/features.conf.sample Wed Mar 29 22:41:57 2006
@@ -44,10 +44,10 @@
;*** Define another parking lot
;
-; To use it set the channel variable PARKINGLOT
-; either in the dialplan or with the setvar option in the channel configuration
+; You can set parkinglot with the CHANNEL dialplan function
+; or configure it in the device configuration in the channel
;
-;[edvina]
+;[parkinglot_edvina]
;context => edvinapark
;parkpos => 800-850
;findslot => next
Modified: team/oej/multiparking/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/oej/multiparking/res/res_features.c?rev=16427&r1=16426&r2=16427&view=diff
==============================================================================
--- team/oej/multiparking/res/res_features.c (original)
+++ team/oej/multiparking/res/res_features.c Wed Mar 29 22:41:57 2006
@@ -2450,7 +2450,9 @@
while ((section = ast_category_browse(cfg, section))) {
if (option_debug)
ast_log(LOG_DEBUG, "*** Found section %s\n", section);
- if (!strcasecmp(section, "general") || !strcasecmp(section, "featuremap") || !strcasecmp(section, "applicationmap") )
+
+ /* Parkinglots start with "parkinglot_" */
+ if (strncasecmp(section, "parkinglot_", strlen("parkinglot_"))
continue;
if (option_debug)
ast_log(LOG_DEBUG, "Found configuration section %s, assume parking context\n", section);
More information about the asterisk-commits
mailing list