[Devel] fifo_relay

Norman Brandinger norm at goes.com
Thu Nov 3 00:09:13 CET 2005


The utils/fifo_relay from Juha Heinanen is an awesome piece of work to 
help "provide an interim solution until [open]ser fifo natively supports 
tcp/ip access".

It appears that fifo_server.php hasn't been updated for use with OpenSER.

At a minimum, the following changes might want to be considered:

Old: require("/etc/ser/fifo_server.cfg");
New: require("/usr/local/etc/openser/fifo_server.cfg");

Old: $fifo_clients = "/etc/ser/fifo_server.clients";
New: $fifo_clients = "/usr/local/etc/openser/fifo_server.clients";

Old: $fifo_reply_file_name = "ser_fifo_reply_".rand();
New: $fifo_reply_file_name = "openser_fifo_reply_".rand();

Old: $fifo_handle=fopen( "/tmp/ser_fifo", "w" );
New: $fifo_handle=fopen( "/tmp/openser_fifo", "w" );

In addition,  the two required configuration files are not part of the 
distribution.  Specifically:

/usr/local/etc/openser/fifo_server.cfg

<?php
$fifo_server_address = "192.168.1.1";
$fifo_server_port    = "12345";
?>

/usr/local/etc/openser/fifo_server.clients

# List here IP addresses (one per line) of all hosts that are allowed to
# send commands to ser fifo.
# Server hosts.
209.102.227.250


Regards,
Norm



More information about the Devel mailing list