Hello, after a Couple from hours with Try an Error. I think we need better Examples for Python Module. ( https://opensips.org/docs/modules/3.4.x/python.html all other docs have the same problem )
First When you try to call a Function with python_exec() python_exec('test_func',$var(optinal)) it should be announced you need 2 Function Parameter ##### Python code def test_func (self, sip, data): ##### sip, for the actual call data, for the optinal data. Second, and from my point of view the the most important Call the sipfunctions --> get_pseudoVar and set_pseudoVar the pseudoVar must be complete as string in the function set. ##### Python code sip.get_pseudoVar('$avp(py_str)') sip.set_pseudoVar('$avp(py_str)', 'test str') ##### And last Return is only number 1 or 0 (when you try a string you get a -1) BR Moppi
_______________________________________________ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users