[OpenSIPS-Devel] [OpenSIPS/opensips] c62900: tm: fix bogus contact built without domain

Răzvan Crainea noreply at github.com
Wed Aug 21 10:51:52 UTC 2024


  Branch: refs/heads/3.5
  Home:   https://github.com/OpenSIPS/opensips
  Commit: c62900e9dbcefe5c97fbf0a9a2181d23f46beeda
      https://github.com/OpenSIPS/opensips/commit/c62900e9dbcefe5c97fbf0a9a2181d23f46beeda
  Author: Razvan Crainea <razvan at opensips.org>
  Date:   2024-08-21 (Wed, 21 Aug 2024)

  Changed paths:
    M modules/tm/t_msgbuilder.h

  Log Message:
  -----------
  tm: fix bogus contact built without domain

When fixing headers for fake messages (`fix_fake_req_headers` func), the
function was looking for lumps that were removing the contact, because
it would assume they will be the same that would add a new one (i.e.
`fix_nated_contact`). However, the `toppology_hiding("U")` function,
would create a del lump, but then adding 3 lumps over it. This would
make the fixing bogusly learning the contact as "sip:$user" instead of
hole URI.
The fix for this was to make sure that there is only one ADD lump,
otherwise it would point to a shorter (broken) URI.

Credits go to David Trihy from Genesys for reporting and helping us
troubleshoot.

(cherry picked from commit de50249961a25fdf3defbe77601c45c2dd2f0399)



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



More information about the Devel mailing list