From 816f09bef092ef0a7ffee407d62e476e590677c5 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Thu, 2 Jan 2025 11:51:45 +0100 Subject: [PATCH] MT#61630 moh: add a few other tests Add a couple of tests for the following cases: - use both zero-connection + mode sendrecv flags at the same time - answerer puts on hold (instead of offerer) Change-Id: I5f849aa6b79a2e7e31512fbad9d2b82a6f5b0027 --- t/auto-daemon-tests.pl | 276 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 276 insertions(+) diff --git a/t/auto-daemon-tests.pl b/t/auto-daemon-tests.pl index 936dc38c5..abf4912e3 100755 --- a/t/auto-daemon-tests.pl +++ b/t/auto-daemon-tests.pl @@ -26632,6 +26632,282 @@ a=sendrecv a=rtcp:PORT SDP +# test MoH zero-connection + mode sendrecv + +($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 and declared zero-connection + mode sendrecv', { ICE => 'remove', DTLS => 'off', moh => { blob => $wav_file, connection => 'zero', mode => 'sendrecv' } }, < 'remove', moh => { 'db-id' => '123', connection => 'zero', mode => 'sendrecv' } }, < 'remove', DTLS => 'off' }, < 'remove' }, < 'remove', DTLS => 'off' }, < 'remove' }, < 'remove', DTLS => 'off', moh => { 'db-id' => '123' } }, < 'remove', moh => { blob => $wav_file } }, < 'remove', DTLS => 'off' }, < 'remove' }, < 'remove', DTLS => 'off' }, < 'remove' }, <