]> 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:28 +0000 (20:14 +0000)
commit2ee258b0fc22faa4e69b79bb091ad55310a62733
tree16de91a01a40697683203dbac5c3d733eec3cd31
parentb01a3cfdcba7ad47739e16b3f3f24159c0fc1285
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