use of net.java.slee.resource.diameter.rf.events.RfAccountingRequest in project jain-slee.diameter by RestComm.
the class RfMessageFactoryImpl method createRfAccountingRequest.
public RfAccountingRequest createRfAccountingRequest(AccountingRecordType accountingrecordtype) {
DiameterAvp[] avps = new DiameterAvp[] {};
RfAccountingRequest acr = (RfAccountingRequest) createRfAccountingMessage(null, avps);
if (this.sessionId != null) {
acr.setSessionId(sessionId);
}
// acr.setAcctApplicationId(_RF_ACC_APP_ID);
acr.setAccountingRecordType(accountingrecordtype);
return acr;
}
use of net.java.slee.resource.diameter.rf.events.RfAccountingRequest in project jain-slee.diameter by RestComm.
the class RfServerSessionActivityImpl method createRfAccountingAnswer.
public RfAccountingAnswer createRfAccountingAnswer() {
RfAccountingAnswer answer = null;
for (int index = 0; index < stateMessages.size(); index++) {
if (stateMessages.get(index).getCommand().getCode() == RfAccountingRequest.commandCode) {
RfAccountingRequest msg = (RfAccountingRequest) stateMessages.get(index);
answer = createRfAccountingAnswer(msg);
if (!answer.hasSessionId() && session != null) {
answer.setSessionId(session.getSessionId());
}
((DiameterMessageImpl) answer).setData(msg);
break;
}
}
return answer;
}
Aggregations