Always handle message compatibility flags (ignore transit/end node flag).

git-svn-id: http://voip.null.ro/svn/yate@3590 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2010-08-30 22:54:07 +00:00
parent 0f5674f9db
commit b70a6b56b1
1 changed files with 2 additions and 4 deletions

View File

@ -2030,8 +2030,7 @@ static void getMsgCompat(SS7MsgISUP* msg, bool& release, bool& cnf)
if (msgCompat) {
ObjList* l = msgCompat->split(',',false);
// Use a while() to make sure the list is destroyed
// Assume we are not a transit network
while (l->find("end-node")) {
do {
release = (0 != l->find("release"));
if (release)
break;
@ -2043,8 +2042,7 @@ static void getMsgCompat(SS7MsgISUP* msg, bool& release, bool& cnf)
// Pass on set: we didn't passed on the message. Check REL/CNF
release = (0 != l->find("nopass-release"));
cnf = !release && l->find("cnf");
break;
}
} while(false);
TelEngine::destruct(l);
}
else