<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="monospace">Glad it worked :)<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 eBootcamp 23rd May - 3rd June 2022
  <a class="moz-txt-link-freetext" href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
    <div class="moz-cite-prefix">On 4/18/22 6:58 PM, Antonio Couto
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CABer2cuK5Wph9-jwsCFPjz4_yb5dR+4zJG6q6EyRvh=2U-3iog@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Sorry, I am new on Opensips, I did understand when you said
          "local_route", now its working.</div>
        <div>Thank very so much for your time.</div>
        <div>best regards.</div>
        <div><br>
        </div>
        <div>2022/04/18 12:56:29.681936 <a
            href="http://192.168.0.215:5070" moz-do-not-send="true">192.168.0.215:5070</a>
          -> <a href="http://192.168.0.213:5060"
            moz-do-not-send="true">192.168.0.213:5060</a><br>
          INVITE <a href="http://sip:9000@192.168.0.213:5060"
            moz-do-not-send="true">sip:9000@192.168.0.213:5060</a>
          SIP/2.0<br>
          Via: SIP/2.0/UDP
          192.168.0.215:5070;branch=z9hG4bKd8e9.12db2f97.0<br>
          To: <a href="http://sip:9000@192.168.0.213:5060"
            moz-do-not-send="true">sip:9000@192.168.0.213:5060</a><br>
          From: <<a href="http://sip:microsip@192.168.0.44:5060"
            moz-do-not-send="true">sip:microsip@192.168.0.44:5060</a>>;tag=c6cf02786cfbb0099acf67a3ce978fec<br>
          CSeq: 2 INVITE<br>
          Call-ID: B2B.332.605219.1650297388<br>
          Max-Forwards: 70<br>
          Content-Length: 0<br>
          User-Agent: OpenSIPS (3.2.5 (x86_64/linux))<br>
          Contact: <sip:<a href="http://192.168.0.215:5070"
            moz-do-not-send="true">192.168.0.215:5070</a>><br>
          <b>X-TESTE: hasta la vista baby</b><br>
          <br>
          <br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Mon, Apr 18, 2022 at 12:50
          PM Bogdan-Andrei Iancu <<a
            href="mailto:bogdan@opensips.org" moz-do-not-send="true">bogdan@opensips.org</a>>
          wrote:<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> <font face="monospace"><a
