<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 style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span lang="en"><span>I found a place in res_pjsip.c, where a new "contact_user" is added</span></span>.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
This is file   ./res/res_pjsip.c  string 3514</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
pj_strdup2(dlg->pool, &sip_uri->user, endpoint->contact_user);</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I Tried this: </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
pj_strdup2(dlg->pool, &sip_uri->user, "XXYYZZ");</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span lang="en"><span>So it works - it changes the ContactUserName </span><span>( on the left of @ ).</span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span lang="en"><span><br>
</span></span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span lang="en"><span>But I do not find a place where I can enter FQDN, instead of the IP address</span></span>.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<span lang="en"><span>Someone can tell - in which place of the source text to make a change, what was right of @ was not an IP Address, but a FQDN?</span></span><br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<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> asterisk-dev <asterisk-dev-bounces@lists.digium.com> on behalf of Joshua C. Colp <jcolp@digium.com><br>
<b>Sent:</b> Tuesday, October 30, 2018 14:19<br>
<b>To:</b> asterisk-dev@lists.digium.com<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 9:12 AM, Mani Kanta Gadde wrote:<br>
> I think you can also set the DNS instead of IP itself. Try it<br>
> Thanks & Regards<br>
> Manikanta<br>
<br>
A hostname is not supported with the external_* options, for placement into the messages. It gets resolved down to the IP address. Placing a hostname into the Contact header URI host is not currently supported out of the box. The Contact stuff is handled within
 res_pjsip.c, the easiest option being to look for use of "contact_user" as that already modifies the user portion and using that as a base for any modification.<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%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=RlqsUvtKA0wb%2F3dWWqEEB5MxhvSIYvtwe5O%2FmS2WE%2FQ%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=www.digium.com&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=RlqsUvtKA0wb%2F3dWWqEEB5MxhvSIYvtwe5O%2FmS2WE%2FQ%3D&amp;reserved=0</a>
 & <a href="https://emea01.safelinks.protection.outlook.com/?url=www.asterisk.org&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=3cFldB%2Bbb3VHyPd87t1tvSPevM3vvzfyNygN5poCp1k%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=www.asterisk.org&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=3cFldB%2Bbb3VHyPd87t1tvSPevM3vvzfyNygN5poCp1k%3D&amp;reserved=0</a><br>
<br>
-- <br>
_____________________________________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.api-digital.com&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=Z4gx8OTFhl%2FqWOj4mT2tYZJJzrwzIA5fql8PSV55mpQ%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.api-digital.com&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=Z4gx8OTFhl%2FqWOj4mT2tYZJJzrwzIA5fql8PSV55mpQ%3D&amp;reserved=0</a>
 --<br>
<br>
Astricon is coming up October 9-11!  Signup is available at: <a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.asterisk.org%2Fcommunity%2Fastricon-user-conference&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=B1vCN2ini%2BXiEY18UfO%2BUF8MkW%2FF%2FgkEMJryV1wfgHU%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.asterisk.org%2Fcommunity%2Fastricon-user-conference&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=B1vCN2ini%2BXiEY18UfO%2BUF8MkW%2FF%2FgkEMJryV1wfgHU%3D&amp;reserved=0</a><br>
<br>
asterisk-dev mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
   <a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.digium.com%2Fmailman%2Flistinfo%2Fasterisk-dev&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=zxjbVaWbmeSQPb2c56NaZi2NchNuDLmlpPSBhBcqPWw%3D&amp;reserved=0">
https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.digium.com%2Fmailman%2Flistinfo%2Fasterisk-dev&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=zxjbVaWbmeSQPb2c56NaZi2NchNuDLmlpPSBhBcqPWw%3D&amp;reserved=0</a></div>
</span></font></div>
</div>
</body>
</html>