RestComm / jss7

RestComm Java SS7 Stack and Services
http://www.restcomm.com/
GNU Affero General Public License v3.0
181 stars 218 forks source link

CAP Apply Charging handling improvments #115

Closed AlerantAppNGIN closed 6 years ago

AlerantAppNGIN commented 8 years ago

Hello,

I extracted some mods from our fork here is the description of modifications and I'll also send a PR which makes things even clearer :-)

Description:

Regards, Gabor

vetss commented 8 years ago

Hello @AlerantAppNGIN

thank you for provided update in https://github.com/RestComm/jss7/pull/116. I have not committed it fully (it is little bit complicated) but created a cunulative commit for code updates that we can accept: https://github.com/RestComm/jss7/commit/8836b0379a706955cea6bd574c3c0880f06ae386

My comments:

1) thank you for a catch and provided code for wrong implemented CAMELAchBillingChargingCharacteristicsImpl. I include most of your code but with several changes for minimizing of changes. Please check my update.

2) When we were implementing primitives like "BOOLEAN DEFAULT FALSE" (with default) values we thought of two type of options: a) decode just what has come from a peer and let a CAP user use of some default value if a parameter is null b) fill a default value at the step of decoding We decided to follow "a)" way so not filling of any default value. The same we do at XML serializing. Let's not change existing behavior as much as it possible. The same if for "Added concrete CAP version to InitialDP instead of "isCapVersion3OrLater"." - I have not added this update in order not to breake current behaviour.

Please ley me know if you have some remarks for mu update.

gsaslis commented 6 years ago

@knosach is this closed as invalid nowadays, or fixed?

knosach commented 6 years ago

hi @gsaslis it was fixed