<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <font face="Calibri Light">yes. Thank you.<br>
      <br>
      is there any way to get also attended transfer working?<br>
    </font><br>
    <div class="moz-cite-prefix">Johan De Clercq je 6/2/2021 ob 11:21
      AM napisal:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAEVWGm-PBCGK4wQnP=p7inEZZXD=j_wgxu=Cqpq3vaYzjiY9TA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>remove Refer from your supported methods. <br>
        </div>
        <div>Do note that attended transfer will not work in this case.
          <br>
        </div>
        <div><br>
        </div>
        <div>wkr, <br>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">Op wo 2 jun. 2021 om 10:15
          schreef Miha via Users <<a
            href="mailto:users@lists.opensips.org"
            moz-do-not-send="true">users@lists.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> <font face="Calibri Light">Hello<br>
              <br>
              i manage to fix this. I did not do t_relay() also seq
              Invites, after this everything works ok.<br>
              <br>
              Just on question, regarding transfers, i see that MS Teams
              send REFER in which trafter is defined. How do you deal
              with this? You do not allow REFER from MS teams and hope
              that MS teams will send new INVITE?<br>
              <br>
              <br>
              thank you<br>
              miha<br>
            </font><br>
            <div>Jeff Pyle je 6/1/2021 ob 3:26 PM napisal:<br>
            </div>
            <blockquote type="cite">
              <div dir="ltr">
                <div>Miha,</div>
                <div><br>
                </div>
                <div>First, do you need to use "<a
                    href="http://mtsbc.test.com:5060" target="_blank"
                    moz-do-not-send="true">mtsbc.test.com:5060</a>" in
                  the first record_route_preset() param?  Can you use
                  the IP address of your proxy instead?  FQDNs are legal
                  of course, but outside of MS Teams' implementation,
                  they're rarely required.  It's just another thing to
                  go wrong.  Especially while testing.</div>
                <div><br>
                </div>
                <div>The ACK to the 200 OK is a sequential (in-dialog)
                  request.  It's not part of the original INVITE
                  transaction.  Your script will have a section like</div>
                <div><br>
                </div>
                <div><span style="font-family:monospace"><span
                      style="color:rgb(0,0,0);background-color:rgb(255,255,255)">       
                      if (has_totag()) {</span></span></div>
                <div><span style="font-family:monospace"><span
                      style="color:rgb(0,0,0);background-color:rgb(255,255,255)">               
                    </span><span style="font-family:monospace"><span
                        style="color:rgb(0,0,0);background-color:rgb(255,255,255)">if
                        (loose_route()) {</span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="color:rgb(0,0,0);background-color:rgb(255,255,255)">                       
                      </span><span style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)">t_relay();</span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)">               
                          }</span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)">       
                          }</span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br>
                        </span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif">for
                            sequential requests through a loose-routing
                            proxy.  This is very oversimplified and
                            yours will have more.  In this section,
                            however, is where you'll process the ACK
                            because it has a to-tag (line 293) and a
                            route header (line 298) so the conditions
                            match.</span></span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif"><br>
                          </span></span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif">Use
                            xlogs or the debug tool of your choice to
                            diagnose what's happening in this section
                            with the ACK.  In my scripts, I use global
                            flag 0 to indicate when I want logging.  So,
                            I might have something like this:</span></span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif"><br>
                          </span></span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif"><span
                              style="font-family:monospace"><span
                                style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                                       if (has_totag()) { </span><br>
                                             if (is_gflag(0))
                              xlog("L_NOTICE", "<span
                                style="color:rgb(0,0,0);background-color:rgb(255,255,255)">
                                ...in-dialog $rm request\n")</span><span
style="color:rgb(84,255,255);background-color:rgb(255,255,255)">;</span><br>
                            </span></span></span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif"><span
                              style="font-family:monospace"><span
                                style="color:rgb(0,0,0);background-color:rgb(255,255,255)"></span>              
                              # ...do all the things...maybe more
                              logging like the line above...<br>
                            </span></span></span></span></span></span></div>
                <div><br>
                </div>
                <div><br>
                </div>
                <div>- Jeff</div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif"></span></span></span></span></span></div>
                <div><span style="font-family:monospace"><span
                      style="font-family:monospace"><span
                        style="font-family:monospace"><span
                          style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><span
                            style="font-family:arial,sans-serif"></span><br>
                        </span></span></span></span></div>
              </div>
              <br>
              <div class="gmail_quote">
                <div dir="ltr" class="gmail_attr">On Tue, Jun 1, 2021 at
                  4:57 AM Miha via Users <<a
                    href="mailto:users@lists.opensips.org"
                    target="_blank" moz-do-not-send="true">users@lists.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="Calibri Light">Hello<br>
                      <br>
                      <br>
                      I have an issue and I am unable to find out what
                      is wrong. Incoming calls are working but when
                      doing outbound call after 200OK, which is send to
                      Teams I get back ACK and after that Teams do again
                      initial. I guess this is not ok.<br>
                      <br>
                      I am doing this for outband calls:<br>
                      <br>
                    </font><br>
                    <div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:Consolas,"Courier New",monospace;font-weight:normal;font-size:14px;line-height:19px;white-space:pre-wrap"><div><span style="color:rgb(212,212,212)">xlog(</span><span style="color:rgb(206,145,120)">"L_INFO"</span><span style="color:rgb(212,212,212)">, </span><span style="color:rgb(206,145,120)">"rtp rtps record route"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div><div><span style="color:rgb(212,212,212)">            record_route_preset(</span><span style="color:rgb(206,145,120)">"<a href="http://mtsbc.test.com:5060" target="_blank" moz-do-not-send="true">mtsbc.test.com:5060</a>"</span><span style="color:rgb(212,212,212)">,</span><span style="color:rgb(206,145,120)">"</span><span style="color:rgb(206,145,120)"><span style="color:rgb(206,145,120)"><a href="http://mtsbc.test.com" target="_blank" moz-do-not-send="true">mtsbc.test.com</a></span>:5061;transport=tls"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div><div><span style="color:rgb(212,212,212)">            add_rr_param(</span><span style="color:rgb(206,145,120)">";r2=on"</span><span style="color:rgb(212,212,212)">)</span><span style="color:rgb(106,153,85)">;</span></div></div>
                    <font face="Calibri Light"><br>
                      I am pasting here trace. Opensips is in the
                      middle.<br>
                      <br>
                      Thank you for help!<br>
                      <br>
                      <a href="https://pastebin.com/qM0dMiCc"
                        target="_blank" moz-do-not-send="true">https://pastebin.com/qM0dMiCc</a><br>
                    </font> </div>
                  _______________________________________________<br>
                  Users mailing list<br>
                  <a href="mailto:Users@lists.opensips.org"
                    target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a><br>
                  <a
                    href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                </blockquote>
              </div>
            </blockquote>
            <br>
          </div>
          _______________________________________________<br>
          Users mailing list<br>
          <a href="mailto:Users@lists.opensips.org" target="_blank"
            moz-do-not-send="true">Users@lists.opensips.org</a><br>
          <a
            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>