MSC_ConnectionHandler: check template before using isvalue()

The function f_establish_fully may be called with template ass_tpl set
to "omit". In this case we must make sure that we do not pass ass_tpl on
to isvalue().

Change-Id: Ie094e5b56a851351671327b475d5e597a5a94bf6
This commit is contained in:
Philipp Maier 2020-08-11 22:54:07 +02:00 committed by laforge
parent 345a15f213
commit 4ce978ca5d
1 changed files with 1 additions and 1 deletions

View File

@ -1005,7 +1005,7 @@ runs on MSC_ConnHdlr {
var BSSMAP_FIELD_CodecType codecType;
timer T := 10.0;
if (isvalue(ass_tpl.pdu.bssmap.assignmentRequest.codecList)) {
if (not istemplatekind(ass_tpl, "omit") and isvalue(ass_tpl.pdu.bssmap.assignmentRequest.codecList)) {
codecType := valueof(ass_tpl.pdu.bssmap.assignmentRequest.codecList.codecElements[0].codecType);
} else {
/* Make sure a meaningful default is assigned in case the