mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
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
This commit is contained in:
committed by
Friendly Automation
parent
f0c6b900de
commit
dffc4408e7
@@ -292,6 +292,17 @@ struct ast_sip_notifier {
|
||||
* \return An ao2 object that can be used to create a NOTIFY body.
|
||||
*/
|
||||
void *(*get_notify_data)(struct ast_sip_subscription *sub);
|
||||
/*!
|
||||
* \brief Supply Display Name for resource
|
||||
*
|
||||
* \param endpoint The endpoint from which we received the SUBSCRIBE
|
||||
* \param resource The name of the resource to which the subscription is being made
|
||||
* \param display_name buffer for Display Name
|
||||
* \param display_name_size size of display_name buffer
|
||||
* \retval 0 Success
|
||||
* \retval -1 Failure
|
||||
*/
|
||||
int (*get_resource_display_name)(struct ast_sip_endpoint *endpoint, const char *resource, char *display_name, int display_name_size);
|
||||
};
|
||||
|
||||
struct ast_sip_subscriber {
|
||||
|
Reference in New Issue
Block a user