[OpenSIPS-Users] Problem with mi_fifo replies
opensipslist at encambio.com
opensipslist at encambio.com
Thu Dec 10 14:27:34 CET 2009
Hello Iulia,
An jeu., déc 10, 2009, Iulia Bublea schrieb:
> To my knowledge OSIPS_FIFO is not used in osispsconsolerc, the only
> parameter used is MI_FIFO.
>
I think you mean 'OSIPS_FIFO is not used in osipsconsol' but that
is be a wrong impression, see grep(1) output below. Both MI_FIFO
and OSIPS_FIFO are indeed used by osipsconsole. The question is if
both should be set to the same path value, or where the
documentation is to describe choosing a path for the various
(how many?) FIFOs being used.
---- Cut ----
[host]/tmp/opensips-1.6.0-tls.orig$ grep OSIPS_FIFO scripts/osipsconsole
my $OSIPS_FIFO = "";
$OSIPS_FIFO = $list[1];
$OSIPS_FIFO = "/tmp/opensips_fifo";
&write_read_fifo($OSIPS_FIFO,$path,$cmd_fifo);
&write_read_fifo($OSIPS_FIFO,$path,$cmd_fifo);
&write_read_fifo($OSIPS_FIFO,$path,$cmd_fifo);
&write_read_fifo($OSIPS_FIFO,$path,":get_statistics:$name\nUAS_transactions\nUAC_transactions\ninuse_transactions\n\n");
&write_read_fifo($OSIPS_FIFO,$path,":get_statistics:$name\nsent_replies\nsent_err_replies\nreceived_ACKs\n\n");
&write_read_fifo($OSIPS_FIFO,$path,":get_statistics:$name\nusrloc:\n\n");
$OSIPS_FIFO = $_[0];
if (!-e $OSIPS_FIFO){
print "File $OSIPS_FIFO does not exist!";
if ( !-w $OSIPS_FIFO ) {
print "Error opening OpenSIPS's FIFO " . $OSIPS_FIFO . "\n" .
"Make sure you have the line 'modparam(\"mi_fifo\", \"fifo_name\", \" " . $OSIPS_FIFO . "\")' in your config\n" .
open(ANS,">$OSIPS_FIFO") or die "Could not open $OSIPS_FIFO for writing: $!\n";
Regards,
Brian
More information about the Users
mailing list