mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
pjsip_options: wrongly applied "UNKNOWN" status
A couple of places were setting the status to "UNKNOWN" when qualifies were being disabled. Instead this should be set to the "CREATED" status that represents when a contact is given (uri available), but the qualify frequency is set to zero so we don't know the status. This patch updates the relevant places with "CREATED". It also updates the "CREATED" status description (value shown in CLI/AMI/ARI output) to a value of "NonQualified"/"NonQual" as this description is hopefully less confusing. ASTERISK-27467 Change-Id: Id67509d25df92a72eb3683720ad2a95a27b50c89
This commit is contained in:
@@ -289,9 +289,13 @@ struct ast_sip_contact {
|
||||
* \brief Status type for a contact.
|
||||
*/
|
||||
enum ast_sip_contact_status_type {
|
||||
/*! Frequency > 0, but no response from remote uri */
|
||||
UNAVAILABLE,
|
||||
/*! Frequency > 0, and got response from remote uri */
|
||||
AVAILABLE,
|
||||
/*! Default last status, and when a contact status object is not found */
|
||||
UNKNOWN,
|
||||
/*! Frequency == 0, has a contact, but don't know status (non-qualified) */
|
||||
CREATED,
|
||||
REMOVED,
|
||||
};
|
||||
|
Reference in New Issue
Block a user