-
Notifications
You must be signed in to change notification settings - Fork 93
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
Fix empty to-tag in SBC on early REFER. #176
base: master
Are you sure you want to change the base?
Conversation
So you want to send REFER before the dialog has been established? |
It establishes an "early dialog" per section 13.2.2.1 or RFC3261. Was previously updated on all replies but was changed in commit 7ba4a52. In the example flow below Bob wants to transfer Alice to Carol, once Carol responds 180 ringing Bob sends the REFER to Alice, Alice responds with 603 because the request is badly formed as it has an empty to-tag. All is fixed by having the SBC update it's tables with the to-tag in the 180 response. I believe there is nothing wrong with this call flow, the only issue is that we haven't taken note of the to-tag so can't include it.
Example of REFER without this change... Bob -> SBC (with to-tag)
SBC -> Alice (empty to-tag)
|
Tim writes:
In the example flow below Bob wants to transfer Alice to Carol, once
Carol responds 180 ringing Bob sends the REFER to Alice, Alice
responds with 603 because the request is badly formed as it has an
empty to-tag. All is fixed by having the SBC update it's tables with
the to-tag in the 180 response. I believe there is nothing wrong with
this call flow, the only issue is that we haven't taken note of the
to-tag so can't include it.
I understand that REFER needs to have to tag, but is it OK that Bob
sends REFER when INVITE dialog with Carol is still in early stage?
How is that dialog terminated after REFER?
|
Also, Stefan must have had some good reason for commit 7ba4a52. I'm thus afraid that your PR would break some other, much more common use cases. Bob could REFER Alice to Carol without first calling Carol himself or could do the REFER after Carol has answered. |
Update to-tag on responses 180 or over rather than 200 to fix empty to-tag on early REFER.