From 34b982b260c8b48892c93c84834b2bf46859466b Mon Sep 17 00:00:00 2001 From: Razvan Crainea Date: Thu, 30 Sep 2021 17:12:21 +0300 Subject: [PATCH] cgrates: returning a non-object response is not a problem (cherry picked from commit f7f66d39baef10ce0db4fce02119c23454dca940) --- modules/cgrates/cgrates_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cgrates/cgrates_common.c b/modules/cgrates/cgrates_common.c index 91f0ace79b9..61dff563aa8 100644 --- a/modules/cgrates/cgrates_common.c +++ b/modules/cgrates/cgrates_common.c @@ -211,8 +211,8 @@ int cgrates_set_reply_with_values(json_object *jobj) } if (json_object_get_type(jobj) != json_type_object) { - LM_ERR("reply is not an object - return will not be set!\n"); - return -1; + LM_DBG("reply is not an object - return will not be set!\n"); + return 2; } json_object_object_foreach(jobj, k, v) {