[OpenSIPS-Devel] gts2010`s question

GTS2010 GTS2010 at 126.com
Fri Apr 20 09:35:53 CEST 2012


Hi Paiu:

As your words, "exec_avp("/usr/local/sbin/my_script.py $si", "$avp(should_route)");
In my_script.py I can print a str such as "the script is running!" , but I can not print the $si , I what to know how could I get the $si in my_script.py . I tried the sys.argv[1] , but I failed . And even the sys.argv[0] was can not be print . If I only run the my_script.py , I can get the sys.argv[0] and the sys.argv[1] be printed .



Hoping for your help!
Thanks & Regards!

Li Peng beijing China
2012-04-20



GTS2010
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/devel/attachments/20120420/dba70e61/attachment.htm>


More information about the Devel mailing list