<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:673536000;
        mso-list-type:hybrid;
        mso-list-template-ids:-2046263314 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></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]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">Do you get any response from Teams at all?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">A few base thoughts:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">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.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">You have outbound calls working, so I’m guessing that you have sbc.pride.md as a record when you run Get-CsOnlinePstnGateway, but it would be good if you confirmed this.<o:p></o:p></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l0 level1 lfo1">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…)<o:p></o:p></li></ol>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Ben Kaufman<o:p></o:p></p>
<p class="MsoNormal"><a href="mailto:ben.kaufman@altigen.com"><span style="color:#0563C1">ben.kaufman@altigen.com</span></a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><b>From:</b> sr-users <sr-users-bounces@lists.kamailio.org> <b>
On Behalf Of </b>Bugaian A. Vitalie<br>
<b>Sent:</b> Tuesday, February 18, 2020 10:06 AM<br>
<b>To:</b> sr-users@lists.kamailio.org<br>
<b>Subject:</b> [SR-Users] Teams integration<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hello list,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I followed this guide <a href="https://skalatan.de/en/blog/kamailio-sbc-teams">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/">https://blog.opensips.org/2019/09/16/opensips-as-ms-teams-sbc/</a>..articles
 look very similar.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">My invite looks like this:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">========================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">U <a href="http://217.26.163.205:5060">217.26.163.205:5060</a> ->
<a href="http://52.114.75.24:5061">52.114.75.24:5061</a> #22<br>
INVITE <a href="http://sip:+37360844269@sip.pstnhub.microsoft.com:5061">sip:+37360844269@sip.pstnhub.microsoft.com:5061</a> SIP/2.0.<br>
Record-Route: <<a href="sip:sbc.pride.md:5061;transport=tls;lr">sip:sbc.pride.md:5061;transport=tls;lr</a>>.<br>
Record-Route: <<a href="sip:217.26.163.205:5061;nat=yes;lr">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">sip:+37379844267@sbc.pride.md</a>>;tag=1604785394.<br>
To: "+37360844269" <<a href="sip:+37360844269@sip.pstnhub.microsoft.com:5061;user=phone">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">80E3F7E5-CC50-EA11-8069-6EEEB899592C@192.168.169.102</a>.<br>
CSeq: 227 INVITE.<br>
<a href="sip:+37379844267@192.168.169.102:5060;gr=008A94E3-CA50-EA11-805B-6EEEB899592C;alias=46.214.187.67~5060~1Content-Type">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">sip:+37379844267@sbc.pride.md</a>>.<br>
Content-Length:   362.<br>
Contact: <<a href="sip:+37379844267@sbc.pride.md:5061;user=phone;transport=tls">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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">===============================================<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Anybody has a good invite exaple for Teams?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Or do you see any issue with my invite? I do use :<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></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");<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">before sending this out.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please let me know if you can help.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Vitalie.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
</body>
</html>
<html><body></i></b><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>
administrator@altigen.com, and destroy all copies of this message and any<br>
attachments.</p></body></html>