mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 07:13:20 +00:00
res_pjsip: Fix SEGV on pending-qualify contacts
Permanent contacts that hadn't been qualified yet were missing their contact_status entries causing SEGVs when running CLI commands. This patch makes sure that contact_statuses are created for both dynamic and permanent contacts when they are created. It also adds checks in the CLI code to make sure there's a contact_status, just in case. ASTERISK-25018 #close Reported-by: Ivan Poddubny Tested-by: Ivan Poddubny Tested-by: George Joseph Change-Id: I3cc13e5cedcafb24c400368b515b02d7fb81e029
This commit is contained in:
@@ -313,4 +313,9 @@ void internal_sip_register_endpoint_formatter(struct ast_sip_endpoint_formatter
|
||||
*/
|
||||
int internal_sip_unregister_endpoint_formatter(struct ast_sip_endpoint_formatter *obj);
|
||||
|
||||
/*!
|
||||
* \internal
|
||||
* \brief Finds or creates contact_status for a contact
|
||||
*/
|
||||
struct ast_sip_contact_status *ast_res_pjsip_find_or_create_contact_status(const struct ast_sip_contact *contact);
|
||||
#endif /* RES_PJSIP_PRIVATE_H_ */
|
||||
|
Reference in New Issue
Block a user