Christer Holmberg (JO/LMF) wrote:

My point was that you can't determine what types of MIME bodies you have
simply by taking the whole SIP message and performing a string search on
"Content-Type". Because, some of the Content-Types you will find may not
describe what is in a MIME body - it may be part of the MIME body data.

All that you need to do is reduce unnecessary parsing to an acceptable degree. If all you care about is sdp, then it is probably sufficient to search the body for the string "application/sdp", and only parse the body looking for sdp if you find that. Now and then you may encounter a body that contains "application/sdp" without actually containing an offer or answer. But as long as that is rare there will probably be no problem.

This puts the optimization entirely on the parser without requiring any changes by those that add bodies. That is a good thing. It also keeps the size of the message from increasing further, which is also a good thing.

        Paul


_______________________________________________
Sip mailing list  https://www1.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol
Use [EMAIL PROTECTED] for questions on current sip
Use [EMAIL PROTECTED] for new developments on the application of sip

Reply via email to