<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello,</p>
    <p>regarding 1), you set request uri (r-uri/$ru) or destination uri
      ($du) to an UDP address, but you force sending via a TLS socket.
      How do you route out in this case? Do you use dispatcher or some
      other module?</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="moz-cite-prefix">On 18.02.20 19:15, Bugaian A. Vitalie
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAJCU5X_j2Jz=s0=jLu8S3tpS2ZaKX=NCO1=ch13kCiv9t01KGA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi Ben,
        <div><br>
        </div>
        <div>I get request timeout.</div>
        <div><br>
        </div>
        <div>1) Most probably that is the cause> but I just changed
          it to tls and get the following></div>
        <div><br>
        </div>
        <div>Feb 18 20:02:05 sbc /usr/local/sbin/kamailio[37664]:
          WARNING: {1 275 INVITE <a
            href="mailto:800C9970-E650-EA11-808F-6EEEB899592C@192.168.169.102"
            moz-do-not-send="true">800C9970-E650-EA11-808F-6EEEB899592C@192.168.169.102</a>}
          <core> [core/forward.c:229]: get_send_socket2():
          protocol/port mismatch (forced tls:<a
            href="http://217.26.163.205:5061" moz-do-not-send="true">217.26.163.205:5061</a>,
          to udp:<a href="http://52.114.75.24:5061"
            moz-do-not-send="true">52.114.75.24:5061</a>)</div>
        <div>I forced it to tls on my side as it was udp, but looks like
          it complains that other side is udp?</div>
        <div><br>
        </div>
        <div>What are tls numbers on msft side? All examples I have show
          506, when I send option it confirms that tls is on 5061
          actually>(so above error is confuzing a bit)</div>
        <div><br>
        </div>
        <div>Sent out tm request to TEAMS: OPTIONS sip:<a
            href="http://sip.pstnhub.microsoft.com"
            moz-do-not-send="true">sip.pstnhub.microsoft.com</a>;transport=tls
          SIP/2.0#015#012Via: SIP/2.0/TLS
