[OpenSIPS-Users] exec environmental var

Tito Cumpen tito at xsvoce.com
Tue Jul 18 17:42:46 EDT 2017


Group,


I am trying to migrate to the latest opensips 2.3 but I am having issues
when setting this in my script.


                  $avp(env) = "";
      xlog(" $var(input) being executed\n");
         exec("php /etc/opensips/authenticate.php $var(input2)", "",
"$var(outinvite)", "$var(err)", "$avp(env)");

I get this error in my log.

Jul 18 21:34:30 cloud-server-09 /sbin/opensips[31402]:
DBG:core:__search_avp_map: looking for [env] avp  - found 4
Jul 18 21:34:30 cloud-server-09 /sbin/opensips[31402]:
ERROR:exec:exec_fixup: env var must be a single variable


Any idea why this may be ?


Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20170718/90957701/attachment.html>


More information about the Users mailing list