[Asterisk-cvs] asterisk/channels chan_iax2.c,1.304,1.305

kpfleming at lists.digium.com kpfleming at lists.digium.com
Thu Jun 9 15:32:05 CDT 2005


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

Modified Files:
	chan_iax2.c 
Log Message:
ensure CLI commands produce proper terminating output when used with manager interface (bug #4497)


Index: chan_iax2.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_iax2.c,v
retrieving revision 1.304
retrieving revision 1.305
diff -u -d -r1.304 -r1.305
--- chan_iax2.c	6 Jun 2005 22:12:19 -0000	1.304
+++ chan_iax2.c	9 Jun 2005 19:34:12 -0000	1.305
@@ -4222,8 +4222,10 @@
 {
 	char *a[] = { "iax2", "show", "users" };
 	int ret;
+	ast_mutex_lock(&s->lock);
 	ret = iax2_show_peers( s->fd, 3, a );
-	ast_cli( s->fd, "\r\n" );
+	ast_cli( s->fd, "\r\n\r\n" );
+	ast_mutex_unlock(&s->lock);
 	return ret;
 } /* /JDG */
 




More information about the svn-commits mailing list