Module: kamailio
Branch: master
Commit: 046bba65da26a4b30cb5965d6d6ae28320cc8a54
URL:
https://github.com/kamailio/kamailio/commit/046bba65da26a4b30cb5965d6d6ae28…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-15T11:45:50+02:00
app_python3: for now return none for array and map kemi results
- free result structure
---
Modified: src/modules/app_python3/apy_kemi.c
---
Diff:
https://github.com/kamailio/kamailio/commit/046bba65da26a4b30cb5965d6d6ae28…
Patch:
https://github.com/kamailio/kamailio/commit/046bba65da26a4b30cb5965d6d6ae28…
---
diff --git a/src/modules/app_python3/apy_kemi.c b/src/modules/app_python3/apy_kemi.c
index 7769046d2d..2c4d73eb72 100644
--- a/src/modules/app_python3/apy_kemi.c
+++ b/src/modules/app_python3/apy_kemi.c
@@ -184,6 +184,14 @@ 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");
+ sr_kemi_xval_free(rx);
+ return sr_apy_kemi_return_none();
case SR_KEMIP_XVAL:
/* unknown content - return false */
return sr_kemi_apy_return_false();