<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=koi8-r">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div><font size="2"><span style="font-size:11pt">"NAT code" - it`s  ./res/res_pjsip_nat.c   ?<br>
</span></font></div>
<div><font size="2"><span style="font-size:11pt"> "multihomed code"  - What is this ?<br>
</span></font></div>
<div><font size="2"><span style="font-size:11pt"><br>
</span></font></div>
<div><br>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> Joshua C. Colp <jcolp@digium.com><br>
<b>Sent:</b> Tuesday, October 30, 2018 16:33<br>
<b>To:</b> Колтогян Сергей Рубенович U2; Asterisk Developers Mailing List<br>
<b>Subject:</b> Re: [asterisk-dev] Asterisk 16. PJSIP. INVITE. "Contact" field and FQDN</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText">On Tue, Oct 30, 2018, at 11:31 AM, KoltogyanU2 SergeyU2 wrote:<br>
<br>
<snip><br>
 <br>
> Apparently sip_uri->host  has already had the value  "ast.firma.org",<br>
> but in the INVITE  in the "Contact" field - ip address = 11.22.33.44:<br>
> Contact: <sip:asterisk654@11.22.33.44:5061;transport=TLS><br>
> <br>
> Such INVITE sent asterisk:<br>
> <--- Transmitting SIP request (813 bytes) to TLS:52.114.76.76:5061 ---><br>
> INVITE sip:+380770081@sip.pstnhub.microsoft.com:5061 SIP/2.0<br>
> Via: SIP/2.0/TLS 11.22.33.44:5061;rport;branch=z9hG4bKPj70d53a0c-a0f3-<br>
> 479a-8917-00082632d069;alias<br>
> From: <sip:6001@ast.firma.org>;tag=afd3b600-886a-45fb-a120-5faac8220cec<br>
> To: <sip:+380770081@sip.pstnhub.microsoft.com><br>
> Contact: <sip:asterisk654@11.22.33.44:5061;transport=TLS><br>
> Call-ID: b0323db6-6e7f-4dc4-bfa9-309683031962<br>
> CSeq: 20795 INVITE<br>
<br>
You would need to track down why that is, then. It may be that the NAT code or multihomed code is changing it.<br>
<br>
-- <br>
Joshua C. Colp<br>
Digium - A Sangoma Company | Senior Software Developer<br>
445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>
Check us out at: <a href="https://emea01.safelinks.protection.outlook.com/?url=www.digium.com&amp;data=02%7C01%7Cu2%40amintegrator.com%7Cdebac7a77e244af4176608d63e74b5c6%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636765068326808022&amp;sdata=TGYAaYvOZ14iQlGdS%2BvWLvPEkxKBVsm4pjPq1CX41tY%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=www.digium.com&amp;data=02%7C01%7Cu2%40amintegrator.com%7Cdebac7a77e244af4176608d63e74b5c6%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636765068326808022&amp;sdata=TGYAaYvOZ14iQlGdS%2BvWLvPEkxKBVsm4pjPq1CX41tY%3D&amp;reserved=0</a>
 & <a href="https://emea01.safelinks.protection.outlook.com/?url=www.asterisk.org&amp;data=02%7C01%7Cu2%40amintegrator.com%7Cdebac7a77e244af4176608d63e74b5c6%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636765068326808022&amp;sdata=X5u24UsJTIinAyFOBpz87aUuBbQ7o7k0NsNTEmOiC50%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=www.asterisk.org&amp;data=02%7C01%7Cu2%40amintegrator.com%7Cdebac7a77e244af4176608d63e74b5c6%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636765068326808022&amp;sdata=X5u24UsJTIinAyFOBpz87aUuBbQ7o7k0NsNTEmOiC50%3D&amp;reserved=0</a><br>
</div>
</span></font></div>
</div>
</body>
</html>