Additionally increased the timeout of the sipp simulations.
This is necessary to avoid failures of the tests in case kamailio
takes a bit more time to preocess the incoming SIP message.
Change-Id: I60856430f28b081d74e484b2346894dd13a38d11
Otherwise kamailio-config-test reset file perms from 0600 to 0755.
From https://perldoc.perl.org/File/Copy.html :
> You may use the syntax use File::Copy "cp" to
> get at the cp alias for this function. The syntax is exactly the same.
> The behavior is nearly the same as well: as of version 2.15,
> cp will preserve the source file's permission bits like the
> shell utility cp(1) would do, while copy uses the default
> permissions for the target file
> (which may depend on the process' umask, file ownership, inherited ACLs, etc.).
> If an error occurs in setting permissions, cp will return 0,
> regardless of whether the file was successfully copied.
Change-Id: I7b227cb554699d68f809d38c82344d8f1afeed99
If retransmission skip is enabled (-r option) an additional check
with the previous json file (previous SIP message) is done in case
of tap issues. This is useful when wrong packet ordering or
timing issues occur.
Additionally:
* improved logs lines in oreder to be more readable.
* fixed inconsistencies in the coding style.
Change-Id: I20a026fab33e2a56f23bdccef8ee3aa3e27de732
* Added 5 seconds of sleep time at the end of execution in order to allow
tcpdump to capture all the packages and kamailio to write all json files
* All json files are collected at the end of all the scenarios
* Only one big tcpdump trace is takes to collect all the scenarios
Change-Id: Id91835a959785080ecbbaf29a3e4c97bf752934e
In order to avoid packer ordering issue, some of the pause time
were increased in the following scenarios:
* scenarios/invite_concurrent_max
* scenarios/invite_concurrent_max_out
* scenarios/invite_concurrent_max_out_per_account
* scenarios/invite_concurrent_max_per_account
* scenarios/invite_voicebox
Change-Id: Idaa6e2c816967c2d1a90f74ab9d3e7ed8783ae63
Fixes:
| Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/.+msg out:{ <-- HERE (.+)}$/ at bin/ulog_parser.pl line 166.
| Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/.+msg out:{ <-- HERE (.+)}$/ at bin/ulog_parser.pl line 187.
This was deprecated already in older perl versions:
| Unescaped left brace in regex is deprecated, passed through in regex; marked by <-- HERE in m/.+msg out:{ <-- HERE (.+)}$/ at bin/ulog_parser.pl line 187.
Starting with perl 5.26 it raises an error
message instead of just a warning message though.
Change-Id: Ic7af73d088ce580b59f6a5e5fc578b723ee7410c
* Original option '-c' in run_tests.sh has been modified
in '-C'
* Add new option '-c' in run_tests.sh to execute a query on MySQL
after each test to extract the generated CDRs.
* Add new option '-c' in get_results.sh to compare the extracted
CDRs with the referece provided in the scenario (cdr_test.yml.tt2).
* Modified option 'mediator.interval' from 10 to 1 during the test
execution in order to speedup the cdrs generation.
* Updated README file with the latest changes.
* Added basic cdr_test for all the scenarios.
Change-Id: Ifffd686003fa5e3a1ac4ba76c502011d7fdb21bb
A new scenario called invite_trusted_anonymous has been added to verify
the new improvement on the allow_trusted kamailio function that should
check the PAI header in case the From is anonymous.
Additionally:
* Introduced a new API interface to allow configuration of trusted
sources. To do that, just add a file named 'trusted.yml' in the
scenario folder.
* Improved the callforward API interface to allow more sophisticated
callforward configuration. Now it is possible to configure all the
types of CF as well sources, bnumbers and timeset.
* Removed from the output the noisy parenthesis '{}' result of
ngcp-kamctl commands
Change-Id: I5ed54d063bcda2d5df7004b9cad671644e021def
- the hop-by-hop ACK is now generated by the LB and not relayed so it does not
have any P-NGCP-Src-* headers and Contact
- remove pause before ACK that was causing retransmission
- REFER method used to be filtered from Allow on messages coming from proxy or
sbc but not those coming from UA. it makes sense to do it everywhere I think
- in invite_retrans the retransmission is now absorbed on lb so there is one
message less in proxy logs and other message numbers are shifted forward by one
Change-Id: If6e05368fe72df7636dff43d18572eff821f16c4
The errors is not due to re-transmission, but packet ordering.
It seems that, in high loaded systems, kamailio proxy takes too
much time to process some packages causing an unexpected order.
Increasing the wait time from 500ms to 600ms give 100ms more to the
proxy to process the packet and send it out in the expected order.
Change-Id: Idccd6c7b95c428cbee519bb6cf779c6a8dfc3e82
* Added start/return ROUTE_EXIT and start/return ROUTE_ENTRY
* Updated caller/callee xavp content validation
* Updated ngcp-kamctl calls to the new rpc format
Change-Id: I166a638a7a1f0ef5102db666180eb83e8b47d6e4
Debian package 'python-xmlrunner' is based on old
unittest-xml-reporting (1.5.0-1) and generated report *.xml file is not
recognized by jenkins jUnit plugin:
[xUnit] [ERROR] - The result file
'/var/lib/jenkins/workspace/kamailio-config-tests-unit-test-docker/results/test_check.xml'
for the metric 'JUnit' is not valid. The result file has been skipped.
So let's install the newest version from pip in docker the same like in Makefile
Change-Id: I7f4272d04bdec5ed1112bb25e751a1c4df95359b
Test script tries to configure the paramenter to off before the test
starts. Since the parameter was moved in TT#27466, the parameter was
actualy not changed.
Change-Id: Ic5affbecc3304d8732c9edfc6243d951a8d7174b