Skip to content

Changes

Summary

  1. ttcn3-asterisk: Enable debug in log file (details)
  2. ttcn3-asterisk: Enable debug for pjproject (details)
  3. ttcn3-asterisk: Configure asterisk for initial SIP register on IMS side (details)
  4. ttcn3-docker-run.sh: Fix dumpcap failing to access /data inside docker (details)
Commit 9fd2a1ec32df0e54f9e8b500f68d3b0fc99ee8bd by Pau Espin Pedrol
ttcn3-asterisk: Enable debug in log file

Change-Id: Ifbc8208507ba47e9f6a1eaf5a43465d2a1af08c1
The file was modified ttcn3-asterisk-ims-ue-test/asterisk/asterisk.sh
The file was addedttcn3-asterisk-ims-ue-test/asterisk/logger.conf
The file was modified ttcn3-asterisk-ims-ue-test/asterisk/asterisk.conf
Commit 9730d72da016f9242ad85bb95054ae3bda6ac0d4 by Pau Espin Pedrol
ttcn3-asterisk: Enable debug for pjproject

Change-Id: I7de6ac31f7a75411fb515501611187f97e829ab3
The file was modified ttcn3-asterisk-ims-ue-test/asterisk/asterisk.sh
The file was addedttcn3-asterisk-ims-ue-test/asterisk/pjproject.conf
Commit f9c8ed8de78b7f6641c9802be2d0cdd2488295fb by Pau Espin Pedrol
ttcn3-asterisk: Configure asterisk for initial SIP register on IMS side

This set of pjsip config requires work done by jolly in our fork of
asterisk adding IMS features.

Depends: osmo-ttcn3-hacks.git Change-Id Idb3b19ccd82cad25948106b2c72aa424d7f79cd8
Change-Id: I66d128192146ad600203ea2a41b8bf019311d603
The file was modified ttcn3-asterisk-ims-ue-test/asterisk/pjsip.conf
The file was modified ttcn3-asterisk-ims-ue-test/Asterisk_Tests.cfg
Commit 2b9c8e3db8cf77c5ce5c3f888365f983f3ee8d76 by Pau Espin Pedrol
ttcn3-docker-run.sh: Fix dumpcap failing to access /data inside docker

In docker, the /data dir is mapped to $VOL_BASE_DIR, which is created by
docker-playground.git jenkins-common.sh, hence as the user running
jenkins.sh in the host system.
As a result, when the dir is mapped to /data, inside the container it
will have the UID:GID of the outter user, not the one inside docker.

Before this patch, if a ttcn3 container was started in jenkins.sh with
--cap-add=NET_ADMIN, then osmo-ttcn3-hacks.git/ttcn3-tcpdump-start.sh
would select dumpcap instead of tcpdump, to attempt to record a pcap
file to /data/$testcase.pcap.
Due to some unknown way of dropping privileges done by dumpcap though,
it was unable to open the /data/$testcase.pcap due to /data being owned
to another user (tcpdump doesn't have this problem).

This patch fixes the above scenario by making sure /data is chowned to
the user running stuff inside docker. This is already kinda expected
since there's a fix_perms() script in jenkins-common.sh reverting files
created during the test so that they can be accessible by outter user
once everything is finished.

Change-Id: I1229a91cdbb1aa73fd94f1bf7e26f34086f06b25
The file was modified common/ttcn3-docker-run.sh