<div>Hi,</div><div><br></div><div>I just installed opensips1.7. When loading a simple perl script, the proxy does not pass the INVITE message. The open sips works fine when not loading the perl script.</div><div><br></div>
<div>Here is the simple perl:</div><div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">use OpenSIPS qw ( log );</font></div><div><font class="Apple-style-span" face="'courier new', monospace">use OpenSIPS::Constants;</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace">sub test</font></div><div><font class="Apple-style-span" face="'courier new', monospace">{</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> $m = shift;</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> log(L_INFO, "testn");</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> return 0;</font></div><div><font class="Apple-style-span" face="'courier new', monospace">} </font></div><div><br></div><div><br></div>
And here is part of the config file to call the perl:<div><br></div><div><font class="Apple-style-span" face="'courier new', monospace">....</font></div><div><font class="Apple-style-span" face="'courier new', monospace">loadmodule "perl.so"</font></div>
<div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("perl", "modpath", "/usr/lib/opensips/perl/")</font></div><div><font class="Apple-style-span" face="'courier new', monospace">modparam("perl", "filename", "/etc/opensips/<a href="http://function.pl">function.pl</a>")</font></div>
</div><div><font class="Apple-style-span" face="'courier new', monospace">....</font></div><div><font class="Apple-style-span" face="'courier new', monospace"><br></font></div><div><font class="Apple-style-span" face="'courier new', monospace"> if (is_method("INVITE"))</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> setflag(1); # do accounting</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> if ( perl_exec("test") )</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> {</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> xlog("perl passed\n");</font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"> }</font></div><div><font class="Apple-style-span" face="'courier new', monospace"> } </font><br><div><br></div><div><br></div></div>
<div>I appreciate your help.</div><div><br></div><div>Thanks,</div><div>R,</div>