@miconda commented on this pull request.
Thanks for submissions, there are some comments made inline within the patches.
In src/modules/dialog/dialog.c:
> @@ -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*
.
In src/modules/dialog/dialog.c:
> @@ -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 0cb4dd3, you need to update this functuin to use the new one ki_dlg_req_with_headers_and_content() directly.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.