<div dir="ltr">Don&#39;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">&lt;<a href="mailto:jpyle@fidelityvoice.com" target="_blank">jpyle@fidelityvoice.com</a>&gt;</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&#39;m having trouble handling a perl &quot;die&quot; condition in the Opensips script.  For example:</div><div><br></div><div><div>if !(perl_exec(&quot;dietest1&quot;)) {</div>

<div>    xlog(&quot;L_INFO&quot;, &quot;Perl script failed.\n&quot;</div><div>} else {</div></div><div>    xlog(&quot;L_INFO&quot;, &quot;Perl script succeeded.\n&quot;</div><div>}</div><div><br></div><div>where <a href="http://test1.pl" target="_blank">test1.pl</a> ends with:</div>

<div>    die &quot;Perl script dying&quot;</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 &quot;Perl script failed&quot; 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&amp;cm_type=open&amp;cm_user_email=alipey@gmail.com"></div></div>