@miconda commented on this pull request.

Thanks for submissions, there are some comments made inline within the patches.

> @@ -2602,6 +2602,26 @@ static int ki_dlg_var_is_null(sip_msg_t *msg, str 
> *name)
        return -1;
 }
 
+/**
+ *
+ */
+static int ki_dlg_req_within4(struct sip_msg *msg, char *side, char *method,
+               char *content_type, char *content)

The `char*` params have to be changed to `str*`, that's the prototype expected 
by KEMI engine. FTR, the `str->s` values are NULL terminated, so they can be 
used for functions that expect `char*`.

> @@ -2602,6 +2602,26 @@ static int ki_dlg_var_is_null(sip_msg_t *msg, str 
> *name)
        return -1;
 }
 
+/**
+ *
+ */
+static int ki_dlg_req_within4(struct sip_msg *msg, char *side, char *method,
+               char *content_type, char *content)
+{
+       dlg_cell_t *dlg;
+       int ret;
+
+       dlg = dlg_get_msg_dialog(msg);
+       if(dlg == NULL) {
+               return 1;
+       }
+       ret = w_dlg_req_with_content(dlg, side, method, content_type, content);

Calling this function is not the correct way, because it is the function 
exported to kamailio.cfg, and its parameters are expected to be `fixed-up` at 
startup, being evaluated at runtime for cfg vars.

I split the function w_dlg_req_with_headers_and_content() in commit 
0cb4dd3282ec12cdaefca491f9ed43acd0f21bdd, you need to update this functuin to 
use the new one ki_dlg_req_with_headers_and_content() directly.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4245#pullrequestreview-2852945973
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/pull/4245/review/2852945...@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!

Reply via email to