This class provides methods for getting or setting information about the media being passed between the device to the server. For example in a music download purchase, this class will identify the type of data in the transaction.
This class is used to get and set the media information. The Accounting class transfers the media information to the Charging Collection Function.
Accounting acct = new Accounting(); SDPmedia[] mediaArray = new SDPmedia[2]; SDPmedia media1 = new SDPmedia(); media1.setGprsChargingId("charging id 1"); media1.setSdpMediaDescription("c=IN IP4 134.134.157.81"); media1.setSdpMediaName("m=video51372"); mediaArray[0] = media1; SDPmedia media2 = new SDPmedia(); media2.setGprsChargingId("charging id 2"); media2.setSdpMediaDescription("c=IN IP4 134.134.157.34"); media2.setSdpMediaName("m=video51372"); mediaArray[1] = media2; acct.setASDPmedia(mediaArray);
Method | Type | Returns | Description |
---|---|---|---|
getSdpMediaName | String | sdpMediaName | Retrieves the media name. The name starts with m =, such as: m = media port transport fmt list Where:
|
getSdpMediaDescription | String | sdpMediaDescription | Retrieves the connection information for media transactions. |
getGprsChargingId | String | gprsChargingId | Retrieves the IMS charging identifier. |
Method | Parameter | Type | Description |
---|---|---|---|
setSdpMediaName | sdpMediaName | String | Sets the name of media. |
setSdpMediaDescription | sdpMediaDescription | String | Sets the connection information for media transactions. |
setGprsChargingId | gprsChargingId | String | Sets the IMS charging identifier. |