<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix"><tt>Hello Michael,<br>
        <br>
        Have you restarted OpenSIPS after making the permission changes?
        I'm saying this because:<br>
        <br>
        - you have correctly fixed the permissions issue in your script
        with:<br>
      </tt><font face="monospace"><span style="font-size: 13px;">&nbsp;&nbsp;&nbsp;
          modparam("mi_fifo", "fifo_mode", 0666)</span></font><tt><br>
        <br>
        - however, these changes are not yet visible in your /tmp
        directory!</tt><tt><b><br>
          &nbsp;&nbsp;&nbsp; prw------- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 27 02:30 opensips_fifo</b><br>
        <br>
        It could also be possible that OpenSIPS is running on a
        different script than you are expecting.<br>
        <br>
        Best regards,<br>
      </tt>
      <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
      On 10/27/2014 04:15 AM, Michael Leung wrote:<br>
    </div>
    <blockquote
cite="mid:CAJ6sgmjsjLh-Na4wHi4rfhbWmkZkfr2xzr2gQ6qzQaqKw1rb3g@mail.gmail.com"
      type="cite">
      <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&nbsp;</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] =&gt; 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&nbsp;</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&nbsp; to make sure that
          opensips is run root use&nbsp;</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 &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 12:46
            OpenSIPS.2729.UzgMCc</div>
          <div><b>prw------- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 27 02:30
              opensips_fifo</b></div>
          <div>drwxr-xr-x. 3 root root 4096 10&#26376; 23 09:19 pear</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:40
            webfifo_1073486329</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:45
            webfifo_1470388925</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:46
            webfifo_1476361529</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:44
            webfifo_1502401728</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:43
            webfifo_1518457939</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:38
            webfifo_1873894080</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:47
            webfifo_1952463342</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:42
            webfifo_1972326408</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:36
            webfifo_314032636</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:35
            webfifo_411862295</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:39
            webfifo_428297397</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:37
            webfifo_452862263</div>
          <div>prw-rw-rw- &nbsp;1 root root &nbsp; &nbsp;0 10&#26376; 26 11:41
            webfifo_978440604</div>
          <div>-rw-------. 1 root root &nbsp; &nbsp;0 10&#26376; 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 style="font-family:arial,sans-serif;font-size:13px"
            color="#3366ff"><small>[Sun Oct 26 12:55:55 2014] [error]
              [client 10.67.67.11] PHP Notice:&nbsp; 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 moz-do-not-send="true"
                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:&nbsp; Undefined variable: box_val in
              /var/www/opensips-cp/web/tools/system/smonitor/lib/functions.inc.php
              on line 306, referer:&nbsp;<a moz-do-not-send="true"
                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:&nbsp; Undefined variable: arg_list in
              /var/www/opensips-cp/web/common/mi_comm.php on line 178,
              referer:&nbsp;<a moz-do-not-send="true"
                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:&nbsp; fopen(/tmp/opensips_fifo): failed to open
              stream:<b>&nbsp;</b><font color="#ff0000"><b>Permission denied</b></font>&nbsp;in
              /var/www/opensips-cp/web/common/mi_comm.php on line 193,
              referer:<a moz-do-not-send="true"
                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">
          <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&nbsp;</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&nbsp;</span><a
            moz-do-not-send="true"
href="http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092"
            target="_blank"
            style="font-family:arial,sans-serif;font-size:13px">http://www.opensips.org/html/docs/modules/1.11.x/carrierroute.html#id295092</a><span
            style="font-family:arial,sans-serif;font-size:13px">&nbsp;for
            twice&nbsp;</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 .&nbsp;</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&nbsp; very much&nbsp;</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">Michael
            Leung</span><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>