[asterisk-dev] Asterisk 16. PJSIP. INVITE. "Contact" field and FQDN
Joshua C. Colp
jcolp at digium.com
Tue Oct 30 08:19:12 CDT 2018
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
More information about the asterisk-dev
mailing list