On Tue, Oct 30, 2018, at 10:16 AM, KoltogyanU2 SergeyU2 wrote:
> 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?

The structure of a PJSIP SIP URI is documented in their doxygen[1], this 
includes the part you are looking for (the hostname portion).

[1] https://www.pjsip.org/pjsip/docs/html/structpjsip__sip__uri.htm

-- 
Joshua C. Colp
Digium - A Sangoma Company | Senior Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - US
Check us out at: www.digium.com & www.asterisk.org

-- 
_____________________________________________________________________
-- 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