Fixed the encoding of raw hex parameters, it was reporting wrong length.

git-svn-id: http://voip.null.ro/svn/yate@3226 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2010-04-21 08:16:19 +00:00
parent 1a0ced9c85
commit 2024c8f685
1 changed files with 2 additions and 2 deletions

View File

@ -407,10 +407,10 @@ static unsigned char encodeRaw(const SS7ISUP* isup, SS7MSU& msu,
::memcpy(buf,raw.data(),raw.length());
return raw.length();
}
unsigned char size = param->size ? (unsigned char)param->size : (unsigned char)raw.length();
unsigned char size = (unsigned char)raw.length();
msu.append(&size,1);
msu += raw;
return raw.length() + size;
return size;
}
// Encoder for fixed length ISUP indicators (flags)