]> 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)
committerKevin Harwell <kharwell@digium.com>
Wed, 23 Feb 2022 21:20:49 +0000 (15:20 -0600)
commitc12cb899de43380ad5abd4e61d3baf5ca9e8fb27
treea0eaacf9d49ad3b8c78b8e9a2d446c7e8ae8ee64
parentb1765c93e40e561b074cb3f1efa4327e206a1cad
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