-
Notifications
You must be signed in to change notification settings - Fork 215
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
Conversation
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
This close #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)) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
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()); |
There was a problem hiding this comment.
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"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need guarded loging
Related issues: