]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Add a SystemName field to all AMI events.
authorJason Parker <jparker@digium.com>
Tue, 2 Jul 2013 22:01:23 +0000 (22:01 +0000)
committerJason Parker <jparker@digium.com>
Tue, 2 Jul 2013 22:01:23 +0000 (22:01 +0000)
This only gets sent out if configured in asterisk.conf

(closes issue ASTERISK-21494)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@393508 65c4cc65-6c06-0410-ace0-fbb531ad65f3

CHANGES
main/manager.c

diff --git a/CHANGES b/CHANGES
index 04f7d807c299f3771340322816848d7773b7dd25..e6da22224e3228ff13d0c4c4deecee68b5585d5c 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -196,8 +196,8 @@ AMI (Asterisk Manager Interface)
    event, the various ChanVariable fields will contain a suffix that specifies
    which channel they correspond to.
 
-* The NewPeerAccount AMI event is no longer raised. The NewAccountCode AMI
-  event always conveys the AMI event for a particular channel.
+ * The NewPeerAccount AMI event is no longer raised. The NewAccountCode AMI
+   event always conveys the AMI event for a particular channel.
 
  * All "Reload" events have been consolidated into a single event type. This
    event will always contain a Module field specifying the name of the module
@@ -252,6 +252,8 @@ AMI (Asterisk Manager Interface)
 
  * "ChannelUpdate" events have been removed.
 
+ * AMI events now contain a SystemName field, if available.
+
 AGI (Asterisk Gateway Interface)
 ------------------
  * The manager event AGIExec has been split into AGIExecStart and AGIExecEnd.
index 2af7fc529ace55384a26bf48963f5521f6e641b3..02d61dad5f1cc1ff4884d0c1b95d66078ca564e3 100644 (file)
@@ -5962,6 +5962,11 @@ int __ast_manager_event_multichan(int category, const char *event, int chancount
                ast_str_append(&buf, 0,
                                "File: %s\r\nLine: %d\r\nFunc: %s\r\n", file, line, func);
        }
+       if (!ast_strlen_zero(ast_config_AST_SYSTEM_NAME)) {
+               ast_str_append(&buf, 0,
+                               "SystemName: %s\r\n",
+                                ast_config_AST_SYSTEM_NAME);
+       }
 
        va_start(ap, fmt);
        ast_str_append_va(&buf, 0, fmt, ap);