- Fix «== None» with «is None».
- Fix blank lines around class and defs.
- Fix spaces around comma.
- Fix ambiguous one character variable names.
Warned-by: pycodestyle
Change-Id: Iaf44a31341e4ae66082df3c519edd69a39db356c
Importing all functions is useless because Sipwise::API does not
define an import routine. This was tolerated on Debian 12, but
starting from Debian 13 (Perl v5.40.1) it produces a warning.
The warning is harmless, but using qw(all) is incorrect.
All scripts under bin/ have been patched to remove qw(all).
Change-Id: I98f9f63a250c86b1e55f8368724bd4a19bb969ba
This syntax is discouraged, and it is not enabled by default any longer
starting with the 5.36 feature bundles. Stop using it so that we can
eventually bump our minimum required Perl version.
Fixes: Objects::ProhibitIndirectSyntax
Warned-by: perlcritic
Ref: https://metacpan.org/pod/feature#The-'indirect'-feature
Change-Id: I46ede719e6cf75fa3c5a69b467920b00acb388b2
It is necessary in case we need to test the call recording
like in the invite_record_call scenario.
Change-Id: Ic0e770b3dfef04e918c25392f0ee0c1627eb5fbc
SIPP option -trace_logs is now implemented at kct level.
At default it is deactivated and it can be used with -L [caller|responders|all|none] switch.
This let you use <log> directive inside actions for debugging purposes.
Example of logging:
<recv response="100" rtd="1" optional="true">
<action>
<ereg regexp=".*" search_in="hdr" header="Call-ID:" assign_to="1" />
<log message="Got 100 Trying with Call-ID header [$1]"/>
</action>
</recv>
Now , when running with -L switch:
SCENARIOS=invite ./run_tests.sh -C -r -c -L caller
you get file /usr/share/kamailio-config-tests/log/scenarios/invite/sipp_scenario00.log
with the following content:
"
Got 100 Trying with Call-ID header NGCP%invite%///1-140463@10.20.29.2
"
If -L switch is not passed all behaves exactly like before.
Change-Id: I96c0721a2f1db524a2d68b018b2744a84b32e281
* provide_scenario.sh: continue even if the domain is not there
when deleting
It seems that API behavior has changed
Change-Id: I6373eba6903491b39623329e29128de059f0b569
* FLOW_VARS or FLOW error, so possible
changes in kamailio.cfg are detected
* produce the _test.diff and .sip files
using the proper json
Change-Id: I39a003b3542283b4080f1c8e5004e826ae98f16e
> bin/check.py:113
> /code/bin/check.py:113: PytestCollectionWarning: cannot collect test class 'Test' because it has a __init__ constructor (from: tests/test_check.py)
> class Test:
>
>-- Docs: https://docs.pytest.org/en/stable/warnings.html
Change-Id: I6917ba773203abb02d3989fa411a8c8ee4363c93
> root@sp1:/usr/local/devel/kamailio-config-tests# ./bin/check.py -h
> Traceback (most recent call last):
> File "/usr/local/devel/kamailio-config-tests/./bin/check.py", line 364, in <module>
> args = parser.parse_args()
> File "/usr/lib/python3.9/argparse.py", line 1830, in parse_args
> args, argv = self.parse_known_args(args, namespace)
> File "/usr/lib/python3.9/argparse.py", line 1863, in parse_known_args
> namespace, args = self._parse_known_args(args, namespace)
> File "/usr/lib/python3.9/argparse.py", line 2072, in _parse_known_args
> start_index = consume_optional(start_index)
> File "/usr/lib/python3.9/argparse.py", line 2012, in consume_optional
> take_action(action, args, option_string)
> File "/usr/lib/python3.9/argparse.py", line 1940, in take_action
> action(self, namespace, argument_values, option_string)
> File "/usr/lib/python3.9/argparse.py", line 1104, in __call__
> parser.print_help()
> File "/usr/lib/python3.9/argparse.py", line 2560, in print_help
> self._print_message(self.format_help(), file)
> File "/usr/lib/python3.9/argparse.py", line 2544, in format_help
> return formatter.format_help()
> File "/usr/lib/python3.9/argparse.py", line 295, in format_help
> help = self._root_section.format_help()
> File "/usr/lib/python3.9/argparse.py", line 226, in format_help
> item_help = join([func(*args) for func, args in self.items])
> File "/usr/lib/python3.9/argparse.py", line 226, in <listcomp>
> item_help = join([func(*args) for func, args in self.items])
> File "/usr/lib/python3.9/argparse.py", line 333, in _format_usage
> action_usage = format(optionals + positionals, groups)
> File "/usr/lib/python3.9/argparse.py", line 408, in _format_actions_usage
> start = actions.index(group._group_actions[0])
> IndexError: list index out of range
Change-Id: I6303ab109074589e3483256eae33f43dc7c75c19
* bin/create_subscribers.pl: add customers field
so we can list them
- spaces in Content-Length
- remove XML content
- sip-if-match value is dynamic
- detect ids in more internal headers
- customers id can now be detected
Change-Id: Ib75c48a8954d848add95dd50d77cc6ffc94df210
Now KCT can read from the registration section of the scenario.yml file the value 'ua'.
If this is set (and registration is set to yes), KCT will add in the registration xml files
meant for SIPP the header 'User Agent' with the value specified.
To demonstrate how it works the scenario invite_callforward has also been extended and
now it sends registrations with User-Agent: KCT SIPP, additionally it enables feature ua_reject_missing
to check if this header is present and also tests if in the sems loop the ua_reject_missing
is ignored (whitelisting sems).
Change-Id: I709a0e0c3532b8e5246834dc3566b26e95b5f3be
The rtpengine project used to be called rtpengine-ng, and before that
mediaproxy-ng, which was an implementation using the same protocol as
the rtpproxy project. It's about time we rename the config.yml section
so that this is less confusing.
Change-Id: Ibb26b5537f0e0b739b148a2a30fbd3f998732b49
Due to a deprecation of the 'sems' config.yml block of settings,
we have to update the 'config_debug.pl' and let it handle configurations
using the remaining 'b2b' section.
Change-Id: Id7d114b85906ce4aae22e11a57a3a281d35c63ea
* check.sh: remove none as the way to disable check results
added -t to indicate that
* run_tests.sh: add -T to enable cfgt
don't call anything related to cfgt if not enabled
* bench.sh: enable cfgt if check type is all or cfgt
Change-Id: I4c13297b55503f99241cf5553c5deceba0f5bbf6
Implemented usage() function inside reorder_tests_tt2.sh to describe how to use it.
Additionally, 2 new options have been implemented:
- -m git|mv : if set the renaming is performed with "mv" command rather than "git mv", useful if you are not on a git directory
- -t : just outputs the renaming to stdout without really renaming (dry run)
Change-Id: I0be8a2d6468b66d365ec138a09e5ac5873bf694f
no longer support of parsing of the kamailio log to produce flow info
* remove ulog_parser.pl, no longer used
* graph_flow.pl: remove -j option
* check.py: remove --yaml/--json options
* check.sh: remove SKIP_PARSE and JSON_KAM options
Change-Id: I0df00ffff3e7d8c2129cbbce12652ddff9730821
Lowered the rtpengine cancel delay from 2 to 1 second
Lowered the sleep time of the script check.sh from 5 to 2 seconds
Removed sleep time before check CDRs
This should speed up the test of basic scenarios of 4/5 minutes
Change-Id: I4f5fb539f7ab704f1aca6ddd2abf64db54b27ef1