< Previous by Date Date Index Next by Date >
  Thread Index Next in Thread >

[reSIProcate] Sending INVITE with multiple MIME attachments


Hi,
 
I am trying to figure out a way to send an INVITE which includes an SDP (mime 
type - application/sdp) and another mime attachement which is plain text.
 
reSIP has two related classes - MultipartRelatedContents and 
MultipartMixedContents. I was hoping to find some usage examples of it in the 
resip/stack/test folder but could not find an example that shows how to 
construct the message using one of these two classes. 
 
There are a couple of test source files (e.g. 
http://scm.sipfoundry.org/viewsvn/resiprocate/main/resip/stack/test/testMultipartMixedContents.cxx?rev=5295&view=markup)
  but they don't deal with MultipartMixedContents at all and also they only use 
the MultipartRelatedContents class to parse the body of a SIP message. The 
sending part is done by building the body outside and then passing it into the 
MultipartRelatedContents object.
 
Can someone show me an example of using one of these classes to build the 
multipart MIME attachment ?
 
thanks,
andy