<div dir="ltr"><div>Comrade :)</div><div><br></div><div>Thanks for the advices! I will try them.</div><div><br></div><div>And yes, that is for inbound calls to MS teams. We just got outbound calls working by the way (had to do a lot of kamailio tweaks honestly).<br></div><div>As for inbound calls to MS - I just looking at their docs (picute attached). Looks like MS expect domain name in VIA.</div><div>I have all other sip headers like they want, but MS still ignore our INVITEs. That is why I think how to change VIA.</div><div><br></div><div>If you have example of INVITE to MS teams that is working - that can help a lot.</div><div><br></div><div><br></div><div><img src="cid:ii_k9fvd39x0" alt="image_2020-04-24_08-26-25.png" width="477" height="216"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 25 Apr 2020 at 18:37, Sergiu Pojoga <<a href="mailto:pojogas@gmail.com">pojogas@gmail.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 dir="ltr">Yuriy,<br><div><br></div><div>The 'advertise' parameter doesn't support vars. (<a href="https://github.com/kamailio/kamailio/issues/2137" target="_blank">https://github.com/kamailio/kamailio/issues/2137</a>)</div><div><br></div><div>As an alternative, you could use a combination of xavps and corex module function via_use_xavp_fields() -- see:<br></div><div><p><a href="https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_" target="_blank">https://www.kamailio.org/wiki/cookbooks/5.3.x/core#xavp_via_</a><span>fields</span></p><p>If you're building this for what I think you are, most likely you think you need this - but you actually don't. Or may be I'm wrong and your specifics do require it.</p><p>Good luck comrade.<br></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 25, 2020 at 9:41 AM Nasida Yuriy <<a href="mailto:nasida@live.ru" target="_blank">nasida@live.ru</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 dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;background-color:rgb(255,255,255);display:inline">Thanks for the answer Sergiu, but this shoud not be static domain name. I need to have different
 domains in Via for different calls.</span><br style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;background-color:rgb(255,255,255)">
<span style="color:rgb(34,34,34);font-family:Arial,Helvetica,sans-serif;font-size:small;background-color:rgb(255,255,255);display:inline">Is it possible ?</span><br>
</div>
<div id="gmail-m_3589365024587264040gmail-m_-5950136588354593244gmail-m_-8809482071070085977appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="gmail-m_3589365024587264040gmail-m_-5950136588354593244gmail-m_-8809482071070085977divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>От:</b> sr-users <<a href="mailto:sr-users-bounces@lists.kamailio.org" target="_blank">sr-users-bounces@lists.kamailio.org</a>> от имени Sergiu Pojoga <<a href="mailto:pojogas@gmail.com" target="_blank">pojogas@gmail.com</a>><br>
<b>Отправлено:</b> 24 апреля 2020 г. 21:35<br>
<b>Кому:</b> Kamailio (SER) - Users Mailing List <<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>><br>
<b>Тема:</b> Re: [SR-Users] how to use get my domain name in VIA header (INVITE) instead of IP address.</font>
<div> </div>
</div>
<div>
<div dir="ltr">Most common way is by using `advertise`  in the `listen` directive.<br>
<div><br>
</div>
<div><a href="https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen" target="_blank">https://www.kamailio.org/wiki/cookbooks/5.3.x/core#listen</a><br>
</div>
</div>
<br>
<div>
<div dir="ltr">On Fri, Apr 24, 2020 at 2:19 PM Nasida Yuriy <<a href="mailto:nasida@live.ru" target="_blank">nasida@live.ru</a>> wrote:<br>
</div>
<blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Hi guys,</div>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
It sounds simple but I can not get  domain name in VIA header (INVITE) instead of IP address.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
It is just </div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
FS ---INVITE --> Kamailio --INVITE--> endpoint</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Kamailio gets INVITE, and adds one more VIA with it's IP address. How to get domain name instead ?</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
Please advice.</div>
<div style="font-family:Calibri,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)">
<br>
</div>
</div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
</div>
</div>
</div>

_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>
_______________________________________________<br>
Kamailio (SER) - Users Mailing List<br>
<a href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a><br>
<a href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" rel="noreferrer" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote></div>