Module: kamailio
Branch: master
Commit: 82279ebd3a634911277e48523a56f93473baca2c
URL:
https://github.com/kamailio/kamailio/commit/82279ebd3a634911277e48523a56f93…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-15T11:44:44+02:00
app_python: for now return none for array and map kemi results
- free result structure
---
Modified: src/modules/app_python/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/82279ebd3a634911277e48523a56f93…
Patch:
https://github.com/kamailio/kamailio/commit/82279ebd3a634911277e48523a56f93…
---
diff --git a/src/modules/app_python/apy_kemi.c b/src/modules/app_python/apy_kemi.c
index 96fa2cf024..5d1489e201 100644
--- a/src/modules/app_python/apy_kemi.c
+++ b/src/modules/app_python/apy_kemi.c
@@ -181,6 +181,12 @@ PyObject *sr_kemi_apy_return_xval(sr_kemi_t *ket, sr_kemi_xval_t
*rx)
} else {
return sr_kemi_apy_return_false();
}
+ case SR_KEMIP_ARRAY:
+ LM_ERR("unsupported return type: array\n");
+ sr_kemi_xval_free(rx);
+ return sr_apy_kemi_return_none();
+ case SR_KEMIP_DICT:
+ LM_ERR("unsupported return type: map\n");
case SR_KEMIP_XVAL:
/* unknown content - return false */
return sr_kemi_apy_return_false();