summaryrefslogtreecommitdiff
path: root/res/res_pjsip/include
diff options
context:
space:
mode:
authorGeorge Joseph <george.joseph@fairview5.com>2015-04-27 11:11:40 -0600
committerGeorge Joseph <george.joseph@fairview5.com>2015-04-27 11:11:40 -0600
commit99fb87ae13a1fc28bd5043600def3b373f85a0f6 (patch)
treef936206632f0ecfc59a065c39e43d0de7390cbf5 /res/res_pjsip/include
parente9788056e9f60a8ef6f810f0c5d31e0f3700e3bb (diff)
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
Diffstat (limited to 'res/res_pjsip/include')
-rw-r--r--res/res_pjsip/include/res_pjsip_private.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/res/res_pjsip/include/res_pjsip_private.h b/res/res_pjsip/include/res_pjsip_private.h
index bf428d5c5..c1f7e236e 100644
--- a/res/res_pjsip/include/res_pjsip_private.h
+++ b/res/res_pjsip/include/res_pjsip_private.h
@@ -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_ */