]> 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)
committerThomas Guebels <thomas.guebels@dstny.com>
Tue, 12 Nov 2024 20:14:29 +0000 (20:14 +0000)
commit184a30efac73d763781784b8632749d1d5be41b7
treef0ee5f8851a3a42133f5c70038b93302171044ca
parent34662cf0ea5fd3ff8d6d95ba0a20770e7ed94452
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