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

Question on how a "quick cancel" is handled #273

Open
danieludy opened this issue Apr 11, 2023 · 1 comment
Open

Question on how a "quick cancel" is handled #273

danieludy opened this issue Apr 11, 2023 · 1 comment

Comments

@danieludy
Copy link

We have a question on how the "quick cancel" is supposed to be handled. Out setup uses a request-handler to decide how to route the invite. If we get an invite followed immediately by a cancel this results in the invite still being sent to the SRF app for handling.

Here is a sample flow:
2023-03-31 02:21:59.470933 - invite received
2023-03-31 02:21:59.471092 - 100 trying sent
2023-03-31 02:21:59.471209 - request-handler query sent
2023-03-31 02:21:59.471268 - cancel received
2023-03-31 02:21:59.471396 - 200 OK sent for cancel
2023-03-31 02:21:59.471483 - 487 sent
2023-03-31 02:21:59.472869 - response from response-handler received and invite sent to SRF app
At this point the SRF app is never notified that a cancel happened and so does the "normal" work of setting up the B2BUA. Once we have a 18X message to send back to the A leg we get an error from Drachtio because it has already been torn down.

So back to the question, is this the expected behavior? It seems to me that we would want to not send the invite to the SRF app if the call has already been cancelled as we would want to avoid the work of setting up the B leg for no reason.
If this is the expected behavior how does the SRF app know that the original call was cancelled?

@danieludy
Copy link
Author

This looks like the same as the first issue under drachtio/drachtio-srf#113

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

No branches or pull requests

1 participant