Skip to content

Commit bcbd6c5

Browse files
authored
Add the recording file name to store the recordings in the DB (#266)
* feat: add licence for the newly created files for video consultation and remove unwanted parameters from env * fix: rename the vc url property
1 parent 481032d commit bcbd6c5

12 files changed

Lines changed: 210 additions & 40 deletions

File tree

src/main/environment/common_ci.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,6 @@ captcha.enable-captcha=@env.ENABLE_CAPTCHA@
183183

184184
cors.allowed-origins=@env.CORS_ALLOWED_ORIGINS@
185185

186-
video-call-url=@env.VIDEO_CALL_URL@
187-
jibri.output.path=@env.JIBRI_OUTPUT_PATH@
186+
# Jitsi configuration
187+
videocall.url=@env.VIDEO_CALL_URL@
188188
video.recording.path=@env.VIDEO_RECORDING_PATH@

src/main/environment/common_docker.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,6 @@ captcha.enable-captcha=${ENABLE_CAPTCHA}
185185

186186
cors.allowed-origins=${CORS_ALLOWED_ORIGINS}
187187

188-
video-call-url=${VIDEO_CALL_URL}
189-
jibri.output.path={JIBRI_OUTPUT_PATH}
188+
# Jitsi configuration
189+
videocall.url=${VIDEO_CALL_URL}
190190
video.recording.path={VIDEO_RECORDING_PATH}

src/main/environment/common_example.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,8 @@ grievanceAllocationRetryConfiguration=3
198198
logging.path=logs/
199199
logging.file.name=logs/common-api.log
200200

201-
video-call-url=https://vc.piramalswasthya.org/?
202-
jibri.output.path=/srv/jibri/recordings
201+
# Jitsi configuration
202+
videocall.url=https://vc.piramalswasthya.org/?
203203
video.recording.path=/srv/recordings
204204

205205
captcha.secret-key= <Enter Cloudflare Secret Key>

src/main/java/com/iemr/common/controller/videocall/VideoCallController.java

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.controller.videocall;
224

325
import java.util.HashMap;
@@ -10,7 +32,6 @@
1032
import org.springframework.http.HttpStatus;
1133
import org.springframework.http.MediaType;
1234
import org.springframework.http.ResponseEntity;
13-
import org.springframework.web.bind.annotation.GetMapping;
1435
import org.springframework.web.bind.annotation.PostMapping;
1536
import org.springframework.web.bind.annotation.RequestMapping;
1637
import org.springframework.web.bind.annotation.RestController;
@@ -19,7 +40,6 @@
1940
import com.iemr.common.model.videocall.VideoCallRequest;
2041
import com.iemr.common.service.videocall.VideoCallService;
2142
import com.iemr.common.utils.response.OutputResponse;
22-
import com.fasterxml.jackson.databind.SerializationFeature;
2343
import com.fasterxml.jackson.databind.DeserializationFeature;
2444
import com.fasterxml.jackson.databind.ObjectMapper;
2545
import jakarta.servlet.http.HttpServletRequest;

src/main/java/com/iemr/common/data/videocall/VideoCallParameters.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.data.videocall;
224

325
import java.sql.Timestamp;

src/main/java/com/iemr/common/mapper/videocall/VideoCallMapper.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,29 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.mapper.videocall;
224

325
import java.util.List;
426
import org.mapstruct.Mapper;
5-
import org.mapstruct.factory.Mappers;
627
import org.mapstruct.IterableMapping;
728
import org.mapstruct.factory.Mappers;
829

src/main/java/com/iemr/common/model/videocall/UpdateCallRequest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.model.videocall;
224

325
import lombok.Data;

src/main/java/com/iemr/common/model/videocall/UpdateCallResponse.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.model.videocall;
224

325
import java.sql.Timestamp;

src/main/java/com/iemr/common/model/videocall/VideoCallRequest.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.model.videocall;
224

325
import com.fasterxml.jackson.annotation.JsonFormat;

src/main/java/com/iemr/common/repository/videocall/VideoCallParameterRepository.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
1+
/*
2+
* AMRIT – Accessible Medical Records via Integrated Technology
3+
* Integrated EHR (Electronic Health Records) Solution
4+
*
5+
* Copyright (C) "Piramal Swasthya Management and Research Institute"
6+
*
7+
* This file is part of AMRIT.
8+
*
9+
* This program is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU General Public License as published by
11+
* the Free Software Foundation, either version 3 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program. If not, see https://www.gnu.org/licenses/.
21+
*/
22+
123
package com.iemr.common.repository.videocall;
224

325
import java.util.List;

0 commit comments

Comments
 (0)