From c420a17c3b32e4e9f4f0e6dbb5c772a6fe47ea80 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 25 Mar 2025 15:54:40 +0100 Subject: [PATCH] MT#62272 moh: add double hold test Test double hold case. Change-Id: I136eef73f63d0a3814fe220a1fe95f41d6d44d18 --- t/auto-daemon-tests-moh.pl | 91 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/t/auto-daemon-tests-moh.pl b/t/auto-daemon-tests-moh.pl index 6f81994cd..0e2c1a068 100644 --- a/t/auto-daemon-tests-moh.pl +++ b/t/auto-daemon-tests-moh.pl @@ -844,5 +844,96 @@ a=sendrecv a=rtcp:PORT SDP +# test MoH, double hold + +($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 +offer('Music on hold - sendrecv, double hold', { ICE => 'remove', DTLS => 'off', moh => { blob => $wav_file } }, < 'remove', moh => { 'db-id' => '123' } }, < 'remove', DTLS => 'off' }, < 'remove' }, <