Websockets On Asterisk 11 And SipML5
Tags: asterisk, Asterisk 11, asterisk websocket, linkedin, SipML5, sipml5 library, sipml5 on Asterisk 11, Websockets On Asterisk 11
In order to set up a user in Asterisk so that It can register via sipml5, on Asterisk 11. In the sip.conf entry for the account you are trying to register as place the following:
Example:
username002
secret=XXXXXXXXX
host=dynamic
type=friend
context=test
disallow=all
allow=g729
;allow=all ; Allow codecs in order of preference
allow=ilbc
allow=silk8
allow=gsm
transport=ws
Now, modify the sipml5 library so that the URL looks like this: ws://example.org:8088/ws (with the /ws at the end, as instructed). In order to get sure that the 8088 port is open, and that Asterisk is actually listening for WebSockets traffic, remember to enable the http.conf module: