Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 5280c86a100ad9414e9beeca620648d8388bab42
      
https://github.com/OpenSIPS/opensips/commit/5280c86a100ad9414e9beeca620648d8388bab42
  Author: Razvan Crainea <[email protected]>
  Date:   2024-10-23 (Wed, 23 Oct 2024)

  Changed paths:
    M modules/dialog/dlg_handlers.c
    M modules/tm/t_cancel.c
    M modules/tm/t_fwd.c

  Log Message:
  -----------
  dialog: accurate match of outgoing legs

The initial code assumes that for each transaction branch, we serially
create a dialog leg - therefore, when a reply is received for a specific
branch, we match the leg based on its index.
This logic breaks when having a branch that has no outgoing leg/message
(i.e. when push notification is used), because the dialog legs id gets
offsetted by the number of "blind" branches, thus we are no longer able
to properly match the reply with the leg.
This fix makes sure that when creating a let, it has the same index as
the transaction's branch id, hence the reply is properly matched.



To unsubscribe from these emails, change your notification settings at 
https://github.com/OpenSIPS/opensips/settings/notifications

_______________________________________________
Devel mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/devel

Reply via email to