<div dir="ltr">seems no one care about my problem</div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Oct 27, 2014 at 10:15 AM, Michael Leung <span dir="ltr"><<a href="mailto:gbcbooksmj@gmail.com" target="_blank">gbcbooksmj@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Guys</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">i run opensips and opensips-cp well on ubuntu 14.04 but i get error </span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="color:rgb(0,0,0);font-family:Verdana,Arial,Helvetica,sans-serif;font-size:12px;text-align:-webkit-center;background-color:rgb(233,236,239)">Array ( [0] => sorry -- cannot open write fifo</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">when i run opensips and opensips-cp on CentosOS 6 x86_64</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">that is so wired </span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">i pretty so i modify /etc/default/opensip to make sure that opensips is run root use </span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">and i check the following lines in /usr/local/opensips_proxy/etc/</span><span style="font-family:arial,sans-serif;font-size:13px">opensips/opensips_residential_</span><span style="font-family:arial,sans-serif;font-size:13px">xxxxx.cfg</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">#### FIFO Management Interface</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">loadmodule "mi_fifo.so"</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">modparam("mi_fifo", "fifo_mode", 0666)</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">i also check opensips_fifo in /tmp as the screenshot next</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">seems rights of fifo are correct</span><div><br style="font-family:arial,sans-serif;font-size:13px"><div>[root@opensips ~]# ls -l /tmp/</div><div>total 4</div><div>srwxrwxrwx 1 root root 0 10月 26 12:46 OpenSIPS.2729.UzgMCc</div><div><b>prw------- 1 root root 0 10月 27 02:30 opensips_fifo</b></div><div>drwxr-xr-x. 3 root root 4096 10月 23 09:19 pear</div><div>prw-rw-rw- 1 root root 0 10月 26 11:40 webfifo_<a href="tel:1073486329" value="+861073486329" target="_blank">1073486329</a></div><div>prw-rw-rw- 1 root root 0 10月 26 11:45 webfifo_1470388925</div><div>prw-rw-rw- 1 root root 0 10月 26 11:46 webfifo_1476361529</div><div>prw-rw-rw- 1 root root 0 10月 26 11:44 webfifo_1502401728</div><div>prw-rw-rw- 1 root root 0 10月 26 11:43 webfifo_1518457939</div><div>prw-rw-rw- 1 root root 0 10月 26 11:38 webfifo_1873894080</div><div>prw-rw-rw- 1 root root 0 10月 26 11:47 webfifo_1952463342</div><div>prw-rw-rw- 1 root root 0 10月 26 11:42 webfifo_1972326408</div><div>prw-rw-rw- 1 root root 0 10月 26 11:36 webfifo_314032636</div><div>prw-rw-rw- 1 root root 0 10月 26 11:35 webfifo_411862295</div><div>prw-rw-rw- 1 root root 0 10月 26 11:39 webfifo_428297397</div><div>prw-rw-rw- 1 root root 0 10月 26 11:37 webfifo_452862263</div><div>prw-rw-rw- 1 root root 0 10月 26 11:41 webfifo_978440604</div><div>-rw-------. 1 root root 0 10月 23 06:15 yum.log</div><div><br></div><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">from output of /var/log/httpd/error.log</span><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">i was told user did not have permission to write /read /tmp/opensips_fifo file</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><font color="#3366ff" style="font-family:arial,sans-serif;font-size:13px"><small>[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:<a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a><br>[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: <a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a><br>[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: <a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a><br>[Sun Oct 26 12:55:55 2014] [error] [client 10.67.67.11] PHP Warning: fopen(/tmp/opensips_fifo): failed to open stream:<b> </b><font color="#ff0000"><b>Permission denied</b></font> in /var/www/opensips-cp/web/common/mi_comm.php on line 193, referer:<a href="http://10.67.255.154/cp/menu.php" target="_blank">http://10.67.255.154/cp/menu.php</a></small></font><br style="font-family:arial,sans-serif;font-size:13px"><big style="font-family:arial,sans-serif"></big><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">anyone faced my problem before?</span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">there is another problem </span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">i read opensips support document </span><a href="http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092" style="font-family:arial,sans-serif;font-size:13px" target="_blank">http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092</a><span style="font-family:arial,sans-serif;font-size:13px"> for twice </span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">but i still dont figure out where and how can i generate a config file that required by carrierroute.so before opensips initialated . </span><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">thanks for your help very much </span><span class="HOEnZb"><font color="#888888"><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><br style="font-family:arial,sans-serif;font-size:13px"><span style="font-family:arial,sans-serif;font-size:13px">Michael Leung</span><br></font></span></div></div>
</blockquote></div><br></div>