From de6a7e5d4487ef56e7e710ae35c4daf306cf0ac8 Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Tue, 1 Apr 2025 12:03:45 +0200 Subject: [PATCH] MT#62272 auto-daemon-tests-moh: add reflect MoH test Just another test to make sure the reflection MoH functionality works correct. Change-Id: I68974060523a99f740269c9c2daf06e1af7ecb4d --- t/auto-daemon-tests-moh.pl | 138 +++++++++++++++++++++++++++++++++++++ 1 file changed, 138 insertions(+) diff --git a/t/auto-daemon-tests-moh.pl b/t/auto-daemon-tests-moh.pl index 0180b1878..b88b99d35 100644 --- a/t/auto-daemon-tests-moh.pl +++ b/t/auto-daemon-tests-moh.pl @@ -935,5 +935,143 @@ a=recvonly a=rtcp:PORT SDP +# test MoH for answerer with reflect + +($sock_a, $sock_b) = new_call([qw(198.51.100.1 33068)], [qw(198.51.100.3 33070)]); + +# declare that offerer is capable of moh +offer('Music on hold - answerer test, sendrecv, with reflect', { ICE => 'remove', DTLS => 'off', moh => { blob => $wav_file } }, < 'remove', moh => { 'db-id' => '123' } }, < 'remove', moh => { mode => 'reflect' }, DTLS => 'off' }, < 'remove' }, < 'remove', DTLS => 'off' }, < 'remove' }, <