Asterisk SIP Sample Messages/ Unit Tests

Hi, I am trying to find a bunch of official (asterisk) SIP message samples, that I can use to test my application. So far in my research I couldn’t find any though.

I have tried checking in many of the official asterisk repo’s tests files, but the inbuilt unit-tests seem to generate their own messages and not use preset ones.
Otherwise I’ve been looking into asterisk’s official test-suite but I can’t find any there either. Is there anywhere to find a bunch of message samples? Or has anyone recorded messages created during the unit test, so I can take them from a documentation of unit tests or that sort?

There is no such thing. You can produce them yourself by doing various scenarios, and the messages themselves will change based on the underlying configuration settings used - otherwise they’re just SIP messages produced by the PJSIP stack.

Is there a simple way of recording them when i generate them myself?

You can enable “pjsip set logger on” and have them go into the normal Asterisk log file and extract them from there. You can use packet capture and extract them from that result.

There is no specific mechanism built in to do precisely exactly what you’re looking for. You’d need to put the pieces together.