Hello List,<div>So I've been doing some testing with the mi_fifo and found that it appears to be really fragile. Here's what I've done:</div><div><br></div><div>mkfifo /tmp/my_fifo</div><div>cat /tmp/my_fifo&</div>
<div>echo -e ":address_dump:my_fifo\n\n" > /tmp/opensips_fifo</div><div><div>*returns*</div><div>200 OK</div><div> 48 <1.2.3.4,2, 0, 0, NULL, NULL></div></div><div>** cat process ends</div><div>cat /tmp/my_fifo&</div>
<div><meta charset="utf-8"><div>echo -e ":address_dump:my_fifo\n\n" > /tmp/opensips_fifo</div><div>** nothing</div><div><br></div><div>At this point, I can't make the fifo work again until I restart opensips. If I detach from the fifo (kill the cat, so to speak), and reattach it doesn't work. Nothing seems to make it responsive again. At first I though something was horribly broken, but then I removed one of my \n from the fifo command and now it works "as expected". Two new-lines shouldn't break the fifo, right?</div>
<div><br></div><div>Thanks!</div><div>-Brett</div><div><br></div><div><br></div><div><br></div><div></div></div>