It is necessary in case we need to test the call recording
like in the invite_record_call scenario.
Change-Id: Ic0e770b3dfef04e918c25392f0ee0c1627eb5fbc
* record_call preference usage in
scenarios/invite_record_call/prefs.json
is changed from
"record_call": true -> 1
because the preference is of enum type and expects the follwoing
values: NULL,0,1,2,3
Change-Id: If6a5060909d7c67ad2222f59127d94baf2d196a6
Message was not properly built. Everything after Contact was not
included due to an empty line when ua is empty
Change-Id: I1e0851149103851bfd9228d1cf840b02144230d7
Also set the transcode preferences for the peering,
since it has other domain from the local subscriber,
but by the scenario check has to get the PCMA.
Change-Id: I35501b3a10351af7fddbc227a4ff34628bf171ce
Current regexp inside file scenarios/invite_fritz_prefix_removal/0033_test.yml.tt2
checking P-App-Param header does not take into account param fast_ack which is only available
on PRO, causing CE runs to fail.
Work fast_ack is now optional.
Additionally it's a good idea to make the regexp more generic checking the other parameters
against letters instead of fixed numbers/words.
Change-Id: I02ae1d435d8012bbb091aa6d8c6a840b43377971
New scenario to check FROM anonymization and PAI removal
for calls from PSTN with Privacy: id header.
Change-Id: If61ec9af775ecf10151ed458fd1ce5e0a5f7b775
Check fritz prefix removal behaviour with emergency mappings.
Change-Id: I5de2337ce8ba7c193032b81c129b28c5fefeabf8
(cherry picked from commit ef4b381058a83f7f553e42518c52bef2bc5f799e)
New scenario scenarios/invite_fritz_prefix_removal
- Call 1: A new call is generated towards sip:+431112@invite-fritz-prefix-removal.scenarios.test
Due to fritz prefix removal feature it must be changed into 112@invite-fritz-prefix-removal.scenarios.test
- Call 2: A new call is generated towards sip:+4312000@invite-fritz-prefix-removal.scenarios.test (voicebox)
Due to fritz prefix removal feature it must be changed into 2000@invite-fritz-prefix-removal.scenarios.test
- Call 3: A new call is generated towards sip:0999112@invite-fritz-prefix-removal.scenarios.test
Even if 112 is part of the "special numbers" list in config.yml, the prefix removal cannot happen because 0999
is not in the prefixes list.
Change-Id: I8ca655faf31b9d07f8b103cb3c8cfd05d7bfb065
(cherry picked from commit 7c85a4d806fa4b6af6f71cf28322036baa3f566f)
Since we are mounting in read-only mode the code, we are getting
warnings from pytest executions not able to generate .pytest_cache
directory.
Just define CACHE_DIR in a volumen that is mounted as read-write
Change-Id: I9949877f4d86873f47778ae9a7cddffb45f3932c
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
Parameter fast_ack=no could be missing depending if we are running CE or PRO.
The regexp has been changed in order to accept both version with fast_ack and without.
Change-Id: I92b3cd043f301c145d820ad113eadf3471ba97e0
This reverts commit 44395a5206.
Reason for revert: too many typos... rebuilding commit from scratch
Change-Id: I68f02faf4ba1d5e43786f797ab967192d2a97ce5