<div dir="ltr">Hello,
<div><br></div><div>I run a perl script from an Opensips 1.6 config. I'm having trouble handling a perl "die" condition in the Opensips script. For example:</div><div><br></div><div><div>if !(perl_exec("dietest1")) {</div>
<div> xlog("L_INFO", "Perl script failed.\n"</div><div>} else {</div></div><div> xlog("L_INFO", "Perl script succeeded.\n"</div><div>}</div><div><br></div><div>where <a href="http://test1.pl">test1.pl</a> ends with:</div>
<div> die "Perl script dying"</div><div><br></div><div>When the perl script fails, I see only:</div><div><br></div><div>ERROR:core:XS_OpenSIPS__Message_log: perl error: Perl script dying at /etc/opensips/perl/<a href="http://perltest.pl">perltest.pl</a> line 165.#012<br>
</div><div><br></div><div>I never see the "Perl script failed" xlog from the script. It seems that a dying perl script stops processing on the current message. Is there a way around this, to handle the perl error?</div>
<div><br></div><div><br></div><div>Regards,</div><div>Jeff</div><div><br></div><div><br></div></div>