Skip to content

Commit a5604ce

Browse files
committed
support mod_audio_fork pause with silence
1 parent b3e7abe commit a5604ce

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/endpoint.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -507,6 +507,28 @@ test.skip('fork audio', (t) => {
507507
.then((evt) => {
508508
return ep.forkAudioStop();
509509
})
510+
// pause, resume
511+
.then(() => {
512+
t.pass('stopped forking audio with no metadata');
513+
return ep.forkAudioStart({
514+
wsUrl: 'ws://ws-server:3001',
515+
mixType: 'stereo',
516+
sampling: '16000'
517+
});
518+
})
519+
.then(() => {
520+
t.pass('started forking audio with no metadata');
521+
return uac.playFile('voicemail/16000/vm-record_message.wav');
522+
})
523+
.then((evt) => {
524+
return ep.forkAudioPause(true);
525+
})
526+
.then((evt) => {
527+
return ep.forkAudioResume();
528+
})
529+
.then((evt) => {
530+
return ep.forkAudioStop();
531+
})
510532
.then(() => {
511533
t.pass('stopped forking audio with no metadata');
512534
return ;

0 commit comments

Comments
 (0)