[asterisk-commits] mmichelson: branch mmichelson/agent_experiment r376371 - /team/mmichelson/age...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Nov 15 18:26:15 CST 2012
Author: mmichelson
Date: Thu Nov 15 18:26:12 2012
New Revision: 376371
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=376371
Log:
Fix crash on startup due to configuration parsing.
agent_cfg structs were not getting allocated so trying to
set a string field was crashing. Problem is that the config framework
only allocates ACO_ITEMs. I had specified ACO_GLOBAL. Oops.
Modified:
team/mmichelson/agent_experiment/channels/chan_agent2.c
Modified: team/mmichelson/agent_experiment/channels/chan_agent2.c
URL: http://svnview.digium.com/svn/asterisk/team/mmichelson/agent_experiment/channels/chan_agent2.c?view=diff&rev=376371&r1=376370&r2=376371
==============================================================================
--- team/mmichelson/agent_experiment/channels/chan_agent2.c (original)
+++ team/mmichelson/agent_experiment/channels/chan_agent2.c Thu Nov 15 18:26:12 2012
@@ -112,7 +112,7 @@
}
static struct aco_type agent_option = {
- .type = ACO_GLOBAL,
+ .type = ACO_ITEM,
.category_match = ACO_BLACKLIST,
.category = "^(general|agents)$",
.item_alloc = agent_cfg_alloc,
More information about the asterisk-commits
mailing list