AnonymousClass SIPml.Session.Configuration
SIPml.Session.Configuration
Defined in: SIPml.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Anonymous SIP Session configuration object.
|
Field Attributes | Field Name and Description |
---|---|
Session timeout in seconds.
|
|
Set the source uri string to be used in the From header (available since API version 1.2.170).
|
|
{name,value} pairs defining the SIP capabilities associated to this session.
|
|
{name,value,session} trios defining the SIP headers associated to this session.
|
|
AnonymousClass Detail
SIPml.Session.Configuration
Anonymous SIP Session configuration object.
var configuration = { expires: 200, audio_remote: document.getElementById('audio_remote'), video_local: document.getElementById('video_local'), video_remote: document.getElementById('video_remote'), sip_caps: [ {name: '+g.oma.sip-im'}, {name: '+sip.ice'}, {name: 'language', value: '\"en,fr\"'} ], sip_headers: [ {name: 'What', value: 'Audio/Video call', session: false}, {name: 'Organization', value: 'Doubango Telecom', session: false} ] }
Field Detail
{HTMLAudioElement}
audio_remote
HTMLAudioElement used to playback the remote audio stream. This propety should be only used for audio sessions.
{Integer}
expires
Session timeout in seconds.
{String}
from
Set the source uri string to be used in the From header (available since API version 1.2.170).
{Array}
sip_caps
{name,value} pairs defining the SIP capabilities associated to this session. The capabilities are added to the Contact header. Please refer to rfc3840 and rfc3841 for more information.
{Array}
sip_headers
{name,value,session} trios defining the SIP headers associated to this session. session is a boolean defining whether the header have to be added to all outgoing request or not (initial only).
{HTMLVideoElement}
video_local
HTMLVideoElement where to display the local video preview. This propety should be only used for video sessions.
{HTMLVideoElement}
video_remote
HTMLVideoElement where to display the remote video stream. This propety should be only used for video sessions.