<div dir="ltr">Don't do die in the perl script. Try return 0 or 1.<div><br></div><div>Regards,</div><div>Ali Pey<br><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 8, 2013 at 10:32 AM, Jeff Pyle <span dir="ltr"><<a href="mailto:jpyle@fidelityvoice.com" target="_blank">jpyle@fidelityvoice.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">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" target="_blank">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" target="_blank">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>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div><img class="cm-tracker" src="https://contactmonkey.com/api/v1/tracker?cm_session=fc0759da-90c8-4ec1-975b-39d8942e9ae5&cm_type=open&cm_user_email=alipey@gmail.com"></div></div>