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

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


  Branch: refs/heads/master
  Home:   https://github.com/OpenSIPS/opensips
  Commit: de50249961a25fdf3defbe77601c45c2dd2f0399
      https://github.com/OpenSIPS/opensips/commit/de50249961a25fdf3defbe77601c45c2dd2f0399
  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.



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



More information about the Devel mailing list