Skip to content

Restcomm 1259#2723

Merged
gvagenas merged 21 commits intomasterfrom
restcomm-1259
Dec 21, 2017
Merged

Restcomm 1259#2723
gvagenas merged 21 commits intomasterfrom
restcomm-1259

Conversation

@maria-farooq
Copy link
Copy Markdown

No description provided.

@gvagenas gvagenas self-assigned this Dec 20, 2017
Copy link
Copy Markdown
Contributor

@gvagenas gvagenas left a comment

Choose a reason for hiding this comment

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

@maria-farooq see my comment for when to answer the call and when not

// if enable200OkDelay is true, call was not playing ringing tone, so no need to send stop ringing
if(enable200OkDelay){
outboundCallResponse = SipServletResponse.SC_REQUEST_TIMEOUT;
call.tell(new StopWaiting(), self());
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@maria-farooq I think we shouldn't ask the initial call actor to stop waiting and answer the call at this point because there is a chance there will be no next verb (either subsequent verb or verb from Dial action).

To my point of view, we should first check if there is next verb (either by parser getNext or by executing the Dial Action) and if the next verb is Say, Play, Gather or other verb that involve Media Server, only then ask the call to answer.

Otherwise, we can terminate the original call. Which also means that verbs that don't need Media Server will be executed just fine, such as Sms, Email etc.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

i see the point, will update the patch so we only answer the call if we have relevant upcoming tag

@maria-farooq
Copy link
Copy Markdown
Author

@gvagenas All delay related test clases are green so if you have reviewed the patch we are ok to merge

@gvagenas gvagenas merged commit 700fd9a into master Dec 21, 2017
@gvagenas gvagenas deleted the restcomm-1259 branch December 21, 2017 12:00
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