*** empty log message ***

git-svn-id: http://yate.null.ro/svn/yate/trunk@452 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-07-17 00:03:39 +00:00
parent 89ce064cb4
commit e60e799e1b
1 changed files with 2 additions and 0 deletions

View File

@ -956,8 +956,10 @@ void YateSIPConnection::hangup()
SIPMessage* m = createDlgMsg("BYE");
if (m) {
if (m_reason) {
// FIXME: add SIP and Q.850 cause codes, set the proper reason
SIPHeaderLine* hl = new SIPHeaderLine("Reason","SIP");
hl->setParam("text","\"" + m_reason + "\"");
m->addHeader(hl);
}
plugin.ep()->engine()->addMessage(m);
m->deref();