[sr-dev] git:master:b1f9045f: app_python3: fetch tupple item to get parameters
Daniel-Constantin Mierla
miconda at gmail.com
Tue Dec 6 13:17:15 CET 2022
Module: kamailio
Branch: master
Commit: b1f9045fc4fa23ecd81689715ee469034755def8
URL: https://github.com/kamailio/kamailio/commit/b1f9045fc4fa23ecd81689715ee469034755def8
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-12-06T13:16:51+01:00
app_python3: fetch tupple item to get parameters
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff: https://github.com/kamailio/kamailio/commit/b1f9045fc4fa23ecd81689715ee469034755def8.diff
Patch: https://github.com/kamailio/kamailio/commit/b1f9045fc4fa23ecd81689715ee469034755def8.patch
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index def52db092..71bc849e11 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -278,7 +278,7 @@ PyObject *sr_apy_kemi_exec_func_ex(sr_kemi_t *ket, PyObject *self, PyObject *arg
LM_ERR("invalid number of parameters - idx: %d argc: %d\n", i, (int)alen);
return sr_kemi_apy_return_false();
}
- pobj = PyList_GetItem(args, i);
+ pobj = PyTuple_GetItem(args, i);
if(pobj==NULL) {
LM_ERR("null parameter - func: %.*s idx: %d argc: %d\n",
fname.len, fname.s, i, (int)alen);
More information about the sr-dev
mailing list