-
Notifications
You must be signed in to change notification settings - Fork 76
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
Conversation
There was a problem hiding this 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:
pkg/sip/inbound.go
Outdated
return err | ||
} | ||
|
||
select { |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
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.
No description provided.