mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 15:29:05 +00:00
Merge "pjproject_bundled: Allow IPv4/IPv6 (Dual Stack) configurations."
This commit is contained in:
13
third-party/pjproject/patches/0003-r5403-pjsip_IPV6_V6ONLY.patch
vendored
Normal file
13
third-party/pjproject/patches/0003-r5403-pjsip_IPV6_V6ONLY.patch
vendored
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
--- a/pjlib/src/pj/sock_bsd.c
|
||||||
|
+++ b/pjlib/src/pj/sock_bsd.c
|
||||||
|
@@ -539,6 +539,10 @@
|
||||||
|
pj_sock_setsockopt(*sock, pj_SOL_SOCKET(), pj_SO_NOSIGPIPE(),
|
||||||
|
&val, sizeof(val));
|
||||||
|
}
|
||||||
|
+ if (af != PJ_AF_INET) { /* Linux Kernel 2.4.21; June 2003 */
|
||||||
|
+ pj_sock_setsockopt(*sock, PJ_SOL_IPV6, IPV6_V6ONLY,
|
||||||
|
+ &val, sizeof(val));
|
||||||
|
+ }
|
||||||
|
#if defined(PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT) && \
|
||||||
|
PJ_IPHONE_OS_HAS_MULTITASKING_SUPPORT!=0
|
||||||
|
if (type == pj_SOCK_DGRAM()) {
|
||||||
Reference in New Issue
Block a user