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 */
 

_______________________________________________
Asterisk-Cvs mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-cvs

Reply via email to