From 78e9e6d9422228b16c4dd3c502ae25a72544ae1f Mon Sep 17 00:00:00 2001 From: paulc Date: Tue, 5 Aug 2014 15:13:20 +0000 Subject: [PATCH] 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 --- modules/ysipchan.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/ysipchan.cpp b/modules/ysipchan.cpp index f11c1cb6..82ac8458 100644 --- a/modules/ysipchan.cpp +++ b/modules/ysipchan.cpp @@ -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(m->getHeader("From")); + if (hl) { + String display = m_display; + MimeHeaderLine::addQuotes(display); + *hl = display + " " + *hl; + } + } return m; }