The Accounting class includes methods that get and set information for offline charging.
The methods can get or set details about the specific transaction. This information is used to determine how much to charge.
This class passes charging information as a single parameter to the Charging Collection Function.
Accounting acct = new Accounting(); //create Accounting object acct.setUserSessionId("a84b4c76e66710@test.acme.com"); acct.setServiceId("12345"); ACAResults results = service.startRfAccounting("MySessionId", "MyUserName", 0, "example.com", 2085978496000, 0,acct);
Method | Type | Returns | Description |
---|---|---|---|
getAAppSrvInfo | AppServInfo | aAppSrvInfo | Retrieves information about the accounting servers and identifies information needed to keep track of transactions between networks for charging purposes. |
getACauseCode | CauseCode | aCauseCode | Retrieves the cause codes that may have occurred during an accounting request. |
getASDPmedia | SDPmedia[ ] | aSDPmedia | Retrieves information about the type of media involved in the accounting transaction. |
getASipInfo | SipInfo | aSipInfo | Retrieves SIP information used in accounting to keep track of the parties involved and the type of transaction. |
getATrunkGroup | TrunkGroup | aTrunkGroup | Retrieves information which identifies the Public Telephone Switched Network (PSTN). |
getAuthorisedQos | String | authorisedQos | Retrieves the quality of service. |
getAUUSdata | UUSdata | aUUSdata | Retrieves the information for the User to User Protocol used by accounting to keep track of the amount and type of data involved in the transaction. |
getBearerService | String | bearerService | Retrieves the used bearer service for the PSTN. |
getGgsnAddress | String | ggsnAddress | Retrieves the IP address of the Gateway GPRS Support Node (GGSN) in the session. |
getImsChargingIndentifier | String | imsChargingIndentifier | Retrieves the IMS Charging identifier (ICID) as generated by a node for a SIP session. Example: String icid = accountingResults.getImsChargingIdentifier(); |
getRoleofNode | int | roleofNode | Retrieves the role of the IMS™ Application Server or
the CSCF. Roles include:
|
getSdpSessionDescription | String | sdpSessionDescription | Retrieves the session of the SDP data when it is exchanged between the user agents in the SIP transaction. |
getServedPartyIPaddress | String | servedPartyIPaddress | Retrieves the address of the calling party or the
called party.
Note: Only the following attribute lines for charging are recorded:
|
getServiceId | String | serviceId | Retrieves the service the media resource function controller (MRFC) is hosting and is the value of the conference ID. |
getUserSessionId | String | userSessionId | Retrieves the SIP session and contains the SIP call ID. |
Method | Parameters | Type | Description |
---|---|---|---|
setAAppSrvInfo | appSrvInfo | AppServInfo | Defines information about the accounting servers and identifies information needed to keep track of transactions between networks for charging purposes. |
setACauseCode | causeCode | CauseCode | Defines the cause codes that may have occurred during an accounting request. |
setASDPmedia | pmedia | SDPmedia[ ] | Defines information about the type of media involved in the accounting transaction. |
setASipInfo | sipInfo | SipInfo | Defines SIP information used in accounting to keep track of the parties involved and the type of transaction. |
setATrunkGroup | trunkGroup | TrunkGroup | Defines information which identifies the PSTN. |
setAuthorisedQos | authorisedQos | String | Defines the quality of service. |
setAUUSdata | sdata | UUSdata | Defines the information for the User to User Protocol used by accounting to keep track of the amount and type of data involved in the transaction. |
setBearerService | bearerService | String | Defines the used bearer service for the PSTN. |
setGgsnAddress | ggsnAddress | String | Defines the IP address of the GGSN in the session. |
setImsChargingIndentifier | imsChargingIndentifier | String | Defines the ICID as generated by a node for a SIP session. |
setRoleofNode | roleofNode | int | Defines the role of the IMS Application Server or
the CSCF. Roles include:
|
setSdpSessionDescription | sdpSessionDescription | String | Defines the session of the SDP data when it is exchanged between the user agents in the SIP transaction. |
setServedPartyIPaddress | servedPartyIPaddress | String | Defines the address of the calling party or the called
party.
Note: Only the following attribute lines for charging are recorded:
|
setServiceId | serviceId | String | Defines the service the media resource function controller (MRFC) is hosting and is the value of the conference ID. |
setUserSessionId | userSessionId | String | Defines the SIP session and contains the SIP call ID. |