Closed GoogleCodeExporter closed 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
Original issue reported on code.google.com by
nieyaol...@gmail.com
on 20 Dec 2010 at 4:28Attachments: