[OpenSIPS-Users] Module - Custom Function - SIP_I
Rodrigo R Passos
rodrigopassos at gmail.com
Thu Nov 21 16:13:25 UTC 2024
Hi all,
a trying to write a custom function on the SIP_I module to change
isup_mime_str.
Initially, we had some success, but some isup_params could not be changed
after that.
Before use of add_isup_part, the n_isup_mime_str var receives new isup_mime
with this new function. After that, the function add_isup_part is called,
and some isup_params are set. In log, i could sew some errs, like:
INFO:sip_i:get_isup_param_msg: No ISUP body for this message
ERROR:core:do_assign: setting PV failed
Only called number parameters of isup are changed.
In add_isup_part_cmd function, i made the following changes:
if (n_isup_mime.len > 0) {
isup_part = add_body_part(msg, &n_isup_mime,
sip_hdrs.s?&sip_hdrs:NULL, NULL);
n_isup_mime.s = NULL;
n_isup_mime.len = 0;
} else {
isup_part = add_body_part(msg, &isup_mime,
sip_hdrs.s?&sip_hdrs:NULL, NULL);
}
Could anyone talk about this case or share some about that?
BR,
Rodrigo Passos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241121/a7bc862a/attachment.html>
More information about the Users
mailing list