shadowsnap / sipml5

Automatically exported from code.google.com/p/sipml5
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Issues coming in text chat using SIPML5 API #92

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Issue is when I am trying to send a text message at receiver's end same message 
is coming multiple times. Randomly sometimes same messages comes 2 times 
sometimes 3 times and so on.
Basically in the sip stack events, 'i_new_message' gets called multiple times 
randomly for the same message.

We are pointing to the SIPML5 's public server from our application. Here is 
the websocket url which we are using : -
websocket_proxy_url : 'ws://ns313841.ovh.net:11060'

I am attaching both the logs, one where I have received same message "Hi Lekha" 
twice and the other log file contains logs where the message "Hi Vijaya" was 
send twice although I have sent the message only once.

This scenario happens when we try to read the sender's name or public identity. 
If we don't try to read the sender's identity, the message comes only once.
But this is a real time scenario where we need to identify that who has sent 
the message which I am receiving.

So when we write :-

var msgSession = event.newSession;
msgSession.accept();
var remoteFriend  = msgSession.getRemoteFriendlyName();
or try to get the sender using :-
var remoteUri = msgSession.getRemoteUri()

In both the cases the messages start coming twice or sometimes even more times.

So for this the scenario is in case : "i_new_message", after accepting the 
incoming message you need to read the sender's identity. 

Original issue reported on code.google.com by lekhamud...@gmail.com on 28 May 2013 at 12:43

Attachments:

GoogleCodeExporter commented 8 years ago
HI ,
I am also trying to implement the instant messaging feature in SIPML5.
For enabling this feature ,the changes that should be made in Call.htm will 
resemble the scenario of making a call?
If not,then what extra i have to add in that?

Thanks and Regards
Revati.

Original comment by Puru...@gmail.com on 5 Aug 2013 at 11:41