Skip to content
Snippets Groups Projects
Commit e0e17c83 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#2274] Set display name for "Contact" sip header as the hostname

parent da36bcaa
Branches
Tags
No related merge requests found
...@@ -514,6 +514,10 @@ std::string SIPAccount::getContactHeader (const std::string& address, const std: ...@@ -514,6 +514,10 @@ std::string SIPAccount::getContactHeader (const std::string& address, const std:
transport = ""; transport = "";
} }
_displayName = Manager::instance().getConfigString(_accountID, DISPLAY_NAME);
_debug("Display Name: %s\n", _displayName.c_str());
int len = pj_ansi_snprintf (contact, PJSIP_MAX_URL_SIZE, int len = pj_ansi_snprintf (contact, PJSIP_MAX_URL_SIZE,
"%s%s<%s%s%s%s%s%s:%d%s>", "%s%s<%s%s%s%s%s%s:%d%s>",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment