Add micro-http server and abstract manager interface, make snmp not die
[asterisk/asterisk.git] / channels / chan_zap.c
index 6858435..9ce7c5d 100644 (file)
@@ -10251,7 +10251,7 @@ static int action_zapshowchannels(struct mansession *s, struct message *m)
        while (tmp) {
                if (tmp->channel > 0) {
                        int alarm = get_alarms(tmp);
-                       ast_cli(s->fd,
+                       astman_append(s,
                                "Event: ZapShowChannels\r\n"
                                "Channel: %d\r\n"
                                "Signalling: %s\r\n"
@@ -10270,7 +10270,7 @@ static int action_zapshowchannels(struct mansession *s, struct message *m)
 
        ast_mutex_unlock(&iflock);
        
-       ast_cli(s->fd, 
+       astman_append(s, 
                "Event: ZapShowChannelsComplete\r\n"
                "%s"
                "\r\n",