<!DOCTYPE html>
<html data-lt-installed="true">
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body style="padding-bottom: 1px;">
    Dear community,<br>
    <br>
    I am trying to use SET_PARAMETER to send some information from the
    server to the client. On the server side, I subclassed GstRTSPServer
    and GstRTSPClient. My RTSPServer responds to a create_client call
    and returns my RTSPClient. My RTSPClient responds to params_set,
    analyzes the content and sets a response message. Since I don't know
    another way to send a response with my message, I decided to send it
    in the "reason":<br>
    <br>
            gst_rtsp_message_init_response(<br>
                ctx->response<br>
              , (GstRTSPStatusCode)code<br>
              , "arbitrary text"<br>
              , ctx->request<br>
            );<br>
    <br>
    The log output indicates that the response message was correctly
    created:<br>
    <br>
    RTSP request message 0x793e58<br>
     request line:<br>
       method: 'SET_PARAMETER'<br>
       uri:    '<a class="moz-txt-link-freetext" href="rtsp://127.0.0.1:18554/distance/">rtsp://127.0.0.1:18554/distance/</a>'<br>
       version: '1.0'<br>
     headers:<br>
       key: 'CSeq', value: '5'<br>
       key: 'Content-Type', value: 'text/parameters'<br>
       key: 'Session', value: 'stXFg.MwlZw2_EQ.'<br>
       key: 'Date', value: 'Fri, 08 Sep 2023 20:26:14 GMT'<br>
       key: 'Content-Length', value: '28'<br>
    RTSP response message 0x7fffe77fd890<br>
     status line:<br>
       code:   '200'<br>
       reason: 'arbitrary text'<br>
       version: '1.0'<br>
     headers:<br>
       key: 'CSeq', value: '5'<br>
       key: 'Server', value: 'GStreamer RTSP server'<br>
       key: 'Session', value: 'stXFg.MwlZw2_EQ.'<br>
    <br>
    On the client side, I use g_signal_emit_by_name on RTSPSrc to emit
    "set-parameter". It returns a promise with the following structure:<br>
    <br>
        set-parameter-reply, rtsp-result=(int)0, rtsp-code=(int)200,
    rtsp-reason=(string)OK;<br>
    <br>
    You can see that my message has disappeared. How do I send a message
    in the response?<br>
    <br>
    Best.<br>
    Andrey.<br>
  </body>
  <lt-container></lt-container>
</html>