Skip to content

Implement TransferParticipant using SIP REFER messages #182

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

Merged
merged 26 commits into from
Sep 25, 2024

Conversation

biglittlebigben
Copy link
Contributor

No description provided.

@biglittlebigben biglittlebigben requested a review from a team as a code owner September 19, 2024 22:18
@biglittlebigben biglittlebigben marked this pull request as draft September 19, 2024 22:24
@biglittlebigben biglittlebigben marked this pull request as ready for review September 19, 2024 23:25
Copy link
Contributor

@dennwc dennwc left a comment

Choose a reason for hiding this comment

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

That's awesome! 🚀 I might need a bit of time to review it completely, but here's the first quick pass:

return err
}

select {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we move this deeper into the call stack? Current function calls c.cc.transferCall which calls sendRefer->sipResponse, which in turn will select on a SIP transaction. So it could also wait on the context and maybe on referDone too? The reason I'm proposing this is that tx may also accept CANCEL requests, which is also exposed as a channel. You will likely need to select on that eventually too, together with referDone.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved this one step down into the stack into sipInbound. I believe this belong to a transaction level above sipResponse, as we are waiting for the a totally separate request (vs STATUS responses). We should handle CANCEL by sending an appropriate error the referDone channel, I believe.

@biglittlebigben biglittlebigben merged commit 49b6607 into main Sep 25, 2024
3 checks passed
@biglittlebigben biglittlebigben deleted the benjamin/refer branch September 25, 2024 16:03
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