<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <font face="monospace">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>
    </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/24/22 4:34 PM, Li Cai wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:SA1PR09MB80005D852574DA3C27CA58EC8E739@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;}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";}span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}span.EmailStyle22
        {mso-style-type:personal-reply;
        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">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 class="moz-txt-link-rfc2396E" href="mailto:bogdan@opensips.org"><bogdan@opensips.org></a>
                <br>
                <b>Sent:</b> August 24, 2022 7:18 AM<br>
                <b>To:</b> OpenSIPS users mailling list
                <a class="moz-txt-link-rfc2396E" href="mailto:users@lists.opensips.org"><users@lists.opensips.org></a>; Li Cai
                <a class="moz-txt-link-rfc2396E" href="mailto:Li.Cai@comtech.com"><Li.Cai@comtech.com></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:3.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"><span style="font-family:"Courier
              New"">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>
            </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%7C17d2eff609894c334f1e08da85c255cf%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969366968631388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=5w7uQPa%2B8zj5lSGKxxxKRQq85K3KO6pRl%2BGpC6eFubo%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%7C17d2eff609894c334f1e08da85c255cf%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969366968631388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=z0te%2Fup4ZVEFg6Vya3kb2phptoqLgD6coRFXX4H%2Flak%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"><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>
                <o:p></o:p></span></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%7C17d2eff609894c334f1e08da85c255cf%7Ca9a26e696ae040c1bd801ca6cc677828%7C0%7C0%7C637969366968631388%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=YVSa6wRpsnfmdm6JK37dS%2B4x4NOV5Yy8KHdf%2Fbh4PeI%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"><o:p> </o:p></span></p>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>