[OpenSIPS-Users] python module
Alberto
alberto.rinaudo at gmail.com
Thu Mar 30 16:52:21 UTC 2023
Hi,
I'm curious, since python_exec only accepts one extra parameter, how do you
guys pass multiple variables to a python function?
I personally do this:
$json(args) := "{}";
$json(args/param0) = "sdifuhsidfg";
$json(args/param1) = "asfagfgf";
$json(args/param2) = "asfergerghdf";
python_exec("python_my_fn", $json(args));
and then I restore the json object in the python function and use my
variables..
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20230330/cae03177/attachment.html>
More information about the Users
mailing list