[OpenSIPS-Users] how to generate a config file for module carrierroute and getting error "sorry -- cannot open write fifo" on opensips-cp

Michael Leung gbcbooksmj at gmail.com
Mon Oct 27 03:15:39 CET 2014


Hi Guys

i run opensips and opensips-cp well on ubuntu 14.04 but i get error

Array ( [0] => sorry -- cannot open write fifo

when i run opensips and opensips-cp on CentosOS 6 x86_64

that is so wired

i pretty so i modify /etc/default/opensip  to make sure that opensips is
run root use

and i check the following lines in /usr/local/opensips_proxy/etc/
opensips/opensips_residential_xxxxx.cfg

#### FIFO Management Interface
loadmodule "mi_fifo.so"
modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")
modparam("mi_fifo", "fifo_mode", 0666)

i also check opensips_fifo in /tmp as the screenshot next

seems rights of fifo are correct

[root at opensips ~]# ls -l /tmp/
total 4
srwxrwxrwx  1 root root    0 10月 26 12:46 OpenSIPS.2729.UzgMCc
*prw-------  1 root root    0 10月 27 02:30 opensips_fifo*
drwxr-xr-x. 3 root root 4096 10月 23 09:19 pear
prw-rw-rw-  1 root root    0 10月 26 11:40 webfifo_1073486329
prw-rw-rw-  1 root root    0 10月 26 11:45 webfifo_1470388925
prw-rw-rw-  1 root root    0 10月 26 11:46 webfifo_1476361529
prw-rw-rw-  1 root root    0 10月 26 11:44 webfifo_1502401728
prw-rw-rw-  1 root root    0 10月 26 11:43 webfifo_1518457939
prw-rw-rw-  1 root root    0 10月 26 11:38 webfifo_1873894080
prw-rw-rw-  1 root root    0 10月 26 11:47 webfifo_1952463342
prw-rw-rw-  1 root root    0 10月 26 11:42 webfifo_1972326408
prw-rw-rw-  1 root root    0 10月 26 11:36 webfifo_314032636
prw-rw-rw-  1 root root    0 10月 26 11:35 webfifo_411862295
prw-rw-rw-  1 root root    0 10月 26 11:39 webfifo_428297397
prw-rw-rw-  1 root root    0 10月 26 11:37 webfifo_452862263
prw-rw-rw-  1 root root    0 10月 26 11:41 webfifo_978440604
-rw-------. 1 root root    0 10月 23 06:15 yum.log



from output of /var/log/httpd/error.log
i was told user did not have permission to write /read /tmp/opensips_fifo
file


[Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Notice:  A
session had already been started - ignoring session_start() in
/var/www/opensips-cp/web/tools/system/smonitor/lib/put_select_boxes.php on
line 25, referer:http://10.67.255.154/cp/menu.php
[Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Notice:
Undefined variable: box_val in
/var/www/opensips-cp/web/tools/system/smonitor/lib/functions.inc.php on
line 306, referer: http://10.67.255.154/cp/menu.php
[Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Notice:
Undefined variable: arg_list in /var/www/opensips-cp/web/common/mi_comm.php
on line 178, referer: http://10.67.255.154/cp/menu.php
[Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Warning:
fopen(/tmp/opensips_fifo): failed to open stream: *Permission denied* in
/var/www/opensips-cp/web/common/mi_comm.php on line 193, referer:
http://10.67.255.154/cp/menu.php

anyone faced my problem before?


there is another problem

i read opensips support document
http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092 for
twice

but i still dont figure out where and how can i generate a config file that
required by carrierroute.so before opensips initialated .


thanks for your help  very much


Michael Leung
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20141027/90ed171b/attachment.htm>


More information about the Users mailing list