From daeb0956524606b597704a90b54d81340e10b3e4 Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Tue, 7 Mar 2017 12:32:49 +0000 Subject: [PATCH] Add support for registering IPv6 transport type. This change allows an IPv6 transport type to be registered and used. The IPv4 transport is found (if available) and the IPv4 flag added to its type to match how the finding of IPv6 transport types works. --- pjsip/src/pjsip/sip_transport.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/pjsip/src/pjsip/sip_transport.c b/pjsip/src/pjsip/sip_transport.c index 7df6138..ce72814 100644 --- a/pjsip/src/pjsip/sip_transport.c +++ b/pjsip/src/pjsip/sip_transport.c @@ -236,6 +236,7 @@ PJ_DEF(pj_status_t) pjsip_transport_register_type( unsigned tp_flag, int *p_tp_type) { unsigned i; + pjsip_transport_type_e parent = 0; PJ_ASSERT_RETURN(tp_flag && tp_name && def_port, PJ_EINVAL); PJ_ASSERT_RETURN(pj_ansi_strlen(tp_name) < @@ -243,6 +244,11 @@ PJ_DEF(pj_status_t) pjsip_transport_register_type( unsigned tp_flag, PJ_ENAMETOOLONG); for (i=1; i