Added an explicit boolean redirect parameter to simplify detecting a redirection or diversion.

git-svn-id: http://voip.null.ro/svn/yate@2551 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-03-29 18:37:32 +00:00
parent 59261b3b58
commit 535a559422
1 changed files with 1 additions and 0 deletions

View File

@ -3206,6 +3206,7 @@ bool YateSIPConnection::process(SIPEvent* ev)
// this is a redirect, it should provide a Contact and possibly a Diversion
const MimeHeaderLine* hl = msg->getHeader("Contact");
if (hl) {
parameters().addParam("redirect",String::boolText(true));
URI uri(*hl);
parameters().addParam("called",uri.getUser());
if (uri.getDescription())