-
Notifications
You must be signed in to change notification settings - Fork 779
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
Allow dialog establishment when remote does not provide To tag #3394
Conversation
Honestly I don't know whether it needs to be changed too or not. SIP dialog seems to be introduced in rfc3261 (searched for 'dialog' in rfc2543 found none), so perhaps we should just leave it as is? |
What I found in the older RFC https://www.rfc-editor.org/rfc/rfc2543#section-6.37 regarding forking is this:
So, yes, the To tag must be present in the case of forking. But I'm just not sure why we should assert instead of just returning error. |
It looks like no To tag is basically acceptable, i.e: equal to having tag with null value (whatever it means), I believe it is applicable for forking scenario too. But then, the API is part of SIP dialog API (using
Yes, the library does not seem to verify the To tag existence before calling it (start here). A similar check in |
For now, I guess let's just leave the other issues (normal check instead of assertion). |
To fix #1096.
The assertion occurs in the following line because the dialog is not established:
pjproject/pjsip/src/pjsip-ua/sip_inv.c
Lines 3453 to 3455 in 66c101f
The standard (rfc3261 12.1.2 UAC Behavior) specifies that it should be tolerated: