WebSphere brand IBM WebSphere IP Multimedia Subsystem Connector, Version 6.2

Class SDPmedia (Deprecated)

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.

Usage

This class is used to get and set the media information. The Accounting class transfers the media information to the Charging Collection Function.

Example

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);

Get methods

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:
  • media represents the type of media, such as audio, video, application, data, and control
  • port represents the transport port that receives the media stream
  • transport represents the protocol used, such as UDP
  • fmt list represents the list of media formats
getSdpMediaDescription String sdpMediaDescription

Retrieves the connection information for media transactions.

getGprsChargingId String gprsChargingId

Retrieves the IMS charging identifier.

Set methods

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.



Terms of use
(C) Copyright IBM Corporation 2009. All Rights Reserved.