From 09a3a0fc67fc0305aa90f4a2030a46393e90876f Mon Sep 17 00:00:00 2001 From: "wenpeng.song" <wenpeng.song@iopsys.eu> Date: Mon, 30 Sep 2024 17:54:29 +0200 Subject: [PATCH] update --- include/asterisk/res_pjsip_outbound_registration.h | 2 +- res/res_pjsip_outbound_registration.c | 4 ++-- res/res_pjsip_outbound_registration.exports.in | 2 +- res/res_pjsip_session.c | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/include/asterisk/res_pjsip_outbound_registration.h b/include/asterisk/res_pjsip_outbound_registration.h index 7e1276417f..34bc6bf56d 100644 --- a/include/asterisk/res_pjsip_outbound_registration.h +++ b/include/asterisk/res_pjsip_outbound_registration.h @@ -1,6 +1,6 @@ #ifndef _RES_PJSIP_OUTBOUND_REGISTRATION_H #define _RES_PJSIP_OUTBOUND_REGISTRATION_H -void ast_queue_registration_recovery_flow(const char *registration_name); +void queue_registration_recovery_flow(const char *registration_name); #endif /* _RES_PJSIP_OUTBOUND_REGISTRATION_H */ diff --git a/res/res_pjsip_outbound_registration.c b/res/res_pjsip_outbound_registration.c index 4a1de018e2..bb7274ee3d 100644 --- a/res/res_pjsip_outbound_registration.c +++ b/res/res_pjsip_outbound_registration.c @@ -1852,7 +1852,7 @@ static int handle_registration_response(void *data) ast_log(LOG_NOTICE, "The upper_bound wait time set to %d seconds\n", registration->retry_max_time); } ast_log(LOG_NOTICE, "Queue registration recovery flow for %s\n", response->client_state->registration_name); - ast_queue_registration_recovery_flow(client_state->registration_name); + queue_registration_recovery_flow(client_state->registration_name); } else { ast_debug(1, "%s: Registration re-try after %d seconds.\n", client_state->registration_name, waiting_time); schedule_retry(response, waiting_time, server_uri, client_uri, client_num); @@ -2819,7 +2819,7 @@ static int queue_register(struct sip_outbound_registration_state *state) return 0; } -void ast_queue_registration_recovery_flow(const char *registration_name) +void queue_registration_recovery_flow(const char *registration_name) { struct sip_outbound_registration_state *state; state = get_state(registration_name); diff --git a/res/res_pjsip_outbound_registration.exports.in b/res/res_pjsip_outbound_registration.exports.in index dd3799a9fc..e9cb2d7ffb 100644 --- a/res/res_pjsip_outbound_registration.exports.in +++ b/res/res_pjsip_outbound_registration.exports.in @@ -1,6 +1,6 @@ { global: - LINKER_SYMBOL_PREFIXast_queue_registration_recovery_flow; + LINKER_SYMBOL_PREFIXqueue_registration_recovery_flow; local: *; }; diff --git a/res/res_pjsip_session.c b/res/res_pjsip_session.c index b0a0fbe2cb..c54427fb59 100644 --- a/res/res_pjsip_session.c +++ b/res/res_pjsip_session.c @@ -5084,7 +5084,7 @@ static int check_request_status(pjsip_inv_session *inv, pjsip_event *e) // TODO send registration to another address if (session->endpoint) { ast_log(LOG_NOTICE, "INVITE sent to '%s' failed, schedule re-registrations\n", ast_sorcery_object_get_id(session->endpoint)); - ast_queue_registration_recovery_flow(ast_sorcery_object_get_id(session->endpoint)); + queue_registration_recovery_flow(ast_sorcery_object_get_id(session->endpoint)); } return 0; } -- GitLab