From b897bf1e118e69764da20ef6668ef5d9ec1653e8 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期四, 25 五月 2023 09:33:38 +0800 Subject: [PATCH] 增加监视结束国际化 --- Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/provider.h | 9 +++++++++ 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/provider.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/provider.h index 1d1fda3..affcc06 100755 --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/provider.h +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/provider.h @@ -56,6 +56,15 @@ BELLESIP_EXPORT void belle_sip_provider_clean_channels(belle_sip_provider_t *p); +/* Close connections for which no data was received at all during last X seconds period of time. + * This is useful because some routers don't send ICMP or TCP connection reset when they reallocate a port. + * For the client, the connection is presumed to be alive, but in practice it is not and there will never be any error. + * As a workaround, simply close these connections, and let the stack re-establish new ones, while refreshing registration for example. + * The time period after which a channel is considered as "unreliable" is configured with + * belle_sip_stack_set_unreliable_connection_timeout(belle_sip_stack_t *stack); + */ +BELLESIP_EXPORT void belle_sip_provider_clean_unreliable_channels(belle_sip_provider_t *p); + /** * Add auth info to the request if found * @param p object -- Gitblit v1.8.0