Class SIPml.Event
Defined in: SIPml.js.
Constructor Attributes | Constructor Name and Description |
---|---|
SIPml.Event(type, event)
SIP event object.
|
Field Attributes | Field Name and Description |
---|---|
User-friendly description in english (e.g.
|
|
The event type or identifier (e.g.
|
Method Attributes | Method Name and Description |
---|---|
Gets the SIP content associated to this event.
|
|
Gets the SIP content associated to this event.
|
|
Gets the SIP content-type associated to this event.
|
|
Gets the SIP response code.
|
Class Detail
SIPml.Event(type, event)
SIP event object. You should never create an instance of this class by yourself.
- Parameters:
- {String} type
- The event type or identifier. Please check this link for more information about all supported session event types.
- {tsip_event} event Optional
- Private wrapped session object.
Field Detail
{String}
description
User-friendly description in english (e.g. 'Session is now connected').
{String}
type
The event type or identifier (e.g. 'connected').
Method Detail
{Object}
getContent()
Gets the SIP content associated to this event. This function could be called to get the content of the incoming SIP message ('i_new_message' event).
- Returns:
- {Object} SIP content.
{String}
getContentString()
Gets the SIP content associated to this event. This function could be called to get the content of the incoming SIP message ('i_new_message' event).
- Returns:
- {String} SIP content.
- See:
- getContentType, getContent
{Object}
getContentType()
Gets the SIP content-type associated to this event. This function could be called to get the content-type of the incoming SIP message ('i_new_message' event).
- Returns:
- {Object} SIP content-type.
- See:
- getContent
{Integer}
getSipResponseCode()
Gets the SIP response code.
- Returns:
- {Integer} The SIP response code (e.g. 404).