Call flow

Top  Previous  Next

Establishing connection with the WCS server and SIP registration (optionally)

 

This sequence starts with the WCS JavaScript API 'connect' method.

 

connect-sip

 

Operations 7-11 are invoked only if the SIP is on and sipRegisterRequired=true. To enable SIP, at least the following three parameters must be passed : sipLogin, sipPassword, sipDomain. If at least one of these parameters wasn't passed, a connected user will work with WCS as with a stream video server, that is all SIP functions will be unavailable.

 

B
R
O
W
S
E
R

<<< IN

OUT >>>

W

C

S

<<< IN

OUT >>>

W

E

B

S

E

R

V
E

R

 

1. connect

 

urlServer

appKey

 

sipRegisterRequired

sipLogin

sipVisibleName

sipAuthenticationName

sipPassword

sipDomain

sipOutboundProxy

sipPort

sipContactParams

mediaProviders

status

 


 

 


2. connect

 

urlServer

sipRegisterRequired

sipLogin

sipVisibleName

sipAuthenticationName

sipPassword

sipDomain

sipOutboundProxy

sipPort

sipContactParams

mediaProviders

status

 

nodeId

sessionId

appKey

 

 

3. 200 OK

 

sipRegisterRequired

sipLogin

sipVisibleName

sipAuthenticationName

sipPassword

sipDomain

sipOutboundProxy

sipPort

sipContactParams

mediaProviders

status

 

restClientConfig


 

 


4. ConnectionStatusEvent - ESTABLISHED

 

sipRegisterRequired

sipLogin

sipVisibleName

sipAuthenticationName

sipPassword

sipDomain

sipOutboundProxy

sipPort

sipContactParams

mediaProviders

 

status

info

authToken

 

nodeId

sessionId

appKey

 

 

5. 200 OK

 

sipRegisterRequired

sipLogin

sipVisibleName

sipAuthenticationName

sipPassword

sipDomain

sipOutboundProxy

sipPort

sipContactParams

mediaProviders

 

status

info

authToken


6. ConnectionStatusEvent - ESTABLISHED

 

sipRegisterRequired

sipLogin

sipVisibleName

sipAuthenticationName

sipPassword

sipDomain

sipOutboundProxy

sipPort

sipContactParams

mediaProviders

 

status

info

authToken

 



 

 


9. RegistrationStatusEvent - REGISTERED

 

sipMessageRaw

 

status

info

 

nodeId

sessionId

appKey


 

10. 200 OK

 

sipMessageRaw

 

status

info


11. RegistrationStatusEvent - REGISTERED

 

sipMessageRaw

 

status

info