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

_______________________________________________
Devel mailing list
[email protected]
http://openser.org/cgi-bin/mailman/listinfo/devel

Reply via email to