From be49215ea8c41c8bcfdf8839f34844c228895c16 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Sun, 2 Mar 2025 11:27:05 +0100 Subject: [PATCH] MT#62272 moh: add inactive hold type test Just a test to make sure inactive hold type is working. Change-Id: I2a4eccb7cbec480d88993a7df9e704ee46f16305 --- t/auto-daemon-tests-moh.pl | 137 +++++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) diff --git a/t/auto-daemon-tests-moh.pl b/t/auto-daemon-tests-moh.pl index c3c4e581a..bce5b3211 100644 --- a/t/auto-daemon-tests-moh.pl +++ b/t/auto-daemon-tests-moh.pl @@ -703,5 +703,142 @@ a=rtcp:PORT SDP +# test MoH for answerer (inactive) + +($sock_a, $sock_b) = new_call([qw(198.51.100.1 33041)], [qw(198.51.100.3 33042)]); + +# declare that offerer is capable of moh (fake db-id) +offer('Music on hold - answerer test, inactive', { ICE => 'remove', DTLS => 'off', moh => { 'db-id' => '123' } }, < 'remove', moh => { blob => $wav_file, mode => 'sendrecv' } }, < 'remove', DTLS => 'off' }, < 'remove' }, < 'remove', DTLS => 'off' }, < 'remove' }, <