Search
Preparing search index...
The search index is not available
Webphone Lib
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Globals
Invitation
Class Invitation
Hierarchy
SessionImpl
Invitation
Implements
ISession
Index
Constructors
constructor
Properties
_remote
Identity
accepted
Promise
audio
Connected
cancelled
hold
State
id
invite
Options
is
Incoming
media
said
Bye
session
stats
status
terminated
Reason
default
Max
Listeners
Accessors
auto
Answer
end
Time
local
Stream
phone
Number
remote
Identity
remote
Stream
start
Time
Methods
accept
accepted
add
Listener
attended
Transfer
blind
Transfer
bye
cancel
dtmf
emit
event
Names
extract
Remote
Identity
freeze
get
Max
Listeners
hold
listener
Count
listeners
make
Invite
Options
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
rebuild
Session
Description
Handler
reinvite
reject
remove
All
Listeners
remove
Listener
set
Max
Listeners
terminate
terminated
tried
unhold
listener
Count
Constructors
constructor
new
Invitation
(
options
:
any
)
:
Invitation
Parameters
options:
any
Returns
Invitation
Properties
Protected
_remote
Identity
_remote
Identity
:
IRemoteIdentity
Protected
accepted
Promise
accepted
Promise
:
Promise
<
ISessionAccept
>
audio
Connected
audio
Connected
:
Promise
<
void
>
Protected
Optional
cancelled
cancelled
:
ISessionCancelled
hold
State
hold
State
:
boolean
id
id
:
string
Protected
invite
Options
invite
Options
:
InviterInviteOptions
is
Incoming
is
Incoming
:
boolean
media
media
:
SessionMedia
said
Bye
said
Bye
:
boolean
Protected
session
session
:
SIPInvitation
stats
stats
:
SessionStats
status
status
:
SessionStatus
= SessionStatus.TRYING
Protected
Optional
terminated
Reason
terminated
Reason
:
string
Static
default
Max
Listeners
default
Max
Listeners
:
number
Accessors
auto
Answer
auto
Answer
:
end
Time
end
Time
:
local
Stream
local
Stream
:
phone
Number
phone
Number
:
remote
Identity
remote
Identity
:
remote
Stream
remote
Stream
:
start
Time
start
Time
:
Methods
accept
accept
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
accepted
accepted
(
)
:
Promise
<
ISessionAccept
>
Returns
Promise
<
ISessionAccept
>
add
Listener
add
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
attended
Transfer
attended
Transfer
(
target
:
SessionImpl
)
:
Promise
<
boolean
>
Parameters
target:
SessionImpl
Returns
Promise
<
boolean
>
blind
Transfer
blind
Transfer
(
target
:
string
)
:
Promise
<
boolean
>
Parameters
target:
string
Returns
Promise
<
boolean
>
bye
bye
(
)
:
Promise
<
OutgoingByeRequest
>
Returns
Promise
<
OutgoingByeRequest
>
cancel
cancel
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
dtmf
dtmf
(
tones
:
string
, options
:
any
)
:
boolean
Parameters
tones:
string
Optional
options:
any
Returns
boolean
emit
emit
(
event
:
string
|
symbol
, args
:
any
[]
)
:
boolean
Parameters
event:
string
|
symbol
Rest
args:
any
[]
Returns
boolean
event
Names
event
Names
(
)
:
Array
<
string
|
symbol
>
Returns
Array
<
string
|
symbol
>
Protected
extract
Remote
Identity
extract
Remote
Identity
(
)
:
object
Returns
object
freeze
freeze
(
)
:
ISession
Returns
ISession
get
Max
Listeners
get
Max
Listeners
(
)
:
number
Returns
number
hold
hold
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
listener
Count
listener
Count
(
type
:
string
|
symbol
)
:
number
Parameters
type:
string
|
symbol
Returns
number
listeners
listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
Protected
make
Invite
Options
make
Invite
Options
(
__namedParameters
:
object
)
:
object
Parameters
__namedParameters:
object
Returns
object
off
off
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
on
on
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
once
once
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
prepend
Listener
prepend
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
prepend
Once
Listener
prepend
Once
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
raw
Listeners
raw
Listeners
(
event
:
string
|
symbol
)
:
Function
[]
Parameters
event:
string
|
symbol
Returns
Function
[]
rebuild
Session
Description
Handler
rebuild
Session
Description
Handler
(
)
:
void
Returns
void
reinvite
reinvite
(
modifiers
?:
SessionDescriptionHandlerModifiers
)
:
Promise
<
void
>
Parameters
Default value
modifiers:
SessionDescriptionHandlerModifiers
= []
Returns
Promise
<
void
>
reject
reject
(
rejectOptions
:
InvitationRejectOptions
)
:
Promise
<
void
>
Parameters
Optional
rejectOptions:
InvitationRejectOptions
Returns
Promise
<
void
>
remove
All
Listeners
remove
All
Listeners
(
event
:
string
|
symbol
)
:
this
Parameters
Optional
event:
string
|
symbol
Returns
this
remove
Listener
remove
Listener
(
event
:
string
|
symbol
, listener
:
function
)
:
this
Parameters
event:
string
|
symbol
listener:
function
(
args
:
any
[]
)
:
void
Parameters
Rest
args:
any
[]
Returns
void
Returns
this
set
Max
Listeners
set
Max
Listeners
(
n
:
number
)
:
this
Parameters
n:
number
Returns
this
terminate
terminate
(
)
:
Promise
<
OutgoingByeRequest
>
Returns
Promise
<
OutgoingByeRequest
>
terminated
terminated
(
)
:
Promise
<
string
|
void
>
Returns
Promise
<
string
|
void
>
tried
tried
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
unhold
unhold
(
)
:
Promise
<
boolean
>
Returns
Promise
<
boolean
>
Static
listener
Count
listener
Count
(
emitter
:
EventEmitter
, event
:
string
|
symbol
)
:
number
Parameters
emitter:
EventEmitter
event:
string
|
symbol
Returns
number
Globals
Invitation
constructor
_remote
Identity
accepted
Promise
audio
Connected
cancelled
hold
State
id
invite
Options
is
Incoming
media
said
Bye
session
stats
status
terminated
Reason
default
Max
Listeners
auto
Answer
end
Time
local
Stream
phone
Number
remote
Identity
remote
Stream
start
Time
accept
accepted
add
Listener
attended
Transfer
blind
Transfer
bye
cancel
dtmf
emit
event
Names
extract
Remote
Identity
freeze
get
Max
Listeners
hold
listener
Count
listeners
make
Invite
Options
off
on
once
prepend
Listener
prepend
Once
Listener
raw
Listeners
rebuild
Session
Description
Handler
reinvite
reject
remove
All
Listeners
remove
Listener
set
Max
Listeners
terminate
terminated
tried
unhold
listener
Count
Generated using
TypeDoc