Skip to content

Issue2480 Record refactoring #2569

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Oct 11, 2017
Merged

Issue2480 Record refactoring #2569

merged 13 commits into from
Oct 11, 2017

Conversation

gvagenas
Copy link
Contributor

@gvagenas gvagenas commented Oct 11, 2017

Patch to properly modify VI, Call, IvrEndpoint to handle recording NTFY requests from RMS or handle failures on recording.
Patch to modify MockMediaGateway to actually create recording file for test purposes.
This close Restcomm-1086
This close Restcomm-1089
This close Restcomm-1088
# Conflicts:
#	restcomm/restcomm.mgcp/src/main/java/org/restcomm/connect/mgcp/MockMediaGateway.java
#	restcomm/restcomm.telephony/src/main/java/org/restcomm/connect/telephony/Call.java
#	restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/DialRecordingAnswerDelayTest.java
#	restcomm/restcomm.testsuite/src/test/java/org/restcomm/connect/testsuite/telephony/DialRecordingTest.java
#	restcomm/restcomm.testsuite/src/test/resources/log4j.xml
This refer to #2480
@@ -776,7 +776,7 @@ private void onStop(Stop message, ActorRef self, ActorRef sender) {
logger.error("Could not measure recording duration: " + e.getMessage(), e);
duration = 0.0;
}
if (duration.equals(0.0)) {
if (!duration.equals(0.0)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we just flipped the check here and did nothing further.
dont we want to add recording record inside this check to make sure its added only when recording duration is not 0


}
}
// if (testing) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets remove this block instead of commenting

}
// catch (IOException e) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets remove this block instead of commenting

@@ -1880,6 +1880,8 @@ public FinishRecording(final ActorRef source) {
@SuppressWarnings("unchecked")
@Override
public void execute(final Object message) throws Exception {
logger.info("##### At FinishRecording, message: "+message.getClass());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lets add guarded loging

@@ -818,6 +818,7 @@ private void onMediaGroupResponse(Object message) throws TransitionFailedExcepti
} else if (is(playing)) {
fsm.transition(message, ready);
} else if (is(creatingRecording)) {
logger.info("Will move to finishRecording because of MediaGroupResponse");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need guarded loging

@gvagenas gvagenas merged commit 9fb2169 into master Oct 11, 2017
@jaimecasero jaimecasero deleted the issue2480 branch April 11, 2018 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants