]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_pjsip_pubsub: provide a display name for RLS subscriptions
authorAlexei Gradinari <alex2grad@gmail.com>
Tue, 1 Feb 2022 15:59:02 +0000 (10:59 -0500)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 23 Feb 2022 20:25:22 +0000 (14:25 -0600)
commite85ee05e9d61010c58e9ec0e287bd445ad192acf
treed3df03f5d94a4b25155e163e3a9fddf51c93f19b
parent57685c139bffefd9d01de4c3c30d7e546970bd38
res_pjsip_pubsub: provide a display name for RLS subscriptions

Whereas BLFs allow to show a display name for each RLS entry,
the asterisk provides only the extension now.
This is not end user friendly.

This commit adds a new resource_list option, resource_display_name,
to indicate whether display name of resource or the resource name being
provided for RLS entries.
If this option is enabled, the Display Name will be provided.
This option is disabled by default to remain the previous behavior.
If the 'event' set to 'presence' or 'dialog' the non-empty HINT name
will be set as the Display Name.
The 'message-summary' is not supported yet.

ASTERISK-29891 #close

Change-Id: Ic5306bd5a7c73d03f5477fe235e9b0f41c69c681
configs/samples/pjsip.conf.sample
contrib/ast-db-manage/config/versions/8f72185e437f_res_pjsip_pubsub_add_resource_list_.py [new file with mode: 0644]
doc/CHANGES-staging/rls_display_name.txt [new file with mode: 0644]
include/asterisk/res_pjsip_pubsub.h
res/res_pjsip_exten_state.c
res/res_pjsip_pubsub.c