href="https://www.opensips.org/Documentation/Script-Routes-3-2#local_route"
                target="_blank" moz-do-not-send="true">https://www.opensips.org/Documentation/Script-Routes-3-2#local_route</a><br>
              <br>
              Regards,<br>
            </font>
            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  <a href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
            <div>On 4/18/22 6:20 PM, Antonio Couto wrote:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div>OK, but using the request on json that I inform on
                  may email send ny mi command,</div>
                <div>all messages are handle on these routes only:</div>
                <div><br>
                </div>
                <div> route[b2b_request] <br>
                </div>
                <div>route[b2b_reply] <br>
                </div>
                <div><br>
                </div>
                <div>there no messages captured on main <b>route {</b></div>
                <div><br>
                </div>
                <div>thanks<br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div><br>
                </div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Mon, Apr 18, 2022
                  at 12:03 PM Bogdan-Andrei Iancu <<a
                    href="mailto:bogdan@opensips.org" target="_blank"
                    moz-do-not-send="true">bogdan@opensips.org</a>>
                  wrote:<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> <font face="monospace">As per my suggestion,
                      try the local_route<br>
                      <br>
                      Regards,<br>
                    </font>
                    <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  <a href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
                    <div>On 4/18/22 5:35 PM, Antonio Couto wrote:<br>
                    </div>
                    <blockquote type="cite">
                      <div dir="ltr">
                        <div>Thanks for quick response.</div>
                        <div><br>
                        </div>
                        <div>I put on route[b2b_request] and
                          route[b2b_reply] routes, but I think this
                          model I am trying to use will not work</div>
                        <div>like you said.</div>
                        <div><br>
                        </div>
                        <div>i think I will need to send a complete
                          INVITE from another application to start b2b
                          from a INVITE message,</div>
                        <div>so I can preserve this original header on
                          b2b logic module.</div>
                        <div><br>
                        </div>
                        <div>thanks a lot.<br>
                        </div>
                        <div><br>
                        </div>
                      </div>
                      <br>
                      <div class="gmail_quote">
                        <div dir="ltr" class="gmail_attr">On Mon, Apr
                          18, 2022 at 11:16 AM Bogdan-Andrei Iancu <<a
                            href="mailto:bogdan@opensips.org"
                            target="_blank" moz-do-not-send="true">bogdan@opensips.org</a>>
                          wrote:<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> <font face="monospace">Hi Antonio,<br>
                              <br>
                              not sure where you placed the append_hf(),
                              but you need to place it in the
                              local_route, for original INVITEs.<br>
                              <br>
                              Regards,<br>
                            </font>
                            <pre cols="72">Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
  <a href="https://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">https://www.opensips-solutions.com</a>
OpenSIPS eBootcamp 23rd May - 3rd June 2022
  <a href="https://opensips.org/training/OpenSIPS_eBootcamp_2022/" target="_blank" moz-do-not-send="true">https://opensips.org/training/OpenSIPS_eBootcamp_2022/</a></pre>
                            <div>On 4/18/22 4:58 PM, Antonio Couto
                              wrote:<br>
                            </div>
                            <blockquote type="cite">
                              <div dir="ltr">
                                <div>It is possible to insert header on
                                  outgoing INVITE from a B2BUA scenario
                                  start by mi command</div>
                                <div>via UDP like this?</div>
                                <div><br>
                                  <div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(0,0,0)"> </span><span style="color:rgb(0,0,255)">let</span><span style="color:rgb(0,0,0)"> obj =  {</span></div><div><span style="color:rgb(0,0,0)">    </span><span style="color:rgb(163,21,21)">"jsonrpc"</span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(163,21,21)">"2.0"</span><span style="color:rgb(0,0,0)">,</span></div><div><span style="color:rgb(0,0,0)">    </span><span style="color:rgb(163,21,21)">"id"</span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(163,21,21)">"7684"</span><span style="color:rgb(0,0,0)">,</span></div><div><span style="color:rgb(0,0,0)">    </span><span style="color:rgb(163,21,21)">"method"</span><span style="color:rgb(0,0,0)">:</span><span style="color:rgb(163,21,21)">"b2b_trigger_scenario"</span><span style="color:rgb(0,0,0)">,</span></div><div><span style="color:rgb(0,0,0)">    </span><span style="color:rgb(163,21,21)">"params"</span><span style="color:rgb(0,0,0)">:[</span></div><div><span style="color:rgb(0,0,0)">      </span><span style="color:rgb(163,21,21)">"marketing"</span><span style="color:rgb(0,0,0)">,</span></div><span style="color:rgb(0,0,0)"></span><span style="color:rgb(0,0,0)">      </span><span style="color:rgb(163,21,21)">"operator,<a href="http://sip:9000@192.168.0.213:5060" target="_blank" moz-do-not-send="true">sip:9000@192.168.0.213:5060</a>"</span><span style="color:rgb(0,0,0)">,</span></div>
                                  <div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><span style="color:rgb(0,0,0)">      </span><span style="color:rgb(163,21,21)">"customer,<a href="http://sip:microsip@192.168.0.44:5060" target="_blank" moz-do-not-send="true">sip:microsip@192.168.0.44:5060</a>"</span><span style="color:rgb(0,0,0)">,</span></div>
                                  <div style="color:rgb(0,0,0);background-color:rgb(255,255,255);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap">    <span style="color:rgb(0,0,0)">]</span><div><span style="color:rgb(0,0,0)">  }</span></div><div><span style="color:rgb(0,0,0)">
</span></div><div><span style="color:rgb(0,0,0)">I tried to use append_hf but no effect.</span></div><div><span style="color:rgb(0,0,0)">thanks in advance.</span></div><div><span style="color:rgb(0,0,0)">Antonio Couto
</span></div></div>
                                </div>
                                <div> <br>
                                </div>
                              </div>
                              <br>
                              <fieldset></fieldset>
                              <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
                            </blockquote>
                            <br>
                          </div>
                        </blockquote>
                      </div>
                    </blockquote>
                    <br>
                  </div>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>