0

I wrote an SDP (Session Description Protocol, RFC 4566) parser and I would like to test it with a comprehensive set of "test vectors," i.e., a set of SDP descriptions that stress, as much as possible, every aspect of the parser.

I googled things like "sdp test parsing," but the signal-to-noise ratio is low (also because SDP has many meaning). The thing closest to a set of test vectors is the java code at

http://grepcode.com/file/repository.jboss.org/maven2/javax.sip/jain-sip-ri/1.2.86/test/gov/nist/javax/sdp/parser/SdpParserTest.java

but it is just four examples and I am searching for something more exhaustive.

Thank you for your help

Riccardo B.
  • 191
  • 3

1 Answers1

0

You may find that just searching SO for SDP will yield you enough SDP's for you to utilize in your tests... I know I did a quick search and I was surprised at the number!

Another thing to keep in mind is that various attributes can be registered with IANA at any time...

https://www.rfc-editor.org/rfc/rfc4566 - 8.2.4. Attribute Names ("att-field")

Attribute field names ("att-field") MUST be registered with IANA and documented, because of noticeable issues due to conflicting attributes under the same name. Unknown attributes in SDP are simply ignored, but conflicting ones that fragment the protocol are a serious problem.

There are also other items in the SDP which can change if they are registered with IANA.

You will want to check their site http://www.iana.org/protocols/

Specifically http://www.iana.org/assignments/sdp-parameters/sdp-parameters.xml but most likely others.

You could also then make a program to download each xml file and create a random SDP based on the information from the xml files and then test parsing it but since you made the files that wouldn't be much of a test...

Community
  • 1
  • 1
Jay
  • 3,276
  • 1
  • 28
  • 38