I tested passing the parameter as suggested by Konstantin and it works fine:
In kamailio.cfg :
/python_exec("SendPushNotification", $_s($tU@$td!!$fU@$fd!!$ci)); /
In our python script:
/ def SendPushNotification(self, msg, parameters): requestUri = "" fromUri = "" callId = ""
try: # Extract the message fields requestUri, fromUri, callId = parameters.split("!!") *... */
All is working fine on our servers...
Regards
Giovanni
-- View this message in context: http://sip-router.1086192.n5.nabble.com/python-exec-and-parameters-tp155803p... Sent from the Users mailing list archive at Nabble.com.