<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<font face="monospace">Hi Li,<br>
<br>
The INVITE in #77 is an initial INVITE, connecting to a new party
(as a result of the bridging), so the TO hdr in that INVITE is
dictated by the B2B logic - as you can see the TO URI is the same
as RURI, pointing to the new party in the bridging.<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>
OpenSIPS Summit 27-30 Sept 2022, Athens
<a class="moz-txt-link-freetext" href="https://www.opensips.org/events/Summit-2022Athens/">https://www.opensips.org/events/Summit-2022Athens/</a></pre>
<div class="moz-cite-prefix">On 8/25/22 10:57 PM, Li Cai wrote:<br>
</div>
<blockquote type="cite"
cite="mid:SA1PR09MB8000571654045BBD1F5453DD8E729@SA1PR09MB8000.namprd09.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}@font-face
{font-family:"Times New Roman \,serif";}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New",serif;}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}span.EmailStyle24
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}div.WordSection1
{page:WordSection1;}</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">[This email is resent for the last one is
oversized]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi Bodgan,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks a lot for the help, the pcap file is
attached. The call flow is as –<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> #11. INVITE from the
caller on 10.10.8.131 to B2BProxy 10.10.9.205<o:p></o:p></p>
<p class="MsoNormal"> #15. Forwarded INVITE
from B2BProxy with the expected To header to SIP UA1<o:p></o:p></p>
<p class="MsoNormal"> .. . the call is setup and then
b2b_bridge is triggered …<o:p></o:p></p>
<p class="MsoNormal"> #75. B2BProxy sent
reINVITE to the caller<o:p></o:p></p>
<p class="MsoNormal"> #77. B2BProxy sent
INVITE to SIP UA2 with the unaccepted To header<o:p></o:p></p>
<p class="MsoNormal"> #79. SIP UA2 rejected
the call<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The step #77 And #79 shows the problem,
that the call was rejected as the To header in INVITE is not
using the UA2’s IP instead of B2BProxy’s IP as domain name,
which is required in our system.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">In our opensips.cfg script, we have already
included clauses like remove_hf(“To”) and append_hf(“To …”)
but seems like they only work before b2b_bridge occurs.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Li<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:EN-CA" lang="EN-US">From:</span></b><span
style="mso-fareast-language:EN-CA" lang="EN-US">
Bogdan-Andrei Iancu <<a
href="mailto:bogdan@opensips.org"
moz-do-not-send="true">bogdan@opensips.org</a>>
<br>
<b>Sent:</b> August 25, 2022 3:05 AM<br>
<b>To:</b> Li Cai <<a
href="mailto:Li.Cai@comtech.com"
moz-do-not-send="true">Li.Cai@comtech.com</a>>;
OpenSIPS users mailling list <<a
href="mailto:users@lists.opensips.org"
moz-do-not-send="true">users@lists.opensips.org</a>><br>
<b>Subject:</b> Re: [OpenSIPS-Users] Modify the headers
after executing a MI function in B2B_LOGIC module<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <span
style="mso-fareast-language:EN-CA"><o:p></o:p></span></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><strong><span
style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:red;border:solid
gray 3.0pt;padding:0cm;background:lightgrey">WARNING:
External Email: Exercise Caution</span></strong><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-family:"Courier New",serif">Hi Li,<br>
<br>
Somehow we are going in circles here :). So, could you
post a pcap for call going via your B2B (showing all in
and out SIP messages) and mention which frame is the
outgoing request you cannot modify ?<br>
<br>
Regards,</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips-solutions.com%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%3D&reserved=0" moz-do-not-send="true">https://www.opensips-solutions.com</a><o:p></o:p></pre>
<pre>OpenSIPS Summit 27-30 Sept 2022, Athens<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips.org%2Fevents%2FSummit-2022Athens%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HesmiGoVT6s1gwqWYiWA4bhZmQJiV04AOUTXAAQSbww%3D&reserved=0" moz-do-not-send="true">https://www.opensips.org/events/Summit-2022Athens/</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 8/24/22 6:50 PM, Li Cai wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi Bogdan,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks for the explanation. I mean that
the local_route can take effect for the forwarded
INVITE(from incoming ones) in our proxy, but not after
b2b_bridge. I’ll do more debugging on it since the
messages should be visible. Thank you very much.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Li<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:EN-CA" lang="EN-US">From:</span></b><span
style="mso-fareast-language:EN-CA" lang="EN-US">
Bogdan-Andrei Iancu
<a href="mailto:bogdan@opensips.org"
moz-do-not-send="true"><bogdan@opensips.org></a>
<br>
<b>Sent:</b> August 24, 2022 10:33 AM<br>
<b>To:</b> Li Cai <a
href="mailto:Li.Cai@comtech.com"
moz-do-not-send="true"><Li.Cai@comtech.com></a>;
OpenSIPS users mailling list
<a href="mailto:users@lists.opensips.org"
moz-do-not-send="true"><users@lists.opensips.org></a><br>
<b>Subject:</b> Re: [OpenSIPS-Users] Modify the
headers after executing a MI function in B2B_LOGIC
module</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><strong><span
style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:red;border:solid
gray 3.0pt;padding:0cm;background:lightgrey">WARNING:
External Email: Exercise Caution</span></strong><span
style="font-size:12.0pt;font-family:"Times New
Roman \,serif""><br>
<br>
</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-family:"Courier New",serif">Hi
Li,<br>
<br>
All SIP requests generated by `b2b_bridge` are to be
visible in local_route. And on the contrary, the
incoming (received) requests DO NOT trigger local
route.<br>
<br>
Regards,<br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips-solutions.com%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%3D&reserved=0" moz-do-not-send="true">https://www.opensips-solutions.com</a><o:p></o:p></pre>
<pre>OpenSIPS Summit 27-30 Sept 2022, Athens<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips.org%2Fevents%2FSummit-2022Athens%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HesmiGoVT6s1gwqWYiWA4bhZmQJiV04AOUTXAAQSbww%3D&reserved=0" moz-do-not-send="true">https://www.opensips.org/events/Summit-2022Athens/</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 8/24/22 4:34 PM, Li Cai wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi Bogdan,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Yes, we have put the changes by
calling remove_hf() and append_hf() in the
‘local_route’, those functions for new incoming INVITE
but not the INVITE sent out by ‘b2b_bridge’.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Li<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1
1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span
style="mso-fareast-language:EN-CA"
lang="EN-US">From:</span></b><span
style="mso-fareast-language:EN-CA" lang="EN-US">
Bogdan-Andrei Iancu
<a href="mailto:bogdan@opensips.org"
moz-do-not-send="true"><bogdan@opensips.org></a>
<br>
<b>Sent:</b> August 24, 2022 7:18 AM<br>
<b>To:</b> OpenSIPS users mailling list <a
href="mailto:users@lists.opensips.org"
moz-do-not-send="true">
<users@lists.opensips.org></a>; Li Cai <a
href="mailto:Li.Cai@comtech.com"
moz-do-not-send="true"><Li.Cai@comtech.com></a><br>
<b>Subject:</b> Re: [OpenSIPS-Users] Modify the
headers after executing a MI function in
B2B_LOGIC module</span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;margin-bottom:12.0pt"><strong><span
style="font-size:12.0pt;font-family:"Calibri",sans-serif;color:red;border:solid
gray 3.0pt;padding:0cm;background:lightgrey">WARNING:
External Email: Exercise Caution</span></strong><span
style="font-size:12.0pt;font-family:"Times New
Roman",serif"><br>
<br>
<br>
</span><o:p></o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="font-family:"Courier New",serif">Hi
Li,<br>
<br>
Have you tried to use the local_route in order to
do custom changes on the outgoing requests
generated by the B2B bridging ?<br>
<br>
Best regards,<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>Bogdan-Andrei Iancu<o:p></o:p></pre>
<pre> <o:p></o:p></pre>
<pre>OpenSIPS Founder and Developer<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips-solutions.com%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NsOtgfx4yXMaQTnaYHIT6%2FcSOPj20jmwJijgZKUHRQU%3D&reserved=0" moz-do-not-send="true">https://www.opensips-solutions.com</a><o:p></o:p></pre>
<pre>OpenSIPS Summit 27-30 Sept 2022, Athens<o:p></o:p></pre>
<pre> <a href="https://gcc02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.opensips.org%2Fevents%2FSummit-2022Athens%2F&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079417930542%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=HesmiGoVT6s1gwqWYiWA4bhZmQJiV04AOUTXAAQSbww%3D&reserved=0" moz-do-not-send="true">https://www.opensips.org/events/Summit-2022Athens/</a><o:p></o:p></pre>
<div>
<p class="MsoNormal">On 8/23/22 10:34 PM, Li Cai
wrote:<o:p></o:p></p>
</div>
<blockquote
style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I’m working on a change for a
B2BUA based on OpenSIPs 2.4, but not sure if the
function is supported or if it has been supported
in the later versions.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We have used the MI command
b2b_bridge to bridge existing calls from one
entity to another and it works, the scenario is
the same as expected. While besides this, we also
need to modify one of the headers of the INVITEs
sending to the new destination in this scenario,
our scripts in the opensips.cfg can’t take any
effect.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Li <o:p></o:p></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="mso-fareast-language:EN-CA">NOTICE TO
RECIPIENT: This email, including attachments,
may contain information which is confidential,
proprietary, attorney-client privileged and / or
controlled under U.S. export laws and
regulations and may be restricted from
disclosure by applicable State and Federal law.
Nothing in this email shall create any legal
binding agreement between the parties unless
expressly stated herein and provided by an
authorized representative of Comtech
Telecommunications Corp. or its subsidiaries. If
you are not the intended recipient of this
message, be advised that any dissemination,
distribution, or use of the contents of this
message is strictly prohibited. If you received
this message in error, please notify us
immediately by return email and permanently
delete all copies of the original email and any
attached documentation from any computer or
other media.
<br>
<br>
<br>
</span><o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Users mailing list<o:p></o:p></pre>
<pre><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a><o:p></o:p></pre>
<pre><a href="https://gcc02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.opensips.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7CLi.Cai%40comtech.com%7C265b1df77ec245f4343608da866836ca%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637970079418086779%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=oZqOshXcNOy88HcJRIuet0PojazqC00cxn4aI6ZJu4w%3D&reserved=0" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span
style="mso-fareast-language:EN-CA"> </span><o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><span
style="mso-fareast-language:EN-CA"> </span><o:p></o:p></p>
</div>
</blockquote>
<p class="MsoNormal"><span style="mso-fareast-language:EN-CA"><o:p> </o:p></span></p>
</div>
</div>
</blockquote>
<br>
</body>
</html>