-*/
-/*
- <command name="Credit-Control-Request" code="272" type="Request">
- <avprule id="Session-Id" type="Fixed"/>
- <avprule id="Origin-Host" type="Mandatory"/>
- <avprule id="Origin-Realm" type="Mandatory"/>
- <avprule id="Destination-Realm" type="Mandatory"/>
- <avprule id="Auth-Application-Id" type="Mandatory"/>
- <avprule id="Service-Context-Id" type="Mandatory"/>
- <avprule id="CC-Request-Type" type="Mandatory"/>
- <avprule id="CC-Request-Number" type="Mandatory"/>
- <avprule id="Event-Timestamp" type="Optional"/>
- <avprule id="Subscription-Id" type="Mandatory" qual="*"/>
- <avprule id="Termination-Cause" type="Optional"/>
- <avprule id="Requested-Service-Unit" type="Optional"/>
- <avprule id="Requested-Action" type="Optional"/>
- <avprule id="Used-Service-Unit" type="Optional"/>
- <avprule id="CC-Correlation-Id" type="Optional"/>
- <avprule id="User-Equipment-Info" type="Optional"/>
- <avprule id="Proxy-Info" type="Optional" qual="*"/>
- <avprule id="Route-Record" type="Optional" qual="*"/>
- <avprule id="Service-Information" type="Optional"/>
- <avprule id="AVP" type="Optional" qual="*"/>
- </command>
+ int inRange = 65535;
+ int outRange = inRange + 1;
+ //((tmeAvp*)cca.addAvp("CS-Result-Code"))->getUnsigned16()->setValue(inRange);
+ ((tmeAvp*)cca.addAvp("CS-Result-Code"))->getUnsigned16()->setValue(outRange); // WILL BE 0 !!