res_pjsip: Handle reloading when permanent contacts exist and qualify is configured.
[asterisk/asterisk.git] / res / res_pjsip / pjsip_configuration.c
index 857805a..b8839ca 100644 (file)
@@ -1812,11 +1812,7 @@ void ast_res_pjsip_destroy_configuration(void)
        ast_sorcery_unref(sip_sorcery);
 }
 
-/*!
- * \internal
- * \brief Reload configuration within a PJSIP thread
- */
-static int reload_configuration_task(void *obj)
+int ast_res_pjsip_reload_configuration(void)
 {
        if (sip_sorcery) {
                ast_sorcery_reload(sip_sorcery);
@@ -1824,15 +1820,6 @@ static int reload_configuration_task(void *obj)
        return 0;
 }
 
-int ast_res_pjsip_reload_configuration(void)
-{
-       if (ast_sip_push_task(NULL, reload_configuration_task, NULL)) {
-               ast_log(LOG_WARNING, "Failed to reload PJSIP configuration\n");
-       }
-
-       return 0;
-}
-
 static void subscription_configuration_destroy(struct ast_sip_endpoint_subscription_configuration *subscription)
 {
        ast_string_field_free_memory(&subscription->mwi);