Dave,
I don't think those are the issues. First of all, if I supply the full path
to the reply fifo, I get an error message that the filename is invalid. More
importantly, it doesn't work. :) without the full path, it does work.

Secondly, I don't think it's SELinux issue because it *does work* repeatedly
over and over. But an extra carriage return spoils the fun for everyone and
I can't fix it without restarting opensips.

Do you believe SELinux could cause an issue like that?
Thanks!
-Brett


On Mon, May 9, 2011 at 3:39 PM, Dave Singer <[email protected]>wrote:

> Brett,
> I believe you need the full path to the reply fifo.
> Try:
> echo -e ":address_dump:/tmp/my_fifo\n\n" > /tmp/opensips_fifo
>
> you may also have a permissions ( chmod a+w /tmp/my_fifo ) and/or SELinux
> issue (very likely if SELinux is enabled, I posted a howto for SELinux in
> the list a number of months back)
>
> Dave
>
> On Mon, May 9, 2011 at 9:40 AM, Brett Nemeroff <[email protected]> wrote:
>
>> Hello List,
>> 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:
>>
>> mkfifo /tmp/my_fifo
>> cat /tmp/my_fifo&
>> echo -e ":address_dump:my_fifo\n\n" > /tmp/opensips_fifo
>> *returns*
>> 200 OK
>>   48 <1.2.3.4,2, 0, 0, NULL, NULL>
>> ** cat process ends
>> cat /tmp/my_fifo&
>> echo -e ":address_dump:my_fifo\n\n" > /tmp/opensips_fifo
>> ** nothing
>>
>> 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?
>>
>> Thanks!
>> -Brett
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [email protected]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>>
>
>
> --
> David Singer
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to