aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/mgcp
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-12-10 13:09:37 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-12-13 13:49:32 +0100
commit24754f0490b0f77fca4110402bbff08603a29360 (patch)
treee56020ed200cd99993d581c56b1ee2d668e58c1a /openbsc/tests/mgcp
parent2c2ca4df382110c4bebdb91d7410838fbf20d493 (diff)
mgcp: Parse SDP to get rate and packet duration
This patch parses the 'ptime' and 'maxptime' SDP attributes, and the SDP rate information and sets up packet_duration_ms accordingly. If the packet duration is unknown or allows for different values (e.g. because 'ptime' uses a range or 'maxptime' allows for more than one frame) the duration is set to 0. Sponsored-by: On-Waves ehf
Diffstat (limited to 'openbsc/tests/mgcp')
-rw-r--r--openbsc/tests/mgcp/mgcp_test.ok10
1 files changed, 5 insertions, 5 deletions
diff --git a/openbsc/tests/mgcp/mgcp_test.ok b/openbsc/tests/mgcp/mgcp_test.ok
index 24f9b336c..f9dd7cb62 100644
--- a/openbsc/tests/mgcp/mgcp_test.ok
+++ b/openbsc/tests/mgcp/mgcp_test.ok
@@ -16,22 +16,22 @@ Testing AUEP2
Testing MDCX1
Testing MDCX2
Testing CRCX
-Packet duration not set
+Detected packet duration: 40
Requested packetetization period: 20-20
Testing MDCX3
Packet duration not set
Requested packetization period not set
Testing MDCX4
-Packet duration not set
+Detected packet duration: 40
Requested packetetization period: 20-20
Testing MDCX4_PT1
-Packet duration not set
+Detected packet duration: 40
Requested packetetization period: 20-40
Testing MDCX4_PT2
-Packet duration not set
+Detected packet duration: 40
Requested packetetization period: 20-20
Testing MDCX4_PT3
-Packet duration not set
+Detected packet duration: 40
Requested packetization period not set
Testing DLCX
Detected packet duration: 20