On 12/10/2014 10:34 AM, Olle E. Johansson wrote:
On 10 Dec 2014, at 10:14, Victor Seva linuxmaniac@torreviejawireless.org wrote:
I really want to see this but one of the things we want is to test the configuration and the use of the variables.
Can you give some examples?
Sure, this is what we use [0]. Highly tight to NGCP Sipwise ( creation of domain, subscribers, etc...)
Attached the output of an invite test scenario [1]: - log invite.tar.bz2 - results invite.zip
another using variable checks [2]: - log register_allowip.tar.bz2 - results register_allowip.zip
I think you can get the idea. Parse the kamailio.log, produce msg_id.yml files, test those files with the msg_id_test.yml files producing msg_id_test.tap files with the results.
[0] https://github.com/sipwise/kamailio-config-tests/ [1] https://github.com/sipwise/kamailio-config-tests/tree/master/scenarios/invit... [2] https://github.com/sipwise/kamailio-config-tests/tree/master/scenarios/regis...