opentelecoms-org / jscommunicator

http://jscommunicator.org
88 stars 48 forks source link

chat: reject messages from peer when chat disabled #53

Open dpocock opened 10 years ago

dpocock commented 10 years ago

There is now a config.js option to enable/disable the chat area in the UI.

If the chat UI is disabled then there is no way to display any incoming chat messages. Therefore, they should be rejected with a SIP error code in the handler for the newMessage event.

Query about this sent to the JsSIP mailing list: https://groups.google.com/forum/#!topic/jssip/4rzuI6A3amo