aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-02 19:01:16 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-07-02 19:01:16 +0000
commitc173ac08242e1fb3ae1278ffc7891658b771f7ad (patch)
tree3a84560f9ab967c01590fe7d9c650140119a9d9f /res
parenteb2bf0befe04b4c92d46958c9f30b449711962c2 (diff)
Add a note that the AGI commands array is not handled in a thread-safe way
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72930 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_agi.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/res/res_agi.c b/res/res_agi.c
index 470d0599b..cd7e0a928 100644
--- a/res/res_agi.c
+++ b/res/res_agi.c
@@ -1603,6 +1603,13 @@ static char usage_noop[] =
" Usage: NoOp\n"
" Does nothing.\n";
+/*!
+ * \brief AGI commands
+ *
+ * \todo XXX This array is not handled in a thread safe way. There is no
+ * synchronization done at all between the agi register and unregister functions
+ * and the rest of this module which uses the entries here.
+ */
static agi_command commands[MAX_COMMANDS] = {
{ { "answer", NULL }, handle_answer, "Answer channel", usage_answer },
{ { "channel", "status", NULL }, handle_channelstatus, "Returns status of the connected channel", usage_channelstatus },