]> 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-org-access-app[bot] <120671045+asterisk-org-access-app[bot]@users.noreply.github.com>
Tue, 12 Nov 2024 20:14:32 +0000 (20:14 +0000)
commit5d26fef4077e79822d4b738dece4693dfa74a2b7
tree711797f24b33be1467a805af7ef9d40dfea99c64
parent3cab4e7ab4a3ae483430d5f5e8fa167d02a8128c
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
include/asterisk/res_pjsip.h
res/res_pjsip/pjsip_transport_events.c