<div dir="ltr">Hi Vlad,<br>Thankyou for response<br>I'm saying that i need to remove the ISUP not only in INVITE method, but in the whole dialog <br>now i have in script<div>route {</div><div> if (has_totag()) {<br> # sequential requests within a dialog should<br> # take the path determined by record-routing<br> if ($si=="10.10.20.20") {<br> xlog ("Removing ISUP body part in sequential requests to host which dont want it...\n");<br> remove_body_part("application/isup");<br> }<br> }<br> if (is_method("INVITE") && ($si=="10.10.20.20") ) {<br> xlog ("Routing INVITE \n");<br> # telecom trunk - outbound calls<br> rewritehostport("195.***.***.66:5060");<br> # Do cut SIP-T, here it working<br> remove_body_part("application/isup");<br> xlog ("And activate topology hiding B2B\n");<br> b2b_init_request("top hiding");<br> exit; #do not forward this request, another on will be generated<br><br> }<br></div><div><br></div><div>}</div><div><br></div>This code removes the ISUP part from the INVITE request, from
10.10.20.20 to the upper trunk but when I receive the 180 ringing signal with the ISUP part I need to remove it too.<div><br></div><div>Regards, Alexey.</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">ср, 28 июл. 2021 г. в 19:46, Vlad Patrascu <<a href="mailto:vladp@opensips.org" target="_blank">vladp@opensips.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<p>Hi Alexey,</p>
<p>The remove_body_part() function should work for any method and
replies as well. So are you saying that you have actually tried
the function and it has no effect ?</p>
<p>Regards,<br>
</p>
<pre cols="72">--
Vlad Patrascu
OpenSIPS Core Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
<div>On 28.07.2021 18:15, Alexey Hamstr
wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">good day.<br>
Could anybody advise me if it is possible to remove ISUP part
from whole SIP dialogue<br>
Now I have only found that there is no problem to remove it from
the common methods<br>
like <br>
if (is_method("INVITE") ) {<br>
remove_body_part("application/isup");<br>
}<br>
but i see ISUP part in the 180 or 186 messages or in the BYE
method
<div><br>
</div>
<div>Thanks.</div>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div></div></div>