Skip to content

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