Skip to content
Snippets Groups Projects
  • Jeremy Lainé's avatar
    0b8867f7
    res_http_websocket: respond to CLOSE opcode · 0b8867f7
    Jeremy Lainé authored
    This ensures that Asterisk responds properly to frames received from a
    client with opcode 8 (CLOSE) by echoing back the status code in its own
    CLOSE frame.
    
    Handling of the CLOSE opcode is moved up with the rest of the opcodes so
    that unmasking gets applied. The payload is no longer returned to the
    caller, but neither ARI nor the chan_sip nor pjsip made use of the
    payload, which is a good thing since it was masked.
    
    ASTERISK-28231 #close
    
    Change-Id: Icb1b60205fc77ee970ddc91d1f545671781344cf
    0b8867f7
    History
    res_http_websocket: respond to CLOSE opcode
    Jeremy Lainé authored
    This ensures that Asterisk responds properly to frames received from a
    client with opcode 8 (CLOSE) by echoing back the status code in its own
    CLOSE frame.
    
    Handling of the CLOSE opcode is moved up with the rest of the opcodes so
    that unmasking gets applied. The payload is no longer returned to the
    caller, but neither ARI nor the chan_sip nor pjsip made use of the
    payload, which is a good thing since it was masked.
    
    ASTERISK-28231 #close
    
    Change-Id: Icb1b60205fc77ee970ddc91d1f545671781344cf