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
* bin/sipp.sh: add option to set SIP SERVER_IP
* bin/check.sh: add option to set SIP SERVER_IP
* bin/scenario.pl: add server_ip info to scenario_ids.yml file
* bin/get_config.pl: add server_ip info to output
* bin/run_tests.sh: get server_ip from config and use it
Change-Id: If7a2284827df344eaecfdb5671146a9a79e81ea8
* just obey what is defined at scenario.yml
* bin/create_registrations.pl: add transport to contact
Change-Id: Ia851594064f348b778f1be0979b345090a303d20
keep IP/port selections on scenario_ids.yml
* bin/scenario.pl creates scenario_ids.yml with IP/port info too
* bin/create_subscribers.yml reads scenario_ids.yml first now
different IP/port/mport for peers!!
Change-Id: If8f07174bcacbf093bcbb14cd81b876c36c7e404
* introduced at f1c1379f42
* get_subs_info was throwing exception for some cases but it
was hided via eval {}. Use Try::Tiny to manage the exception
and generate needed default values.
* use variable name instead of $_ so it's clear what is what
on loops
Change-Id: Icc6baa00da6ebfa1d88a7e418edb48c8c8536cd1
This module is more compliant and it is faster than the pure perl
implementation. The latter is also deprecated in favor of the former
(see man YAML for more details).
Change-Id: I15240ac294476c0d9cc30e36e622adc7e07db136
> Mon Dec 14 09:59:29 CET 2015 - Generating csv/reg.xml files
> Possible precedence issue with control flow operator at ./bin/scenario.pl line 72.
Change-Id: I73968a15ea81de15cbb38c48678fefce98c28da9
- fix check.py comparation when int -> string
- disable tcpdump by default ( new option -K to enable it)
- fix graph_flow for json ( new option --json )
Change-Id: I25f49ef6303b4e2e28c34fefd7860c744e6c3250
- bin/config_debug.pl: we need to deactivate dns_cache on lb
- bin/scenario.pl: generates scenario hosts file + adds info on scenario.csv
- bin/check.sh: uses the info from scenario.csv and hosts files
bin/upgrade_peer.pl: Added script to upgrade ip:host peer info.
- This is neeeded because we don't know for sure the port used on a responder
bin/check.sh: call upgrade_peerl script if needed
bin/scenario.pl: new peer_host option
scenario.yml:
scenarios:
- ip: 127.126.0.1
user: testuser1002
domain: spce.test
username: testuser1002
password: testuser
responders:
- ip: 127.1.0.1
number: 4311003
user: testuser1003
domain: spce.test
register: yes
username: testuser1003
password: testuser
bin/scenario.pl: script to generate the csv files from a scenario.yml
bin/check.sh:
- calls bin/scenario.pl to generate needed csv files.
- uses the generated scenario.csv file to know the ip of the caller/callee.
- don't need to do any unreg. All locations are removed before run any scenario.
bin/sipp.sh:
- callee.csv and caller.csv are now in the test dir
- no peer.csv