Changeset 6047


Ignore:
Timestamp:
Jul 29, 2019 2:32:55 AM (5 years ago)
Author:
nanang
Message:

Misc (re #2210): Added SIP transport type DLTS. Note that this is not an implementation, just for app so it can register its own implementation.

Location:
pjproject/trunk/pjsip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/sip_types.h

    r4262 r6047  
    7474    PJSIP_TRANSPORT_TLS, 
    7575 
    76     /** SCTP. */ 
     76    /** DTLS, not implemented yet. */ 
     77    PJSIP_TRANSPORT_DTLS, 
     78 
     79    /** SCTP, not implemented yet. */ 
    7780    PJSIP_TRANSPORT_SCTP, 
    7881 
     
    9699 
    97100    /** TLS over IPv6 */ 
    98     PJSIP_TRANSPORT_TLS6 = PJSIP_TRANSPORT_TLS + PJSIP_TRANSPORT_IPV6 
     101    PJSIP_TRANSPORT_TLS6 = PJSIP_TRANSPORT_TLS + PJSIP_TRANSPORT_IPV6, 
     102 
     103    /** DTLS over IPv6, not implemented yet */ 
     104    PJSIP_TRANSPORT_DTLS6 = PJSIP_TRANSPORT_DTLS + PJSIP_TRANSPORT_IPV6 
    99105 
    100106} pjsip_transport_type_e; 
  • pjproject/trunk/pjsip/src/pjsip/sip_transport.c

    r6021 r6047  
    200200        "TLS transport",  
    201201        PJSIP_TRANSPORT_RELIABLE | PJSIP_TRANSPORT_SECURE 
     202    }, 
     203    {  
     204        PJSIP_TRANSPORT_DTLS, 
     205        5061,  
     206        {"DTLS", 4},  
     207        "DTLS transport",  
     208        PJSIP_TRANSPORT_SECURE 
    202209    }, 
    203210    {  
     
    243250        PJSIP_TRANSPORT_RELIABLE | PJSIP_TRANSPORT_SECURE 
    244251    }, 
     252    { 
     253        PJSIP_TRANSPORT_DTLS6, 
     254        5061, 
     255        {"DTLS", 4}, 
     256        "DTLS IPv6 transport", 
     257        PJSIP_TRANSPORT_SECURE 
     258    }, 
    245259}; 
    246260 
Note: See TracChangeset for help on using the changeset viewer.