[OpenSIPS-Users] Module - Custom Function - SIP_I

Bogdan-Andrei Iancu bogdan at opensips.org
Mon Dec 9 09:05:11 UTC 2024


Hi,

So your new function simply changes the `isup_mime` variables, before 
you add the isup body? or ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   https://www.opensips-solutions.com
   https://www.siphub.com

On 21.11.2024 18:13, Rodrigo R Passos wrote:
> 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
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20241209/e0067b8f/attachment.html>


More information about the Users mailing list