Skip to content
Snippets Groups Projects
  • Jørgen H's avatar
    7922f26c
    res_pjsip WebRTC/websockets: Fix usage of WS vs WSS. · 7922f26c
    Jørgen H authored
    According to the RFC[1] WSS should only be used in the Via header
    for secure Websockets.
    
    * Use WSS in Via for secure transport.
    
    * Only register one transport with the WS name because it would be
    ambiguous.  Outgoing requests may try to find the transport by name and
    pjproject only finds the first one registered.  This may mess up unsecure
    websockets but the impact should be minimal.  Firefox and Chrome do not
    support anything other than secure websockets anymore.
    
    * Added and updated some debug messages concerning websockets.
    
    * security_events.c: Relax case restriction when determining security
    transport type.
    
    * The res_pjsip_nat module has been updated to not touch the transport
    on Websocket originating messages.
    
    [1] https://tools.ietf.org/html/rfc7118
    
    ASTERISK-26796 #close
    
    Change-Id: Ie3a0fb1a41101a4c1e49d875a8aa87b189e7ab12
    7922f26c
    History
    res_pjsip WebRTC/websockets: Fix usage of WS vs WSS.
    Jørgen H authored
    According to the RFC[1] WSS should only be used in the Via header
    for secure Websockets.
    
    * Use WSS in Via for secure transport.
    
    * Only register one transport with the WS name because it would be
    ambiguous.  Outgoing requests may try to find the transport by name and
    pjproject only finds the first one registered.  This may mess up unsecure
    websockets but the impact should be minimal.  Firefox and Chrome do not
    support anything other than secure websockets anymore.
    
    * Added and updated some debug messages concerning websockets.
    
    * security_events.c: Relax case restriction when determining security
    transport type.
    
    * The res_pjsip_nat module has been updated to not touch the transport
    on Websocket originating messages.
    
    [1] https://tools.ietf.org/html/rfc7118
    
    ASTERISK-26796 #close
    
    Change-Id: Ie3a0fb1a41101a4c1e49d875a8aa87b189e7ab12
To find the state of this project's repository at the time of any of these versions, check out the tags.
CHANGES 284.19 KiB