[asterisk-commits] pabelanger: trunk r280555 - in /trunk: CHANGES channels/chan_iax2.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Jul 29 16:06:18 CDT 2010
Author: pabelanger
Date: Thu Jul 29 16:06:13 2010
New Revision: 280555
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=280555
Log:
PeerStatus now includes Address and Port
(closes issue #17730)
Reported by: jkroon
Patches:
iax2-peerstate-address.patch uploaded by jkroon (license 714)
Tested by: lmadsen
Modified:
trunk/CHANGES
trunk/channels/chan_iax2.c
Modified: trunk/CHANGES
URL: http://svnview.digium.com/svn/asterisk/trunk/CHANGES?view=diff&rev=280555&r1=280554&r2=280555
==============================================================================
--- trunk/CHANGES (original)
+++ trunk/CHANGES Thu Jul 29 16:06:13 2010
@@ -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 ----------------
Modified: trunk/channels/chan_iax2.c
URL: http://svnview.digium.com/svn/asterisk/trunk/channels/chan_iax2.c?view=diff&rev=280555&r1=280554&r2=280555
==============================================================================
--- trunk/channels/chan_iax2.c (original)
+++ trunk/channels/chan_iax2.c Thu Jul 29 16:06:13 2010
@@ -8585,7 +8585,7 @@
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)) {
More information about the asterisk-commits
mailing list