Include ActionID in all events that are responsed to AMI Action SIPShowRegistry
authorOlle Johansson <oej@edvina.net>
Thu, 10 Sep 2009 12:06:55 +0000 (12:06 +0000)
committerOlle Johansson <oej@edvina.net>
Thu, 10 Sep 2009 12:06:55 +0000 (12:06 +0000)
(closes issue #15868)
Reported by: nic_bellamy
Patches:
      manager_SIPshowregistry_actionid.patch uploaded by nic bellamy (license 299)

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

channels/chan_sip.c

index 3ed2e06..5f90105 100644 (file)
@@ -14796,6 +14796,7 @@ static int manager_show_registry(struct mansession *s, const struct message *m)
                ASTOBJ_RDLOCK(iterator);
                astman_append(s,
                        "Event: RegistryEntry\r\n"
+                       "%s"
                        "Host: %s\r\n"
                        "Port: %d\r\n"
                        "Username: %s\r\n"
@@ -14803,7 +14804,7 @@ static int manager_show_registry(struct mansession *s, const struct message *m)
                        "Refresh: %d\r\n"
                        "State: %s\r\n"
                        "RegistrationTime: %ld\r\n"
-                       "\r\n", iterator->hostname, iterator->portno ? iterator->portno : STANDARD_SIP_PORT,
+                       "\r\n", idtext, iterator->hostname, iterator->portno ? iterator->portno : STANDARD_SIP_PORT,
                                          iterator->username, iterator->regdomain, iterator->refresh, regstate2str(iterator->regstate), (long) iterator->regtime.tv_sec);
                ASTOBJ_UNLOCK(iterator);
                total++;