Status: Started
Owner: [email protected]
CC: [email protected],  [email protected],  [email protected]
Labels: Type-Defect Priority-Medium Component-SS7 Roadmap-Fix Version-1.0.0.BETA2

New issue 132 by [email protected]: TCAP: ParameterImpl: support for extra parameter length field
http://code.google.com/p/jss7/issues/detail?id=132

Huawei checkImei extentions (for carrying extra IMSI parameter in Request for MAP protocol V2) has a malformed parameter.

Standard parameter contains only IMEI parameter like:
4, 8, XX, XX, XX, XX, XX, XX, XX, XX

Huawei extentions has extra parameter at the end of IMEI:
4, 8, XX, XX, XX, XX, XX, XX, XX, XX, 0, 8, XX, XX, XX, XX, XX, XX, XX, XX

Current ParameterImpl does not contain a special "length" field and it works with the length of encoded data array.

So for ParameterImpl we should have two values for the "length":
1. the count of bytes that field contains
2. the value for the length field for encoding
These all fields are equal in the all cases except Huawei checkImei extentions

For the first field the value "Parameter.getData().length" is used now. I suggests to leave this same
For the second field I suggest to add methods:
void Parameter.setEncodingLength(Integer value);
Integer Parameter.setEncodingLength();
In the most cases this new field will not be used and other code need not to be updated.



Reply via email to