DoubangoTelecom / sipml5

The world's first HTML5 SIP client (WebRTC)
BSD 3-Clause "New" or "Revised" License
944 stars 460 forks source link

When Unicode characters are received, the message being passed is null #299

Open pradsin opened 6 years ago

pradsin commented 6 years ago

I noticed that it Unicode characters are passed the event raised by sipml passed empty message. Though the websocket frame shows the exact message.

Here are test strigs

"!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^`abcdefghijklmnopqrstuvwxyz{|}~"cª«¬-r°±²3'µ·,1º»¼½_¿AAAAÄÅÆÇEÉEEIIIIDÑOOOOÖxOUUUÜY_ßàáâaäåæçèéêëìíîïdñòóôoö÷oùúûüy"

"दैनिक जागरण"

pradsin commented 6 years ago

Stack Trace

chat.js:158 Uncaught TypeError: Cannot read property 'replace' of null at Object.message (chat.js:158) at SIPml.Stack.listener (chat.js:246) at SIPml.Stack.SIPml.EventTarget.dispatchEvent (Sipml-api.js:1) at tsip_stack.o_stack.on_event_message (Sipml-api.js:1) at Sipml-api.js:1

image