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-tp155803p155914.html Sent from the Users mailing list archive at Nabble.com. _______________________________________________ SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list sr-users@lists.sip-router.org http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users