@ThomasSevestre commented on this pull request.
> +
+ json_api.extract_field(json_obj, AS_FEATURE_JSON_CALLID, &callid);
+
+ json_api.extract_field(json_obj, AS_FEATURE_JSON_FROM, &from);
+ json_api.extract_field(json_obj, AS_FEATURE_JSON_FROM_USER, &from_user);
+ json_api.extract_field(json_obj, AS_FEATURE_JSON_FROM_REALM,
&from_realm);
+
+ json_api.extract_field(json_obj, AS_FEATURE_JSON_DND_STATUS,
&dnd_status);
+
+ struct json_object *ExpiresObj =
+ json_api.get_object(json_obj, AS_FEATURE_JSON_EXPIRES);
+ if(ExpiresObj != NULL) {
+ expires = json_object_get_int(ExpiresObj);
+ }
+
+ len = snprintf(body, AS_FEATURE_BODY_BUFFER_SIZE, AS_FEATURE_BODY,
I've added check on `from_user` and `dnd_status`
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4195#discussion_r2024413085
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4195/review/2735506...@github.com>
_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the
sender!