217.26.163.205:5061;branch=z9hG4bKcc7f.5a6648b5000000000000000000000000.0#015#012To:
          <sip:<a href="http://sip.pstnhub.microsoft.com"
            moz-do-not-send="true">sip.pstnhub.microsoft.com</a>;transport=tls>#015#012From:
          <sip:<a href="http://sbc.pride.md" moz-do-not-send="true">sbc.pride.md</a>>;tag=2cab7f8b5170c57239647c2c07226d7c-45063c71#015#012CSeq:
          10 OPTIONS#015#012Call-ID: <a
            href="http://43c771b814737421-37669@192.168.172.4#015#012Max-Forwards"
            moz-do-not-send="true">43c771b814737421-37669@192.168.172.4#015#012Max-Forwards</a>:
          70#015#012Content-Length: 0#015#012User-Agent: Oracle
          ESBC#015#012#015#012<br>
        </div>
        <div><br>
        </div>
        <div>2) Its all good and green in web interface and in
          powershell cli></div>
        <div>PS C:\WINDOWS\system32> Get-CsOnlinePSTNGateway<br>
          <br>
          <br>
          Identity                           : <a
            href="http://sbc.pride.md" moz-do-not-send="true">sbc.pride.md</a><br>
          InboundTeamsNumberTranslationRules : {}<br>
          InboundPstnNumberTranslationRules  : {}<br>
          OutbundTeamsNumberTranslationRules : {}<br>
          OutboundPstnNumberTranslationRules : {}<br>
          Fqdn                               : <a
            href="http://sbc.pride.md" moz-do-not-send="true">sbc.pride.md</a><br>
          SipSignalingPort                   : 5061<br>
          FailoverTimeSeconds                : 10<br>
          ForwardCallHistory                 : True<br>
          ForwardPai                         : False<br>
          SendSipOptions                     : True<br>
          MaxConcurrentSessions              : 10<br>
          Enabled                            : True<br>
          MediaBypass                        : False<br>
          GatewaySiteId                      :<br>
          GatewaySiteLbrEnabled              : False<br>
          FailoverResponseCodes              : 408,503,504<br>
          GenerateRingingWhileLocatingUser   : True<br>
          PidfLoSupported                    : False<br>
          MediaRelayRoutingLocationOverride  :<br>
          ProxySbc                           :<br>
          BypassMode                         : None<br>
        </div>
        <div><br>
        </div>
        <div>Also user is enabled and has correct number in:</div>
        <div>PS C:\WINDOWS\system32> Get-CsOnlineUser "<a
            href="mailto:sbcactivtor@sbc.pride.md"
            moz-do-not-send="true">sbcactivtor@sbc.pride.md</a>" | fl
          *uri*<br>
          OnPremLineURI            : <a class="moz-txt-link-freetext" href="tel:+37360844269">tel:+37360844269</a><br>
          LineServerURI            :<br>
          OnPremLineURIManuallySet : True<br>
          LineURI                  : <a class="moz-txt-link-freetext" href="tel:+37360844269">tel:+37360844269</a><br>
        </div>
        <div><br>
        </div>
        3) Thanks.
        <div><br>
        </div>
        <div>Thanks  lot for your suggestion. I am looking to get it
          sorted out at point 1.</div>
        <div><br>
        </div>
        <div>Vitalie.<br>
          <div><br>
          </div>
          <div><br>
          </div>
        </div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr" class="gmail_attr">On Tue, Feb 18, 2020 at 5:29
          PM Ben Kaufman <<a href="mailto:ben.kaufman@altigen.com"
            moz-do-not-send="true">ben.kaufman@altigen.com</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 lang="EN-US">
            <div class="gmail-m_-6143812810646667869WordSection1">
              <p class="MsoNormal">Do you get any response from Teams at
                all?</p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal">A few base thoughts:</p>
              <p class="MsoNormal"> </p>
              <ol style="margin-top:0in" type="1" start="1">
                <li class="gmail-m_-6143812810646667869MsoListParagraph"
                  style="margin-left:0in">The first line of your
                  example, it looks like the source port of the packet
                  you’re sending is port 5060.  Are you certain that
                  this is sent as TLS?  I’d normally expect to see an
                  ephemeral TCP port.</li>
                <li class="gmail-m_-6143812810646667869MsoListParagraph"
                  style="margin-left:0in">You have outbound calls
                  working, so I’m guessing that you have <a
                    href="http://sbc.pride.md" target="_blank"
                    moz-do-not-send="true">sbc.pride.md</a> as a record
                  when you run Get-CsOnlinePstnGateway, but it would be
                  good if you confirmed this.</li>
                <li class="gmail-m_-6143812810646667869MsoListParagraph"
                  style="margin-left:0in">Also note that frequently
                  issuing a change to teams returns a positive response,
                  but takes a quite a long time to actually become
                  enforced.  For example, if you add a new gateway with
                  New-CsOnlinePstnGateway, the commandlet may be
                  successful, but it won’t actually work for anywhere
                  from 5 minutes to three hours (yes, really, multiple
                  hours…)</li>
              </ol>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal">We provide service to Teams, but use
                Ribbon gateways as the ‘last hop’ before Teams because
                they’re “officially” supported, and we’re offering this
                as a commercial service, so customers want to know that
                they’re using “officially supported” solutions.  With
                that said, we do route the calls to the ribbon gateways
                through teams.</p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal">Ben Kaufman</p>
              <p class="MsoNormal"><a
                  href="mailto:ben.kaufman@altigen.com" target="_blank"
                  moz-do-not-send="true"><span
                    style="color:rgb(5,99,193)">ben.kaufman@altigen.com</span></a></p>
              <p class="MsoNormal"> </p>
              <p class="MsoNormal"><b>From:</b> sr-users <<a
                  href="mailto:sr-users-bounces@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users-bounces@lists.kamailio.org</a>>
                <b>
                  On Behalf Of </b>Bugaian A. Vitalie<br>
                <b>Sent:</b> Tuesday, February 18, 2020 10:06 AM<br>
                <b>To:</b> <a href="mailto:sr-users@lists.kamailio.org"
                  target="_blank" moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
                <b>Subject:</b> [SR-Users] Teams integration</p>
              <p class="MsoNormal"> </p>
              <div>
                <p class="MsoNormal">Hello list,</p>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">its been about one month for me
                    playing with kamailio and I need some help to sort
                    out a real life situation.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">I followed this guide <a
                      href="https://skalatan.de/en/blog/kamailio-sbc-teams"
                      target="_blank" moz-do-not-send="true">https://skalatan.de/en/blog/kamailio-sbc-teams</a>;
                    great article, also got some inspiration from here <a
href="https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/"
                      target="_blank" moz-do-not-send="true">https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/</a>..articles
                    look very similar.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">I manged to get my calls out to
                    kamailio from TEAMS it works perfectly call gets
                    connected and  codec negotiation is fine, but I am
                    facing issue geting the call inbound to TEAMS.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">My invite looks like this:</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">========================</p>
                </div>
                <div>
                  <p class="MsoNormal">U <a
                      href="http://217.26.163.205:5060" target="_blank"
                      moz-do-not-send="true">217.26.163.205:5060</a>
                    ->
                    <a href="http://52.114.75.24:5061" target="_blank"
                      moz-do-not-send="true">52.114.75.24:5061</a> #22<br>
                    INVITE <a
                      href="http://sip:+37360844269@sip.pstnhub.microsoft.com:5061"
                      target="_blank" moz-do-not-send="true">sip:+37360844269@sip.pstnhub.microsoft.com:5061</a>
                    SIP/2.0.<br>
                    Record-Route: <<a moz-do-not-send="true">sip:sbc.pride.md:5061;transport=tls;lr</a>>.<br>
                    Record-Route: <<a moz-do-not-send="true">sip:217.26.163.205:5061;nat=yes;lr</a>>.<br>
                    Via: SIP/2.0/UDP
                    217.26.163.205;branch=z9hG4bK7838.7417f50ed201fcada9609f5b7c4e520f.0.<br>
                    Via: SIP/2.0/UDP
