-
Notifications
You must be signed in to change notification settings - Fork 181
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
Subsequent proxyTo() calls cause missbehaviour #340
Comments
thanks @horacimacias for this reporting. Let me check what the Spec defiens in terms of subsequent proxyTo invocations. |
sounds good thanks.
also on 10.2.4 Receiving Responses:
|
Using restcomm sipservlets 4.0.125 and proxying multiple times, for example proxyTo(Bob) then wait (e.g. timeout or non-200 final response) then proxyTo(Alice) causes INVITE to be proxied correctly but responses are not presented to servlet.
I believe the issue is with finalBranchForSubsequentRequests which is not cleared on startProxy calls.
The first time proxyTo is called, startProxy is invoked and the response handling will 'see' finalBranchForSubsequentRequests being null.
The second time proxyTo is called, I believe finalBranchForSubsequentRequests should be set to null again so that the responses for that second proxy operation are routed correctly and presented correctly to the servlet.
I added the following on ProxyImpl and my application started behaving as it should:
it would be good for somebody to actually re-think how proxying is handled and whether this has other side effects.
Log Time
The text was updated successfully, but these errors were encountered: