]> 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:02:03 +0000 (20:02 +0000)
commit6795ded3f4ecfa2d34babd5d713913d3396e6a16
treed6923dc36de5f18ecd08e5eedda36cbd8dd0e8e6
parent07166788fd2b0203a4680be582129b3c8fbc9da8
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 184a30efac73d763781784b8632749d1d5be41b7)
include/asterisk/res_pjsip.h
res/res_pjsip/pjsip_transport_events.c