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:
parent
1a0ced9c85
commit
2024c8f685
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue