mike-xu / imsdroid

Automatically exported from code.google.com/p/imsdroid
0 stars 0 forks source link

msrp failed to work #281

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I try to use imsdroid 458 version msrp with two simulators seperately on two 
laptops.

And I use sip2sip as server.

A dial to B; in A's history, launch chat to B. But after receive msrp 
invitation, B doesn't reply with 200 ok. So, A not send chat content.

I also try to add 200ok reply to A at side B, in ngnsipservice.java 
oninviteevent function, case twrap_media_msrp: msrpSession.accept();
But after A receive 200ok, not start to send msrp message content to B.
I add broadcastreceiver in screenChat to capture connected event, then resend 
message body, but at this time, socket failed occurred.

So how should I use msrp? 

original imsdroid implementation without any modification wireshark log 
attached.

My email is yy_career@sina.com

Original issue reported on code.google.com by yang.yu...@gmail.com on 3 Sep 2011 at 6:12

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by boss...@yahoo.fr on 7 Sep 2011 at 9:10

GoogleCodeExporter commented 9 years ago
I use two handset to test, still need to add 200ok code.

Now the problem is after msrp session connected, sender side not send 
MSRP:SEND, but send tcp packet to 10.2.0.15(which should be simulator ip 
address).

Is this doubango problem? 

Original comment by yang.yu...@gmail.com on 10 Sep 2011 at 1:37

GoogleCodeExporter commented 9 years ago
I use two handsets with IMSdroid on it, during MSRP call, the terminating 
client gets a '180 Ringing' but it doesn't sends a '200 OK' and session is not 
created.

The same scenario works on the Desktop Boghe client.

Please tell me how can i fix this?

Original comment by anantkha...@gmail.com on 14 Sep 2011 at 5:59

GoogleCodeExporter commented 9 years ago
need to add code in ngnsipservice.java, function OnInviteEvent

public int OnInviteEvent(InviteEvent e) {
...
switch (sessionType){
                        case twrap_media_msrp:
                          ...
                        msrpSession.accept();   //added
                        mSipService.broadcastInviteEvent(new NgnInviteEventArgs(msrpSession.getId(), NgnInviteEventTypes.INCOMING, msrpSession.getMediaType(), phrase));
                                break;

Original comment by yang.yu...@gmail.com on 18 Sep 2011 at 3:26

GoogleCodeExporter commented 9 years ago
After add "msrpSession.accept();", msrp can run, but still not stable, I think 
doubango has stable problem on msrp.

Problem listed below:
1 Msrp session initialization side problem
OnDialog event tsip_event_code_dialog_connected is recived later than OnEvent 
tmsrp_event_type_connected, so when intend to send pending messages, flags 
still show not connected. So, no message content sent.

2 Msrp session initialization side problem
OnEvent tmsrp_event_type_connected not received after OnDialog event 
tsip_event_code_dialog_connected is recived

3 Msrp session initialization side problem
tnet_transport_mainthread repeatedly ioctl FIONREAD on the point of "FIXME: On 
Android/MAC OS X this mean that the socket has been closed? For sure this is 
not true for Android. ", so it not sent MSRP SEND message.

4 libtinyWRAP.so crash in registration procedure.

Are these problems already known? Is there any way to avoid such problems?

Original comment by yang.yu...@gmail.com on 18 Sep 2011 at 3:37

GoogleCodeExporter commented 9 years ago
Hi buddy,which sever do you use ?

Original comment by david.w...@lavainternational.in on 10 May 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Dear all,

I am working with Imsdroid. 
I fogot same problem with issue 281 
(https://code.google.com/p/imsdroid/issues/detail?id=281), after receive 200 
OK, sender not send msrp message. You fixed it? I using Imsdroid v2.0 last and 
doubango 2.0 last.
Please help me.

Original comment by mr.kun...@gmail.com on 5 Sep 2014 at 9:47