<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<font face="monospace">Hi,<br>
<br>
So your new function simply changes the `isup_mime` variables,
before you add the isup body? or ?<br>
<br>
Regards,<br>
</font>
<pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="https://www.opensips-solutions.com">https://www.opensips-solutions.com</a>
<a class="moz-txt-link-freetext" href="https://www.siphub.com">https://www.siphub.com</a></pre>
<div class="moz-cite-prefix">On 21.11.2024 18:13, Rodrigo R Passos
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAF9oA8n=UQ3jMf5rsEkkapuTCmD6CtXLHSJUX2y6hijSCR3UpQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi all,
<div><br>
</div>
<div>a trying to write a custom function on the SIP_I module to
change <span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)">isup_mime_str.
Initially, we had some success, but some isup_params could
not be changed after that. </span></div>
<div><span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)">Before
use of </span>add_isup_part, the n_<span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)">isup_mime_str
var receives new isup_mime with this new function. After
that</span><span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)">,
the function add_isup_part is called, and some isup_params
are set. In log, i could sew some errs, like:</span></div>
<div><a class="moz-txt-link-freetext" href="INFO:sip_i:get_isup_param_msg">INFO:sip_i:get_isup_param_msg</a>: No ISUP body for this
message<br>
</div>
<div>ERROR:core:do_assign: setting PV failed<span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br>
</span></div>
<div><span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)"><br>
</span></div>
<div><span
style="color:rgb(0,0,0);background-color:rgb(254,254,238)">Only
called number parameters of isup are changed. </span></div>
<div><font color="#000000"><span
style="background-color:rgb(254,254,238)">In </span></font>add_isup_part_cmd
function, i made the following changes:</div>
<div><font color="#000000"><span
style="background-color:rgb(254,254,238)"><br>
</span></font></div>
<div>if (n_isup_mime.len > 0) {<br>
isup_part = add_body_part(msg,
&n_isup_mime, sip_hdrs.s?&sip_hdrs:NULL, NULL);<br>
n_isup_mime.s = NULL;<br>
n_isup_mime.len = 0;<br>
} else {<br>
isup_part = add_body_part(msg, &isup_mime,
sip_hdrs.s?&sip_hdrs:NULL, NULL);<br>
}<font color="#000000"><span
style="background-color:rgb(254,254,238)"><br>
</span></font></div>
<div><br>
</div>
<div>Could anyone talk about this case or share some
about that? </div>
<div><br>
</div>
<div>BR,</div>
<div>Rodrigo Passos</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>