Module: kamailio
Branch: master
Commit: 18f6fbb8f8af8a822caca18e97da23a4fe4d9a7e
URL:
https://github.com/kamailio/kamailio/commit/18f6fbb8f8af8a822caca18e97da23a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-04-15T11:53:17+02:00
app_ruby: for now return NULL for array and map kemi results
- free result structure
---
Modified: src/modules/app_ruby/app_ruby_api.c
---
Diff:
https://github.com/kamailio/kamailio/commit/18f6fbb8f8af8a822caca18e97da23a…
Patch:
https://github.com/kamailio/kamailio/commit/18f6fbb8f8af8a822caca18e97da23a…
---
diff --git a/src/modules/app_ruby/app_ruby_api.c b/src/modules/app_ruby/app_ruby_api.c
index 4d9bbbdb6b..41e6a3ec9e 100644
--- a/src/modules/app_ruby/app_ruby_api.c
+++ b/src/modules/app_ruby/app_ruby_api.c
@@ -769,6 +769,14 @@ VALUE sr_kemi_ruby_return_xval(sr_kemi_t *ket, sr_kemi_xval_t *rx)
} else {
return Qfalse;
}
+ case SR_KEMIP_ARRAY:
+ LM_ERR("unsupported return type: array\n");
+ sr_kemi_xval_free(rx);
+ return Qnil;
+ case SR_KEMIP_DICT:
+ LM_ERR("unsupported return type: map\n");
+ sr_kemi_xval_free(rx);
+ return Qnil;
case SR_KEMIP_XVAL:
/* unknown content - return false */
return Qfalse;