Fixed Call-Info parsing bug found by Yuri Gushin from Radware Inc.

git-svn-id: http://yate.null.ro/svn/yate/trunk@1228 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2007-03-26 11:00:29 +00:00
parent 729fabbc24
commit 86dea55cfe
1 changed files with 3 additions and 3 deletions

View File

@ -1656,11 +1656,11 @@ YateSIPConnection::YateSIPConnection(SIPEvent* ev, SIPTransaction* tr)
if (hl) {
const NamedString* type = hl->getParam("purpose");
if (!type || *type == "info")
m->addParam("caller_info_uri",*type);
m->addParam("caller_info_uri",*hl);
else if (*type == "icon")
m->addParam("caller_icon_uri",*type);
m->addParam("caller_icon_uri",*hl);
else if (*type == "card")
m->addParam("caller_card_uri",*type);
m->addParam("caller_card_uri",*hl);
}
if (line) {