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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@xxxxxxxxxxxxxxx
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux