REST / HTTP¶
Establishing connection¶
When a connection is being established the following REST hook are used:
connect
- main connection establishing hookConnectionStatusEvent
- connection status hookRegistrationStatusEvent
- SIP registration status hook (for SIP calls only)
Outgoing SIP call¶
Outgoing call uses the following REST hooks:
call
- outgoing SIP call hookCallStatusEvent
- update the outgoing call status hookhangup
- hangup the call hook
Sending and receiving SIP messages¶
When sending and receiving SIP messages the following REST hooks are used:
sendMessage
- send a message hookMessageStatusEvent
- update the message status hookOnMessageEvent
- receive the incoming message hook
Possible problems¶
Problems with REST traffic not flowing can be caused by various web server integration issues. For example, if the traffic does not go when the connect
REST hook is invoked, connection cannot be successfully established. If ConnectionStatusEvent
or RegistrationStatusEvent
do not invoke, the web server cannot receive connection status and SIP
registration status notifications. REST error handling is thoroughly described in the REST hooks section.
Troubleshooting¶
Make sure your web server correctly responds to REST / HTTP requests and the port of your web server is open in firewall. Make sure the WCS REST hook application is correctly configured for the REST URL of the web server, and server logs contain no errors.