[svn-commits] markster: branch markster/usersconf r39105 -
/team/markster/usersconf/pbx/
svn-commits at lists.digium.com
svn-commits at lists.digium.com
Sun Aug 6 20:20:55 MST 2006
Author: markster
Date: Sun Aug 6 22:20:55 2006
New Revision: 39105
URL: http://svn.digium.com/view/asterisk?rev=39105&view=rev
Log:
Allow extensions to be turned off
Modified:
team/markster/usersconf/pbx/pbx_config.c
Modified: team/markster/usersconf/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/team/markster/usersconf/pbx/pbx_config.c?rev=39105&r1=39104&r2=39105&view=diff
==============================================================================
--- team/markster/usersconf/pbx/pbx_config.c (original)
+++ team/markster/usersconf/pbx/pbx_config.c Sun Aug 6 22:20:55 2006
@@ -1518,6 +1518,7 @@
struct ast_config *cfg;
char *cat, *chan;
char *zapchan;
+ char *hasexten;
char tmp[256];
char iface[256];
char zapcopy[256];
@@ -1547,6 +1548,9 @@
snprintf(tmp, sizeof(tmp), "IAX/%s", cat);
append_interface(iface, sizeof(iface), tmp);
}
+ hasexten = ast_config_option(cfg, cat, "hasexten");
+ if (hasexten && !ast_true(hasexten))
+ continue;
hasvoicemail = ast_true(ast_config_option(cfg, cat, "hasvoicemail"));
zapchan = ast_variable_retrieve(cfg, cat, "zapchan");
if (!zapchan)
More information about the svn-commits
mailing list