[Asterisk-cvs] asterisk/channels chan_iax2.c,1.220,1.221

markster at lists.digium.com markster at lists.digium.com
Sun Nov 28 22:25:44 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv24496/channels

Modified Files:
	chan_iax2.c 
Log Message:
Don't print silly unregistered messages on realtime


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.220
retrieving revision 1.221
diff -u -d -r1.220 -r1.221
--- chan_iax2.c	29 Nov 2004 03:19:55 -0000	1.220
+++ chan_iax2.c	29 Nov 2004 03:24:35 -0000	1.221
@@ -4470,7 +4470,7 @@
 					iaxs[callno]->state & IAX_STATE_AUTHENTICATED ? "AUTHENTICATED" : "UNAUTHENTICATED", ast_inet_ntoa(iabuf, sizeof(iabuf), sin->sin_addr), ntohs(sin->sin_port));
 				manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "Peer: IAX2/%s\r\nPeerStatus: Registered\r\n", p->name);+                               manager_event(EVENT_FLAG_SYSTEM, "PeerStatus", "Peer: IAX2/%s\r\nPeerStatus: Registered\r\n", p->name);
 				register_peer_exten(p, 1);
-			} else {
+			} else if (!p->temponly) {
 				if  (option_verbose > 2)
 				ast_verbose(VERBOSE_PREFIX_3 "Unregistered '%s' (%s)\n", p->name, 
 					iaxs[callno]->state & IAX_STATE_AUTHENTICATED ? "AUTHENTICATED" : "UNAUTHENTICATED");




More information about the svn-commits mailing list