Skip to content
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

Fixes Restcomm#150 : Resubmissions of requests to alternate peers now possible until all peers exhausted, while respecting Weighted Round Robin balancing algorithm #156

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Revert "Removed duplicate variable assignment of avpResCode"
This reverts commit 2575d51.
Steve Dwyer committed May 20, 2020
commit 3f9fafc84983e2901c71aed0ccf9836e6f446042
Original file line number Diff line number Diff line change
@@ -1060,9 +1060,10 @@ public boolean receiveMessage(IMessage message) {
if (isRedirectAnswer(avpResCode, message)) {
message.setListener(request.getEventListener());
message = processRedirectAnswer(request, message);
// if return value is not null, there was some error, lets try to invoke listener if it exists...
//if return value is not null, there was some error, lets try to invoke listener if it exists...
isProcessed = message == null;
}
avpResCode = message.getAvps().getAvp(RESULT_CODE);
if (isBusyOrUnableToDeliverAnswer(avpResCode, message)) {
message = processBusyOrUnableToDeliverAnswer(request, message);
// if return value is not null, there was some error, lets try to invoke listener if it exists...