Always set cause_sip and reason_sip in channel params when processing the sip transaction.

git-svn-id: http://voip.null.ro/svn/yate@5663 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2013-10-10 13:18:21 +00:00
parent fe3c451069
commit 5d0f4b7135
1 changed files with 9 additions and 0 deletions

View File

@ -6167,10 +6167,19 @@ bool YateSIPConnection::process(SIPEvent* ev)
m_byebye = false;
paramMutex().lock();
parameters().setParam("cause_sip","408");
parameters().clearParam("reason_sip");
paramMutex().unlock();
setReason("Request Timeout",code);
hangup();
}
else if (!m_hungup && code >= 100) {
Lock lck(paramMutex());
parameters().setParam("cause_sip",String(code));
if (msg && msg->reason)
parameters().setParam("reason_sip",msg->reason);
else
parameters().clearParam("reason_sip");
}
// Only update channels' callid if dialog tags change
if (updateTags) {