PeerStatus now includes Address and Port
authorPaul Belanger <paul.belanger@polybeacon.com>
Thu, 29 Jul 2010 21:06:13 +0000 (21:06 +0000)
committerPaul Belanger <paul.belanger@polybeacon.com>
Thu, 29 Jul 2010 21:06:13 +0000 (21:06 +0000)
(closes issue #17730)
Reported by: jkroon
Patches:
      iax2-peerstate-address.patch uploaded by jkroon (license 714)
Tested by: lmadsen

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

CHANGES
channels/chan_iax2.c

diff --git a/CHANGES b/CHANGES
index 1496f6c..d14ba07 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -12,7 +12,9 @@
 --- Functionality changes from Asterisk 1.8 to Asterisk 1.10 -----------------
 ------------------------------------------------------------------------------
 
-
+Asterisk Manager Interface
+--------------------------
+ * PeerStatus now includes Address and Port.
 
 ------------------------------------------------------------------------------
 --- Functionality changes from Asterisk 1.6.2 to Asterisk 1.8 ----------------
index 5bb6b2c..af4cb72 100644 (file)
@@ -8585,7 +8585,7 @@ static int update_registry(struct sockaddr_in *sin, int callno, char *devtype, i
                        ast_db_put("IAX/Registry", p->name, data);
                        ast_verb(3, "Registered IAX2 '%s' (%s) at %s:%d\n", p->name,
                                            ast_test_flag(&iaxs[callno]->state, IAX_STATE_AUTHENTICATED) ? "AUTHENTICATED" : "UNAUTHENTICATED", ast_inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
-                       manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "ChannelType: IAX2\r\nPeer: IAX2/%s\r\nPeerStatus: Registered\r\n", p->name);
+                       manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "ChannelType: IAX2\r\nPeer: IAX2/%s\r\nPeerStatus: Registered\r\nAddress: %s\r\nPost: %d\r\n", p->name, ast_inet_ntoa(sin->sin_addr), ntohs(sin->sin_port));
                        register_peer_exten(p, 1);
                        ast_devstate_changed(AST_DEVICE_UNKNOWN, "IAX2/%s", p->name); /* Activate notification */
                } else if (!ast_test_flag64(p, IAX_TEMPONLY)) {