<div dir="ltr">Hello Bogdan,<div><br></div><div style>After rebuilding solution, the make install failed and the link to the cpl-c.so wasn&#39;t ok .</div><div style>Now i patch it and it&#39;s ok :)</div><div style>Thanks,</div>
<div style>Best Regards,</div><div style><br></div><div style>Mehdi</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/6 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>

  
    
  
  <div bgcolor="#ffffff" text="#000000">
    <tt>If you still get an &quot;1&quot;, it means you did not properly install
      the modules after update - compile ? install ? restart ?<br>
      <br>
      Regards,<br>
    </tt><div class="im">
    <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
    <br></div><div><div class="h5">
    On 02/06/2013 01:31 PM, Mehdi BOUDOU wrote:
    <blockquote type="cite">
      <div dir="ltr">Hello Bogdan,
        <div><br>
        </div>
        <div>Thanks for the patch :)</div>
        <div><br>
        </div>
        <div>I applied it =&gt; i changed the return code,
          after i rebuild the module makefile and rebuild the opensips
          makefile without success.</div>
        <div>The return code sent is 1 :S</div>
        <div><br>
        </div>
        <div>Is my procedure correct ? Why the return code is
          always 1 ?</div>
        <div><br>
        </div>
        <div>Thanks in advance.</div>
        <div><br>
        </div>
        <div>
          BR</div>
        <div><br>
        </div>
        <div>Mehdi</div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2013/1/25 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span><br>
          <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div bgcolor="#ffffff" text="#000000"> <tt>Hi Mehdi,<br>
                <br>
                Indeed, there is no difference in the return code - find
                attached a small patch witch will make cpl to return &quot;2&quot;
                if the script is not found. You can test is via $retcode
                variable like:<br>
                    cpl_run_script();<br>
                    </tt><tt>switch ($retcode) {<br>
                        case 1:<br>
                            break;<br>
                        case 2:<br>
                            #no script<br>
                            break;<br>
                        default:<br>
                            # error<br>
                            exit;<br>
                    }<br>
              </tt><tt><br>
                <br>
                <br>
                Regards,<br>
              </tt>
              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
              <div>
                <div> <br>
                  On 01/24/2013 07:41 PM, Mehdi BOUDOU wrote: </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div>
                    <div dir="ltr">hello,
                      <div><br>
                        <div>I&#39;m actually using opensip 1.5 with cpl
                          module.<br>
                          <div><br>
                          </div>
                          <div>I would like to redirect the SIP packets
                            if there is no cpl script to execute for the
                            client in database.</div>
                          <div><br>
                          </div>
                          <div>Can i use a special return of <span style="font-family:Helvetica,Arial">cpl_run_script
                              ? or is there another way to do that ?</span></div>
                          <div><span style="font-family:Helvetica,Arial"><br>
                            </span></div>
                          <div><span style="font-family:Helvetica,Arial">is the send function ( </span><span>send(destination
                              [, headers])) the best way to redirect SIP
                              packets  ?</span></div>
                          <div><span><br>
                            </span></div>
                          <div><span>Thanks
                              in advance,</span></div>
                          <div><span><br>
                            </span></div>
                          <div><span>Best
                              Regards</span></div>
                          <h4><br>
                          </h4>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
  </div></div></div>

</blockquote></div><br></div>