liyuanwei / imsdroid

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

Which method may send a file by MSRP? #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I have built a SIP session.I want to send files on this session.
2.I know MyMsrpSession::sendFile method may send a file.But this method is 
INVITE->MSRP Send->Bye. I need only MSRP Send.
3.In fact,for example.A invite B to chat by MSRP.During this chat session,A 
want to send a file to B(using the same session).MyMsrpSession::sendFile method 
will built a new session.So which method may send a file by MSRP(no INVITE and 
BYE,only MSRP send file)

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
the newest version.  on Android 2.2

Please provide any additional information below.

Original issue reported on code.google.com by Splash.P...@gmail.com on 27 Jan 2011 at 12:21

GoogleCodeExporter commented 9 years ago
No it's not possible to send a file without an INVITE or reINVITE. As far as I 
know this use case is not defined by any standard (rfc,3gpp,etsi,gsma,...).
As a workaround, you can open the file, read the data and send it as you do 
with a normal large IM. The stack will automatically split the content 
(chuncks). Do not forget to add a content-type header (e.g. 
application/octet-stream, image/png,...).

Original comment by boss...@yahoo.fr on 1 Feb 2011 at 2:48