<div dir="ltr">I try to run example from docs<br>$var(out)="";<br>$var(err)="";<br>$avp(env)="a";<br><br>exec("ls -l", , "$var(out)", "$var(err)", "$avp(env)");<br>xlog("The output is $var(out)\n");<br>xlog("Received the following error\n$var(err)");<br><br>I receive follow messages:<br><br>ERROR:core:pv_get_spec_value: bad parameters<br>ERROR:core:pv_get_avp_name: cannot get avp value<br>ERROR:exec:get_avp_values_list: cannot get avp name<br>The output is<br>Received the following error<br><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">На чт, 4.02.2021 г. в 12:52 ч. Callum Guy <<a href="mailto:callum.guy@x-on.co.uk">callum.guy@x-on.co.uk</a>> написа:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Maybe permissions or similar - have you tested the example from the docs?<br>
<br>
exec("ls -l", , "$var(out)", "$var(err)", "$avp(env)");<br>
xlog("The output is $var(out)\n");<br>
xlog("Received the following error\n$var(err)");<br>
<br>
<br>
On Thu, 4 Feb 2021 at 10:36, Dragomir Haralambiev <<a href="mailto:goup2010@gmail.com" target="_blank">goup2010@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I try to run external program like this<br>
><br>
> exec("/test/<a href="http://opensips.pl" rel="noreferrer" target="_blank">opensips.pl</a>",,,"$var(err)");<br>
> xlog("Received the following error $var(err)");<br>
><br>
> Here is log record:<br>
> Received the following error <null><br>
><br>
> The program is not running.<br>
><br>
> Where is the reason?<br>
><br>
> Best regards:<br>
> Dragomir<br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
-- <br>
<br>
<br>
<br>
<br>
<br>
*0333 332 0000  |  <a href="http://x-on.co.uk" rel="noreferrer" target="_blank">x-on.co.uk</a> <<a href="https://www.x-on.co.uk" rel="noreferrer" target="_blank">https://www.x-on.co.uk</a>>  |   ** <br>
<<a href="https://www.linkedin.com/company/x-on" rel="noreferrer" target="_blank">https://www.linkedin.com/company/x-on</a>>   <<a href="https://www.facebook.com/XonTel" rel="noreferrer" target="_blank">https://www.facebook.com/XonTel</a>> <br>
  <<a href="https://twitter.com/xonuk" rel="noreferrer" target="_blank">https://twitter.com/xonuk</a>> **  |  Coronavirus <br>
<<a href="https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm" rel="noreferrer" target="_blank">https://www.x-on.co.uk/service/surgery-connect/coronavirus.htm</a>>*<br>
<br>
<br>
THE <br>
ITSPA AWARDS 2020 <<a href="http://www.itspa.org.uk/itspa-awards" rel="noreferrer" target="_blank">http://www.itspa.org.uk/itspa-awards</a>> AND Best ITSP - <br>
Mid Market, Best Software and Best Vertical Solution are trade marks of the <br>
Internet Telephony Services Providers' Association, used under licence.<br>
<br>
X-on<br>
is a trading name of Storacall Technology Ltd a limited company <br>
registered in<br>
England and Wales.<br>
<br>
Registered Office : Avaland House, 110 <br>
London Road, Apsley, Hemel Hempstead,<br>
Herts, HP3 9SD. Company Registration <br>
No. 2578478.<br>
<br>
The information in this e-mail is confidential and for use by <br>
the addressee(s)<br>
only. If you are not the intended recipient, please notify <br>
X-on immediately on +44(0)333 332 0000 and delete the<br>
message from your <br>
computer. If you are not a named addressee you must not use,<br>
disclose, <br>
disseminate, distribute, copy, print or reply to this email. Views<br>
or <br>
opinions expressed by an individual<br>
within this email may not necessarily<br>
reflect the views of X-on or its associated companies. Although X-on <br>
routinely<br>
screens for viruses, addressees should scan this email and any <br>
attachments<br>
for<br>
viruses. X-on makes no representation or warranty as to the <br>
absence of viruses<br>
in this email or any attachments.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>