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:
parent
9d14264c3a
commit
78e9e6d942
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue