]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_endpoint_identifier_ip: Add endpoint identifier transport address.
authorSperl Viktor <viktike32@gmail.com>
Thu, 28 Mar 2024 15:22:24 +0000 (16:22 +0100)
committerAsterisk Development Team <asteriskteam@digium.com>
Thu, 9 May 2024 13:56:11 +0000 (13:56 +0000)
commit68a49128253f677f9e1b235c70d2316342372f7d
tree863d13e6c33e4bf0c1f1ff75144d962e1d2aec51
parent6389c743a9559ae912b9173c67553e7f7d729508
res_pjsip_endpoint_identifier_ip: Add endpoint identifier transport address.

Add a new identify_by option to res_pjsip_endpoint_identifier_ip
called 'transport' this matches endpoints based on the bound
ip address (local) instead of the 'ip' option, which matches on
the source ip address (remote).

UserNote: set identify_by=transport for the pjsip endpoint. Then
use the existing 'match' option and the new 'transport' option of
the identify.

Fixes: #672
(cherry picked from commit 7c3e2cfda990c315ecb8a06eae8506f086a54f84)
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/d5122576cca8_add_transport_attribute_to_identify.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip/pjsip_config.xml
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_endpoint_identifier_ip.c