Comment #1 on issue 2182 by horacimacias: Multipart SIP bodies are not parsed correctly
http://code.google.com/p/mobicents/issues/detail?id=2182

sorry I forgot to type "with" between the two sections of code.
The first one is the current code, the second one:

} else if(contentTypeHeader!= null && CONTENT_TYPE_MULTIPART.equals(contentTypeHeader.getContentType())) {
                        try {
return new MimeMultipart(new ByteArrayDataSource(message.getRawContent(), contentTypeHeader.toString().replaceAll(ContentTypeHeader.NAME+": ", "")));
                        } catch (MessagingException e) {
                                logger.error(e, e);
                                return this.message.getRawContent();
                        }
                } else {

is what I'm suggesting as a "patch". (I can't create a real patch at the moment as there have been other changes to SipServletMessageImpl and I can't really update yet). All in all, I'm suggesting a 1 line change and cleanup of the unused code/imports.

Reply via email to