Skip to content

Commit a1bfd6c

Browse files
committed
Fix to disable Speech Detector for Dial Record scenario
This refer to RESTCOMM-1758
1 parent 9f23645 commit a1bfd6c

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

restcomm/restcomm.mscontrol.mms/src/main/java/org/restcomm/connect/mscontrol/mms/MmsBridgeController.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,14 +384,17 @@ private void onStartRecording(StartRecording message, ActorRef self, ActorRef se
384384
if(logger.isInfoEnabled()) {
385385
logger.info("Start recording bridged call");
386386
}
387-
int maxLength = 3600;
387+
//14400 = 4hrs to match the max call duration
388+
//By setting timeout to 4hrs, we disable Speech Detection for Dial Record scenario
389+
int maxLength = 14400;
390+
int timeout = 14400;
388391

389392
this.recording = Boolean.TRUE;
390393
this.recordStarted = DateTime.now();
391394
this.recordingRequest = message;
392395

393396
// Tell media group to start recording
394-
Record record = new Record(message.getRecordingUri(), maxLength, MediaAttributes.MediaType.AUDIO_ONLY);
397+
Record record = new Record(message.getRecordingUri(), timeout, maxLength, null, MediaAttributes.MediaType.AUDIO_ONLY);
395398
this.mediaGroup.tell(record, self);
396399
}
397400
}

0 commit comments

Comments
 (0)