[SR-Users] python_exec and parameters

gmele giovanni.mele at nagra.com
Fri Feb 10 11:52:31 CET 2017


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.



More information about the sr-users mailing list