jinzigui / imsdroid

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

How to implement this process #132

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.I want to implement the process of attchment file.
2.The process is on MSRP 1 to 1 chat process.(This chat process is not P2P.)
3.Could you give me a demo to implement the process,sir?

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

What version of the product are you using? On what operating system?
IMSDroid 1.1.343         Android 2.2

Please provide any additional information below.

Original issue reported on code.google.com by nieyaol...@gmail.com on 20 Dec 2010 at 4:28

Attachments:

GoogleCodeExporter commented 9 years ago
MyMsrpSession session = MyMsrpSession.createOutgoingSession(sipStack, 
MediaType.FileTransfer);
ActionConfig config = new ActionConfig();
config
.setMediaString(twrap_media_type_t.twrap_media_msrp, "file-path", "Your file 
path here")
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "file-selector", fileSelector)
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "accept-types", "*")
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "accept-wrapped-types", "audio/3gpp video/3gpp application/octet-stream image/jpeg, image/gif image/bmp image/png")
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "file-disposition", "attachment")
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "file-icon", "cid:test@doubango.org")
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "Failure-Report", "yes")
 .setMediaString(twrap_media_type_t.twrap_media_msrp, "Success-Report", "no")
 .setMediaInt(twrap_media_type_t.twrap_media_msrp, "chunck-duration", 50)
 ;
bool ret = session.callMsrp(this.RemotePartyUri, config);

Original comment by boss...@yahoo.fr on 24 Dec 2010 at 12:39