<div dir="ltr"><div>Right.  Something like this:</div><div><br></div><div><span style="font-family:monospace">        if (list_hdr_has_option("Allow", "REFER"))<br>                list_hdr_remove_option("Allow", "REFER");</span></div><div><br></div><div>We've used blind transfer successfully.  If I remember correctly it will utilize re-INVITEs, possibly with Replaces.  I don't know that we've tested attended transfer.</div><div><br></div><div>OpenSIPS is just a proxy (in this case), so it will pass the REFER just fine.  You'd probably have to do a lot of cleanup of the Refer-to value to make it usable in this case...I haven't checked.  It all depends on what you have upstream and what it can handle.  We opted to strip REFER for simplicity.</div><div><br></div><div><br></div><div>- Jeff</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 2, 2021 at 5:38 AM Miha via Users <<a href="mailto:users@lists.opensips.org">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">yes. Thank you.<br>
      <br>
      is there any way to get also attended transfer working?<br>
    </font><br>
    <div>Johan De Clercq je 6/2/2021 ob 11:21
      AM napisal:<br>
    </div>
    <blockquote type="cite">
      
      <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" target="_blank">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">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">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">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">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">https://pastebin.com/qM0dMiCc</a><br>
                    </font> </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>
            </blockquote>
            <br>
          </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>
    </blockquote>
    <br>
  </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>