I found a place in res_pjsip.c, where a new "contact_user" is added.
This is file   ./res/res_pjsip.c  string 3514
pj_strdup2(dlg->pool, &sip_uri->user, endpoint->contact_user);

I Tried this:
pj_strdup2(dlg->pool, &sip_uri->user, "XXYYZZ");
So it works - it changes the ContactUserName ( on the left of @ ).

But I do not find a place where I can enter FQDN, instead of the IP address.
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?



________________________________
From: asterisk-dev <asterisk-dev-boun...@lists.digium.com> on behalf of Joshua 
C. Colp <jc...@digium.com>
Sent: Tuesday, October 30, 2018 14:19
To: asterisk-dev@lists.digium.com
Subject: Re: [asterisk-dev] Asterisk 16. PJSIP. INVITE. "Contact" field and FQDN

On Tue, Oct 30, 2018, at 9:12 AM, Mani Kanta Gadde wrote:
> I think you can also set the DNS instead of IP itself. Try it
> Thanks & Regards
> Manikanta

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.

--
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: 
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.asterisk.org&amp;data=02%7C01%7Cu2%40amintegrator.com%7C8fef6e3cc0784547d3cb08d63e61fe51%7C806bcdf8cdfb4595995e80fbcae20097%7C0%7C0%7C636764987937407942&amp;sdata=3cFldB%2Bbb3VHyPd87t1tvSPevM3vvzfyNygN5poCp1k%3D&amp;reserved=0

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by 
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
 --

Astricon is coming up October 9-11!  Signup is available at: 
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

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   
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
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Astricon is coming up October 9-11!  Signup is available at: 
https://www.asterisk.org/community/astricon-user-conference

asterisk-dev mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-dev

Reply via email to