WebSphere brand IBM WebSphere IP Multimedia Subsystem Connector, Version 6.2

Class SipInfo (Deprecated)

This class includes methods that get and set information for the SIP information protocol that is used by the Accounting class.

Usage

The methods can get or set details about the specific transaction, such as what type of data and how much data was transferred. This information is used to determine how much to charge.

This class transfers SIP requests. The Accounting class passes the information to the Charging Collection Function.

Example

Accounting acct = new Accounting();
SipInfo si = new SipInfo();
si.setCalledPartyAddress("sip:alice@example.com");
si.setCallingPartyAddress("sip:bob@example.com");
si.setContentDisposition("session;handling=optional");
si.setContentLength("142");
si.setContentType("application/sdp");
si.setEvent("subscribe header");
si.setSipMethod("INVITE");
si.setSipRequest("1141094426");
si.setSipResponse("114109943");
acct.setASipInfo(si);

Get methods

Method Type Returns Description
getCalledPartyAddress String calledPartyAddress

Retrieves the address for the established session.

Example: sip@amy.example.com

getCallingPartyAddress String callingPartyAddress

Retrieves the address of the third party initiating the session.

Example: Public User ID: sip@bob.example.com

getContentDisposition String contentDisposition

Indicates how the message body is interpreted.

Example: contentDisposition="render"

getContentLength String contentLength

Retrieves the size of the message body. There are no size limitations.

Example: 12345678

getContentType String contentType

Retrieves the media type. Possible values are application, html, sdp, or text.

Example: contentType="application"

getEvent String event

Retrieves content of the event handler used in SUBSCRIBE and NOTIFY functions.

getSipMethod String sipMethod

Retrieves the name of SIP method.

Example: INVITE

getSipRequest String sipRequest

Retrieves the time in UTC format of the initial SIP request.

Example: Invite

getSipResponse String sipResponse

Retrieves the time in UTC format of the response to the initial SIP request.

Example: 200 OK

Set methods

Method Parameters Type Description
setCalledPartyAddress calledPartyAddress String

Defines the address for the established session.

setCallingPartyAddress callingPartyAddress String

Defines the address of the third party initiating the session.

setContentDisposition contentDisposition String

Defines how the message body is interpreted.

setContentLength contentLength String

Defines the size of the message body. There are no size limitations.

setContentType contentType String

Defines the media type. Possible values are application, html, sdp, or text.

setEvent event String

Defines content of the event handler used in SUBSCRIBE and NOTIFY functions.

setSipMethod sipMethod String

Defines the name of SIP method.

setSipRequest sipRequest String

Defines the time in UTC format of the initial SIP request.

setSipResponse sipResponse String

Defines the time in UTC format of the response to the initial SIP request.




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