]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip_transport_events: handle multiple addresses for a domain
authorThomas Guebels <thomas.guebels@dstny.com>
Tue, 29 Oct 2024 14:32:33 +0000 (15:32 +0100)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 14 Nov 2024 20:01:00 +0000 (20:01 +0000)
commit4d7d5deab399edbaf2a91e973391b4928f31b48d
tree480fb9229d4ec5af28fefe797fd82972f7970eb0
parent525c13786a9258a705e1894e796b18822b9f0c12
pjsip_transport_events: handle multiple addresses for a domain

The key used for transport monitors was the remote host name for the
transport and not the remote address resolved for this domain.

This was problematic for domains returning multiple addresses as several
transport monitors were created with the same key.

Whenever a subsystem wanted to register a callback it would always end
up attached to the first transport monitor with a matching key.

The key used for transport monitors is now the remote address and port
the transport actually connected to.

Fixes: #932
(cherry picked from commit d1ed1018c426726976ff8a7132072f1f5ae161df)
include/asterisk/res_pjsip.h
res/res_pjsip/pjsip_transport_events.c