[OpenSIPS-Users] Problem with mi_fifo replies
Iulia Bublea
iulia at opensips.org
Thu Dec 10 15:04:41 CET 2009
No, I meant that OSISP_FIFO is not used in osipsconsolerc.
Indeed it is used in osispconsole, but it is just a parameter and it's
value comes from splitting MI_CONNECTOR by ":". That is all. For param
configuring just use osipsconsolerc or opensispctlrc.
Iulia
opensipslist at encambio.com wrote:
> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
--
Iulia Bublea
Web: www.voice-system.ro
Email: iulia at opensips.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.opensips.org/pipermail/users/attachments/20091210/762d55bf/attachment-0001.htm
More information about the Users
mailing list