<div dir="ltr">Thank You a lot Arto.<br>I will try it today<div><br></div><div>Regards, Alexey</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 29 июл. 2021 г. в 06:28, Arto Kuiri <<a href="mailto:art666@hotmail.com">art666@hotmail.com</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 dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>Hi Alexey,<br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>I did this with t_on_reply(). Something like this:<br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span><br>
</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>route {</span>
<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");</div>
<div>                        t_on_reply("reply_normal_sip_leg");<br>
</div>
<div>                }<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>
<span>}</span></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span>onreply_route[reply_normal_sip_leg] {
<div>              remove_body_part("application/isup");</div>
}</span><br>
</div>
<div>
<div id="gmail-m_4903550726251186459appendonsend"></div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
-Arto<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_4903550726251186459divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>Lähettäjä:</b> Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>> käyttäjän Alexey Hamstr <<a href="mailto:homstr@gmail.com" target="_blank">homstr@gmail.com</a>> puolesta<br>
<b>Lähetetty:</b> torstai 29. heinäkuuta 2021 0.21<br>
<b>Vastaanottaja:</b> OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Aihe:</b> Re: [OpenSIPS-Users] Removing ISUP part from sip dialog</font>
<div> </div>
</div>
<div>
<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>
<div dir="ltr">ср, 28 июл. 2021 г. в 19:46, Vlad Patrascu <<a href="mailto:vladp@opensips.org" target="_blank">vladp@opensips.org</a>>:<br>
</div>
<blockquote 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>
</div>
</div>
</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>