mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 03:50:31 +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.
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
f36a736a0c
commit
3dee037446
@@ -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