]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip: Add 'ip' as a valid option to 'identify_by' on endpoint.
authorJoshua Colp <jcolp@digium.com>
Tue, 24 Oct 2017 15:33:57 +0000 (15:33 +0000)
committerJoshua Colp <jcolp@digium.com>
Wed, 25 Oct 2017 18:13:26 +0000 (18:13 +0000)
commit7385d1e017e562afe64431606e857e704f86a16d
treee73d8cc4691607c4ba43a3012710cddea60d1158
parente7d8b4ebe7d2f0cd9d83fdd44613a8d3ac1b7315
res_pjsip: Add 'ip' as a valid option to 'identify_by' on endpoint.

When the identify_by option on an endpoint is set to ip it will
only be identified using the res_pjsip_endpoint_identifier_ip module.
This ensures that it is not mistakenly matched using the username of
the From header. To ensure behavior has not changed the default has
been changed to "username,ip" for the identify_by option.

ASTERISK-27206

Change-Id: I2170b86a7f7e221b4f00bf14aa1ef1ac5b050bbd
CHANGES
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/20abce6d1e3c_add_pjsip_identify_by_ip.py [new file with mode: 0644]
include/asterisk/res_pjsip.h
res/res_pjsip.c
res/res_pjsip/pjsip_configuration.c
res/res_pjsip_endpoint_identifier_ip.c