mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 00:04:53 +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 21dba60ff2
)
This commit is contained in:
committed by
Asterisk Development Team
parent
68359a3f96
commit
0fbb6de6f4
@@ -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