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/sipstack.h | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 47 insertions(+), 0 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/sipstack.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/sipstack.h index f3a5f6e..c34d0b9 100755 --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/sipstack.h +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/belle-sip.framework/Headers/sipstack.h @@ -54,6 +54,19 @@ BELLESIP_EXPORT belle_http_provider_t * belle_sip_stack_create_http_provider(belle_sip_stack_t *s, const char *bind_ip); +#define BELLE_SIP_HTTP_TRANSPORT_TCP 0x01 +#define BELLE_SIP_HTTP_TRANSPORT_TLS 0x02 +/** + * Create a HTTP provider attached to a given stack enabling specific transports + * @param[in] s The stack to attach the transport + * @param[in] bind_ip + * @param[in] transports a mask of authorized transports for this provider, availables are BELLE_SIP_HTTP_TRANSPORT_TCP and BELLE_SIP_HTTP_TRANSPORT_TLS + * + * @return The HTTP provider + * + */ +BELLESIP_EXPORT belle_http_provider_t * belle_sip_stack_create_http_provider_with_transports(belle_sip_stack_t *s, const char *bind_ip, const uint8_t transports); + BELLESIP_EXPORT belle_sip_main_loop_t* belle_sip_stack_get_main_loop(belle_sip_stack_t *stack); BELLESIP_EXPORT void belle_sip_stack_main(belle_sip_stack_t *stack); @@ -119,8 +132,25 @@ /** * Sets the time interval in seconds after which a connection must be closed when inactive. + * By inactive, it is meant that the connection hasn't been used to send or recv data. **/ BELLESIP_EXPORT void belle_sip_stack_set_inactive_transport_timeout(belle_sip_stack_t *stack, int seconds); + + +/** + * Set the time interval in seconds after which a connection is considered to be unreliable because + * no data was received over it. + * The special value 0 means that a connection will never be considered as unreliable. + * See belle_sip_provider_clean_unreliable_channels(). + */ +BELLESIP_EXPORT void belle_sip_stack_set_unreliable_connection_timeout(belle_sip_stack_t *stack, int seconds); + +/** + * Get the time interval in seconds after which a connection is considered to be unreliable because + * no data was received over it. + * See belle_sip_provider_clean_unreliable_channels(). + */ +BELLESIP_EXPORT int belle_sip_stack_get_unreliable_connection_timeout(const belle_sip_stack_t *stack); /** @@ -213,6 +243,23 @@ **/ BELLESIP_EXPORT void belle_sip_stack_set_client_bind_port(belle_sip_stack_t *stack, int port); +#define BELLE_SIP_DNS_APPLE_DNS_SERVICE 0x01 +#define BELLE_SIP_DNS_DNS_C 0x02 +/** + * Set the dns engine to use. + * @param dns_engine Must be one of BELLE_SIP_DNS_APPLE_DNS_SERVICE or BELLE_SIP_DNS_DNS_C +**/ +BELLESIP_EXPORT void belle_sip_stack_set_dns_engine(belle_sip_stack_t *stack, unsigned char dns_engine); +/** + * Get the dns engine used + * @return BELLE_SIP_DNS_APPLE_DNS_SERVICE or BELLE_SIP_DNS_DNS_C +**/ +BELLESIP_EXPORT unsigned char belle_sip_stack_get_dns_engine(const belle_sip_stack_t *stack); + +/** + * Requests the stack to simulate a router that doesn't respond to SRV requests. This is for test ONLY. +**/ +BELLESIP_EXPORT void belle_sip_stack_simulate_non_working_srv(belle_sip_stack_t *stack, int yesno); /* * End of test functions. -- Gitblit v1.8.0