v0.9.0 is not fully backward compatible with v0.8.x. This is because sip.js has gone through a major release and sip.js 0.15.x to 0.16.x has been with no backward compatibility
- The return type of
sendMessage
method has changed fromClientContext
toIncomingResponse
. More details onIncomingResponse
can be found on sip.js documentation atIncomingResponse
__invite
internal method has been removed.userAgent
still has theinvite
method which will work the same way__register
internal method has been removed.userAgent
still has theregister
method which will work the same way__unregister
internal method has been removed.userAgent
still has theunregister
method which will work the same way__transportConstructor
internal method has been removed. Transport creation is now handeled by theWebPhoneTransport.ts
class__onTransportConnected
internal method has been removedonTransportConnected
has been removed. Transport creation is now handeled by theWebPhoneTransport.ts
class
sip.js has removed all userAgent
events
WebPhone SDK will still supports some basic events on WebPhoneUserAgent
registered
: Fired when UserAgent is registered with the registererunregistered
: Fired when UserAgent is unregistered from the registererregistrationFailed
: Fired when UserAgent is registered with failure stateinviteSent
: Fired when Invite is sentinvite
: Fired when Invitation is receivedprovisionUpdate
: Fired when provisionUpdate notification is received from RingCentral backendstarted
: Fired when UserAgent is startedstopped
: Fired when UserAgent is stopped
sipTransportConstructor.ts
has been changed to transport.ts
WebPhoneSIPTransport
has been renamed to WebPhoneTransport.ts
computeRandomTimeout
method has been renamed to__computeRandomTimeout
scheduleSwitchBackMainProxy
method has been renamed to__scheduleSwitchBackToMainProxy
status
has been removed bysip.js
. Usestate
as an alternativeresetServerErrorStatus
has been removed bysip.js
__clearSwitchBackTimer
internal method has been renamed to__clearSwitchBackToMainProxyTimer
disposeWs
method has been removed bysip.js
onError
method has been removed bysip.js
sip.js has removed all transport
events
WebPhone SDK will still supports some basic events on WebPhoneTransport
connecting
: Fired when Transport is connectingconnected
: Fired when Transport is connecteddisconnecting
: Fired when Transport is disconnectingdisconnected
: Fired when Transport is disconnectedwsConnectionError
: Fired everytime a transport connection attempt failstransportError
: Fired when maxReconnectionAttempts have exhausted trying to connect to one server or sip error is returned from the serverswitchBackProxy
: Fired when client should initiate connection back to main proxyclosed
: Fired when maxReconnectionAttempts have exhausted trying to connect to one server or sip error is returned from the server
WebphoneSession
is now a union of WebPhoneInvitation | WebPhoneInviter
__sendRequest
internal method has been removed__receiveRequest
internal method has been removedreceiveRequest
method has been removed fromsession
. Renamed toreceiveIncomingRequestFromTransport
and is moved touserAgentCore
bysip.js
__hold
internal method has been removed__unhold
internal method has been removed__dtmf
internal method has been removed__reinvite
internal method has been removed_sendReceiveConfirmPromise
has been removed sincesendReceiveConfirm
now handles success and error logging. UsesendReceiveConfirm
directly from this versionua
has been renamed touserAgent
bysip.js
local_hold
has been removed since it was unusedfailed
has been removed since bysip.js
__onRecord
has been renamed to__isRecording
hasAnswer
has been removedreceiveReinviteResponse
has been removed since reinvite is handeled bysip.js
nowpendingReinvite
has been removed since reinvite is handeled bysip.js
nowsendReinvite
has been removed since reinvite is handeled bysip.js
now_sendReinvite
has been removedgetIncomingInfoContent
has been moved touserAgentCore.ts
sendReceive
method has been renamed tosendInfoAndReceiveResponse
sendRequest
has been removed bysip.js
. Use methods likesession.info
,session.message
,session.invite
etc instead
sendReceiveConfirm
The return type has changed fromClientContext
toIncomingResponse
sendSessionMessage
The return type has changed fromClientContext
toIncomingResponse
ignore
The return type has changed fromClientContext
toIncomingResponse
toVoicemail
The return type has changed fromClientContext
toIncomingResponse
replyWithMessage
The return type has changed fromClientContext
toIncomingResponse
blindTransfer
The return type has changed fromReferClientContext
toOutgoingReferRequest
blindTransfer
now takes inoptions
of typeSessionReferOptions
warmTransfer
now takes inoptions
of typeSessionReferOptions
transfer
now takes inoptions
of typeSessionReferOptions
reinvite
The return type has changed fromvoid
toOutgoingInviteRequest
reinvite
now takes inoptions
of typeSessionInviteOptions
- The type of the payload for
updateReceived
event has changed fromIncomingRequest
toIncomingRequestMessage
sip.js has removed all session
events
WebPhone SDK will still supports some basic events on WebPhoneSession
muted
: Fired when session is mutedunmuted
: Fired when session is unmutedestablishing
: Fired when session is establishedestablished
: Fired when session is establishedaccepted
: Fired when session is acceptedprogress
: Fired when session is progress stateterminating
: Fired when session is terminatingterminated
: Fired when session is terminatedupdateReceived
: Fired when UPDATE request is received over socketmoveToRcv
: Fired when INFO request is received over socket with move to rcv instructionqos-published
: Fired when QOS is punished to the backend serverrtpStat
: Fired when RTP Stat Report is generateduserMediaFailed
: Fired when getting user media is failed
onMediaConnectionStateChange
order of params has changed. The method now takesstate: string
as the first parameter andsession: WebPhoneSession
as the second parameteron
method has been removedlocalStream
has been removedremoteStream
has been removedvalidateSDP
has been removedonStateChange
method has been removed