192.168.169.102:5060;received=46.214.187.67;branch=z9hG4bK80e3f7e5cc50ea11806b6eeeb899592c;rport=5060.<br>
                    From: "+37379844267" <<a
                      href="mailto:sip%3A%2B37379844267@sbc.pride.md"
                      target="_blank" moz-do-not-send="true">sip:+37379844267@sbc.pride.md</a>>;tag=1604785394.<br>
                    To: "+37360844269" <<a moz-do-not-send="true">sip:+37360844269@sip.pstnhub.microsoft.com:5061;user=phone</a>>.<br>
                    Call-ID: <a
                      href="mailto:80E3F7E5-CC50-EA11-8069-6EEEB899592C@192.168.169.102"
                      target="_blank" moz-do-not-send="true">80E3F7E5-CC50-EA11-8069-6EEEB899592C@192.168.169.102</a>.<br>
                    CSeq: 227 INVITE.<br>
                    <a moz-do-not-send="true">sip:+37379844267@192.168.169.102:5060;gr=008A94E3-CA50-EA11-805B-6EEEB899592C;alias=46.214.187.67~5060~1Content-Type</a>:
                    application/sdp.<br>
                    Allow: INVITE, ACK, BYE, CANCEL, INFO, MESSAGE,
                    NOTIFY, OPTIONS, REFER, UPDATE, PRACK.<br>
                    Max-Forwards: 69.<br>
                    User-Agent: SIPPER for PhonerLite.<br>
                    Session-Expires: 1800.<br>
                    Supported: 100rel, replaces, from-change, gruu,
                    timer.<br>
                    P-Preferred-Identity: <<a
                      href="mailto:sip%3A%2B37379844267@sbc.pride.md"
                      target="_blank" moz-do-not-send="true">sip:+37379844267@sbc.pride.md</a>>.<br>
                    Content-Length:   362.<br>
                    Contact: <<a moz-do-not-send="true">sip:+37379844267@sbc.pride.md:5061;user=phone;transport=tls</a>>.<br>
                    .<br>
                    v=0.<br>
                    o=- 2307737351 1 IN IP4 217.26.163.205.<br>
                    s=SIPPER for PhonerLite.<br>
                    c=IN IP4 217.26.163.205.<br>
                    t=0 0.<br>
                    m=audio 36864 RTP/SAVP 8 101.<br>
                    a=rtpmap:8 PCMA/8000.<br>
                    a=rtpmap:101 telephone-event/8000.<br>
                    a=fmtp:101 0-16.<br>
                    a=crypto:1 AES_CM_128_HMAC_SHA1_80
                    inline:owGy5+mMZNyO5+9lFmUUOK3WqpEsxJH0+jtWz</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">===============================================</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">Anybody has a good invite exaple
                    for Teams?</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">Or do you see any issue with my
                    invite? I do use :</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"> record_route_preset("sbc.pride.md:5061;transport=tls","217.26.163.205:5060;nat=yes");<br>
                     add_rr_param(";r2=on");</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">before sending this out.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">Please let me know if you can
                    help.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">Thanks.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal">Vitalie.</p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
                <div>
                  <p class="MsoNormal"> </p>
                </div>
              </div>
            </div>
          </div>
          <div>
            <p>STATEMENT OF CONFIDENTIALITY:<br>
              The information contained in this electronic message and
              any attachments<br>
              to this message are intended for the exclusive use of the
              addressee(s)<br>
              and may contain confidential or privileged information. If
              you are not<br>
              the intended recipient, or the person responsible for
              delivering the<br>
              e-mail to the intended recipient, be advised you have
              received this<br>
              message in error and that any use, dissemination,
              forwarding, printing,<br>
              or copying is strictly prohibited. Please notify AltiGen
              Communications <br>
              immediately at either (888)258-4436 or via email to<br>
              <a href="mailto:administrator@altigen.com" target="_blank"
                moz-do-not-send="true">administrator@altigen.com</a>,
              and destroy all copies of this message and any<br>
              attachments.</p>
          </div>
          _______________________________________________<br>
          Kamailio (SER) - Users Mailing List<br>
          <a href="mailto:sr-users@lists.kamailio.org" target="_blank"
            moz-do-not-send="true">sr-users@lists.kamailio.org</a><br>
          <a
            href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users"
            rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
        </blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - March 9-11, 2020, Berlin - <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
Kamailio World Conference - April 27-29, 2020, in Berlin -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>
  </body>
</html>