Add micro-http server and abstract manager interface, make snmp not die
[asterisk/asterisk.git] / res / res_features.c
index 0787ec8..68675bd 100644 (file)
@@ -1897,7 +1897,7 @@ static int manager_parking_status( struct mansession *s, struct message *m )
 
         cur=parkinglot;
         while(cur) {
-                       ast_cli(s->fd, "Event: ParkedCall\r\n"
+                       astman_append(s, "Event: ParkedCall\r\n"
                        "Exten: %d\r\n"
                        "Channel: %s\r\n"
                        "From: %s\r\n"
@@ -1915,7 +1915,7 @@ static int manager_parking_status( struct mansession *s, struct message *m )
             cur = cur->next;
         }
 
-       ast_cli(s->fd,
+       astman_append(s,
        "Event: ParkedCallsComplete\r\n"
        "%s"
        "\r\n",idText);