mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-03 11:11:05 +00:00
res_pjsip: Add new AOR option "qualify_2xx_only"
Added a new option "qualify_2xx_only" to the res_pjsip AOR qualify
feature to mark a contact as available only if an OPTIONS request
returns a 2XX response. If the option is not specified or is false,
any response to the OPTIONS request marks the contact as available.
UserNote: The pjsip.conf AOR section now has a "qualify_2xx_only"
option that can be set so that only 2XX responses to OPTIONS requests
used to qualify a contact will mark the contact as available.
(cherry picked from commit 0b30f546ba
)
This commit is contained in:
committed by
Asterisk Development Team
parent
e47fb67e5a
commit
ef66694b7b
@@ -423,6 +423,8 @@ struct ast_sip_contact {
|
||||
int via_port;
|
||||
/*! If true delete the contact on Asterisk restart/boot */
|
||||
int prune_on_boot;
|
||||
/*! If true only authenticate if OPTIONS response is 2XX */
|
||||
int qualify_2xx_only;
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -505,6 +507,8 @@ struct ast_sip_aor {
|
||||
char *voicemail_extension;
|
||||
/*! Whether to remove unavailable contacts over max_contacts at all or first if remove_existing is enabled */
|
||||
unsigned int remove_unavailable;
|
||||
/*! If true only authenticate if OPTIONS response is 2XX */
|
||||
int qualify_2xx_only;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user