-
- Downloads
res_pjsip: Add common ast_sip_get_host_ip API.
Modules commonly used the pj_gethostip function for retrieving the IP address of the host. This function does not cache the result and may result in a DNS lookup occurring, or additional work. If the DNS server is unreachable or network issues arise this can cause the pj_gethostip function to block for a period of time. This change adds an ast_sip_get_host_ip and ast_sip_get_host_ip_string function which does the same thing but caches the host IP address at module load time. This results in no additional work being done each time the local host IP address is needed. ASTERISK-25342 #close Change-Id: I3205deb679b01fa5ac05a94b623bfd620a2abe1e
Showing
- include/asterisk/res_pjsip.h 27 additions, 0 deletionsinclude/asterisk/res_pjsip.h
- res/res_pjsip.c 46 additions, 0 deletionsres/res_pjsip.c
- res/res_pjsip_multihomed.c 4 additions, 19 deletionsres/res_pjsip_multihomed.c
- res/res_pjsip_sdp_rtp.c 9 additions, 9 deletionsres/res_pjsip_sdp_rtp.c
- res/res_pjsip_session.c 1 addition, 6 deletionsres/res_pjsip_session.c
- res/res_pjsip_t38.c 7 additions, 8 deletionsres/res_pjsip_t38.c
Loading
Please register or sign in to comment