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

[mod_sofia] uuid_simplify - fix to-/from-tag in refer-to header #2773

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kukies007
Copy link

When using uuid_simplify a REFER is sent with a Refer-To header.
The Refer-To header contains a URI with Replaces params that contains a to-tag and from-tag.
The tags are currently set from channel variables ${sip_to_tag} and ${sip_from_tag} dependent on the call direction of the partner channel.
However, this only works in basic call scenarios.

The tags get invalid when user agent role (UAS/UAC) of partner channel changes (e.g. by Re-INVITE for hold, session-timer, ...) before uuid_simplify is called.
In such a call scenario mod_sofia will keep call direction but switches content of ${sip_to_tag} and ${sip_from_tag} channel vars.
Thus, call direction and channel vars will no longer result in correct tags as defined by RFC 3891 (chapter 3 sentence 3+4).

With this pull request I would suggest using local and remote tag from underlying nua state of partner channel regardless of the call direction.

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.

1 participant