Asterisk16, pjsip, sip_dialog.c and filed "Contact:"

KS
KoltogyanU2 SergeyU2
Sun, Oct 21, 2018 3:02 PM

asterisk-16.0.0/third-party/pjproject/source/pjsip/src/pjsip/sip_dialog.c
............
/* Init local contact. /
pj_strdup_with_null(dlg->pool, &tmp,
local_contact ? local_contact : local_uri);
(string 229)    dlg->local.contact = (pjsip_contact_hdr
)
pjsip_parse_hdr(dlg->pool, &HCONTACT, tmp.ptr,
tmp.slen, NULL);
if (!dlg->local.contact) {
status = PJSIP_EINVALIDURI;
goto on_error;
}
...............

If I understood correctly, the "Connect" field is filled in line 229.
This is when the initiator of the Asterisk.
I know that the "Connect" field looks like this:

Contact: sip:asterisk@11.22.33.44:5061;transport=TLS

Where 11.22.33.44 - Source Public Asterisk IP Address ( for example )
In which variable is the content of the "Contact" field ?
Which variable is this string in?

Serg

asterisk-16.0.0/third-party/pjproject/source/pjsip/src/pjsip/sip_dialog.c ............ /* Init local contact. */ pj_strdup_with_null(dlg->pool, &tmp, local_contact ? local_contact : local_uri); (string 229) dlg->local.contact = (pjsip_contact_hdr*) pjsip_parse_hdr(dlg->pool, &HCONTACT, tmp.ptr, tmp.slen, NULL); if (!dlg->local.contact) { status = PJSIP_EINVALIDURI; goto on_error; } ............... If I understood correctly, the "Connect" field is filled in line 229. This is when the initiator of the Asterisk. I know that the "Connect" field looks like this: Contact: <sip:asterisk@11.22.33.44:5061;transport=TLS> Where 11.22.33.44 - Source Public Asterisk IP Address ( for example ) In which variable is the content of the "Contact" field ? Which variable is this string in? Serg