websocketpp (WebSocket client/server stack in C++) has accepted a patch
demonstrating how to construct a SIP over WebSocket client. It is
fairly trivial to use it as a command line client:
https://github.com/zaphoyd/websocketpp/tree/master/examples/sip_client
Basically, their echo_client has been adapted so that it sends a SIP
OPTIONS message and displays the response. I also tested with a
REGISTER message.
This could be useful for various tests against SIP proxies that offer
WebSocket support:
a) replaying test cases to reproduce problems (e.g. cut and paste the
REGISTER or INVITE message from the JavaScript console and put it into
the test case)
b) unit testing
c) load testing