Skip to content

[WIP]jira-2165 RC should send BYE to XMS when stop recording.#2956

Merged
maria-farooq merged 4 commits intomasterfrom
issue-2165
Jun 26, 2018
Merged

[WIP]jira-2165 RC should send BYE to XMS when stop recording.#2956
maria-farooq merged 4 commits intomasterfrom
issue-2165

Conversation

@xhoaluu
Copy link
Copy Markdown
Contributor

@xhoaluu xhoaluu commented May 25, 2018

What this PR does / why we need it:
RC does not send BYE to XMS if Record verb at the end, Caller drop the call at middle of record. That make XMS resource cannot be released.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #
https://telestax.atlassian.net/browse/RESTCOMM-2165
Special notes for your reviewer:
All information is provided in Jira ticket.

this.mediaGroup.getSignalDetector().stop();
this.collecting = Boolean.FALSE;
}
call.tell(new RecordStoped(), self);
Copy link
Copy Markdown
Contributor

@jaimecasero jaimecasero Jun 6, 2018

Choose a reason for hiding this comment

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

do we need to provide smae change for non JSR309 controller? Is this scenario causing same effect when we have RMS integrated?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jaimecasero
Line 791:
https://github.com/RestComm/Restcomm-Connect/pull/2956/files/2772b7dc7d20cc069d1ae12ebb06e39f55019371#diff-57215364d1e805510727c150e410959bL791

This line of code hold the thread for more than 2 seconds every time RestComm want to stop recording from XMS.
When finish Record verb RC does:
VoiceInterpreter send signal to stop recording to Jsr309CallController actor.
Jsr309CallController thread was block at line 791 for 2 second.
In the mean time Jsr309CallController is blocked, VoiceInterpreter send signal to close media session, but Jsr309CallController is blocked so the signal was ignored and then BYE cannot send to XMS.

In non JSR309, the code does not have any block point, so DELETE MGCP still send to RMS.

@jaimecasero
Copy link
Copy Markdown
Contributor

@xhoaluu can you merge with latest master to check test results on CI again please? i think some of the failing tests were fixed on master

@xhoaluu xhoaluu changed the title jira-2165 RC should send BYE to XMS when stop recording. [WIP]jira-2165 RC should send BYE to XMS when stop recording. Jun 20, 2018
Hoan HL and others added 3 commits June 20, 2018 12:33
* master: (97 commits)
  fixed partialresult gather notification. Do not expect any RCML from notification.
  http client stuff relocated to interpreter.This reduces  undesired dependencies in the project
  added more comments for partialResultCallback
  added test to check startInputKeys att
  Fixed DigestAuthenticationTest to properly use CallControlHelper.permitted() method
  added docker tag
  fixed style
  Update release-notes.adoc
  fixed typo on logging
  fixed bad query syntax
  fixed modifying record on inmutable SessionInfo object
  added debug log for smsservice actor
  fixed cache-path to be applied independent to RMS config
  style fixed
  updated for sprint3 activties
  fixing wrong text, phonenumber to client
  fixing wrong text, lowercase to uppercase
  fixing wrong text
  fixing Service Provider
  Fixing URLs in docs to match the restcomm cloud URLs
  ...
* master:
  added incoming release notes
  do not pass session timeout to Call actor
  handling session expiration properly. B2BUA sessions dropped accordingly
  add automatic update max-p2p-call-length from advance.conf
  using aka ask partten when sending completed status
  adjust align in restcomm.xml
  add P2P max Call Length Configuration
@maria-farooq maria-farooq merged commit c5bc22c into master Jun 26, 2018
@xhoaluu xhoaluu deleted the issue-2165 branch June 27, 2018 00:47
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.

3 participants