Place the configured account "description" in the From header of SIP REGISTER too.

git-svn-id: http://voip.null.ro/svn/yate@5901 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2014-08-05 15:13:20 +00:00
parent 9d14264c3a
commit 78e9e6d942
1 changed files with 8 additions and 0 deletions

View File

@ -8105,6 +8105,14 @@ SIPMessage* YateSIPLine::buildRegister(int expires)
}
m->setSequence(m_seq);
m->complete(plugin.ep()->engine(),m_username,domain(),0,m_flags);
if (m_display) {
MimeHeaderLine* hl = const_cast<MimeHeaderLine*>(m->getHeader("From"));
if (hl) {
String display = m_display;
MimeHeaderLine::addQuotes(display);
*hl = display + " " + *hl;
}
}
return m;
}