mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed recordings parsing when file extensions have different lengths
This commit is contained in:
parent
7fb3a6ada3
commit
4cbad5308c
1 changed files with 1 additions and 1 deletions
|
|
@ -92,7 +92,7 @@ class RecordingModel @WorkerThread constructor(
|
|||
|
||||
val parsedTimestamp = withoutHeader.substring(
|
||||
indexOfSeparator + LinphoneUtils.RECORDING_FILE_NAME_URI_TIMESTAMP_SEPARATOR.length,
|
||||
withoutHeader.length - LinphoneUtils.RECORDING_FILE_EXTENSION.length
|
||||
withoutHeader.lastIndexOf(".")
|
||||
)
|
||||
Log.i(
|
||||
"$TAG Extract SIP URI [$sipUri] and timestamp [$parsedTimestamp] from file [$fileName]"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue