<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    I finally was able to use these signals to add APP RTCP packets. My
    problems came from programming faults, especially by erroneously
    configuring caps of an udpsrc plugin.<br>
    After having read the comments of Nicolas, I have replaced
    RTPSession by a simple GObject, and all was still fine. I would only
    like to add that without reading, and trying to understand codes in
    gst-plugins-base and gst-plugins-good, I would never been able to
    succeed. Next step for me: implement AVB RTCP packets...<br>
    Anyway, thank you very much for these exchanges and probably future.<br>
    Philippe<br>
    <br>
    <div class="moz-cite-prefix">Le 20/01/2019 à 00:30, Philippe Lalevée
      a écrit :<br>
    </div>
    <blockquote type="cite"
      cite="mid:a4e5677a-4792-b00f-7b2e-0ebaf08150d3@mines-stetienne.fr">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Le 19/01/2019 à 20:13, Sebastian Dröge a écrit :<br>
      <blockquote type="cite"
cite="mid:e7a3a2c27fc7c2fe9d90f5c200713327d4ae57fe.camel@centricular.com">
        <pre class="moz-quote-pre" wrap="">On Sat, 2019-01-19 at 11:38 -0500, Nicolas Dufresne wrote:
</pre>
        <blockquote type="cite">
          <pre class="moz-quote-pre" wrap="">Le samedi 19 janvier 2019 à 17:06 +0100, Philippe Lalevée a écrit :
</pre>
          <blockquote type="cite">
            <pre class="moz-quote-pre" wrap="">Hello I still have problems when using on-sending-rtcp/on-receiving
signals (I would like to send RTCP packets of APP type). 
</pre>
          </blockquote>
          <pre class="moz-quote-pre" wrap="">The RTPSession API isn't public, I'm not sure it is correct to use
this from an application. I believe you should better describe what
you are trying to do.
</pre>
        </blockquote>
        <pre class="moz-quote-pre" wrap="">The rtpsession API is public, i.e. the signals and properties on the
"internal-session" object of the rtpsession GStreamer element. People
are using these in their applications for various things :)

And the signals Philippe are mentioned can be used for including custom
RTCP packets or receiving them. Not sure what the problem is he's
running into though, a testcase (with code) to run and show the problem
would probably help. But it seems he solved it already if I understand
the last message correctly.
</pre>
      </blockquote>
      <div class="moz-signature">Unfortunately, that is not the case...
        What is solved is the transmission of APP packets from the
        listener to the talker, but not from the talker to the listener.
        My code is based on
gst-plugins-good/tests/examples/rtp/{client-PCMA.c,server-alsasrc-PCMA.c},
        see included test-rtcp.tar.xz. After doing make, on a machine B,
        execute './gst_recv IP_A, and on the machine A, execute
        ./gst_send <file>.mp3 IP_B.<br>
        <br>
        Traces on machine A :
        <blockquote type="cite">>on_sending_rtcp:
          (sess:1823933232,early:0,size:60)<br>
          > #packets: 2<br>
          >  packet: <b><font color="#ff0000">type 201, RR ssrc:
              77451595</font></b><br>
          >  packet: type 202<br>
          > packet added: #packets: 3<br>
          > buffer unmap...<br>
          <br>
          <on_receiving_rtcp: (sess:1823933232,size:124)<br>
          < #packets: 3<br>
          <  packet: <font color="#009900"><b>type 201, </b></font><b><font
              color="#009900">RR ssrc: 3024040777</font></b><br>
          <  packet: type 202<br>
          <  <b>packet: type 204</b><br>
          < **** packets to process... soon ****<br>
        </blockquote>
        In bold, we can see that an APP packet is received.<br>
        <br>
        Traces on machine B:<br>
        <blockquote type="cite"><on_receiving_rtcp:
          (sess:475169152,size:80)<br>
          < #packets: 2<br>
          <  packet: <b><font color="#ff0000">type 200, SR </font></b><b><font
              color="#ff0000">ssrc: 4086197064</font></b>, rtp ts:
          4010357965<br>
          <  packet: type 202<br>
          < **** packets to process... soon ****<br>
          <br>
          >on_sending_rtcp: (sess:475169152,early:0,size:80)<br>
          > #packets: 2<br>
          >  packet: <font color="#009900"><b>type 201, </b><b>RR
              ssrc: 3024040777</b></font><br>
          >  packet: type 202<br>
          > packet added: #packets: 3<br>
          > buffer unmap...<br>
        </blockquote>
        Traces in green show that transmission is OK from the listener
        (which sends an RR packet) to the talker (which receives the
        same RR packet). But, as you can see in red, the talker sends an
        RR packet (that is strange) while the listener receives an SR
        packet with different data, and there is no APP packet.<br>
        The questions are then why the talker sends an RR packet here ?
        and why the listener receives an SR reports ?<br>
        Thanks<br>
        Philippe<br>
        <div class="moz-signature">
          <div class="moz-signature">
            <div class="moz-signature">
              <meta http-equiv="content-type" content="text/html;
                charset=UTF-8">
              <meta http-equiv="content-type" content="text/html;
                charset=UTF-8">
              <title></title>
              <meta http-equiv="content-type" content="text/html;
                charset=UTF-8">
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <table style="border-collapse: collapse; border: 1px solid
        rgb(221,&#xA; 221, 221); margin: 0px; padding: 0px;
        border-spacing: 0px;&#xA; font-size: 12px; width: auto; color:
        rgb(51, 51, 51); font-family:&#xA; Verdana, Geneva, Arial,
        Helvetica, sans-serif; font-style: normal;&#xA; font-variant:
        normal; font-weight: normal; letter-spacing: normal;&#xA;
        line-height: 18px; orphans: auto; text-align: start;
        text-indent:&#xA; 0px; text-transform: none; white-space:
        normal; widows: 1;&#xA; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;&#xA; background-color: rgb(255,
        255, 255);" cellpadding="2">
        <tbody style="border: 0px; margin: 0px; padding: 0px;">
          <tr style="border: 0px; margin: 0px; padding: 0px;">
            <td style="border: 0px; margin: 0px; padding: 0.75em 1em;"
              valign="center"><img alt="Logo MINES Saint-Étienne"
                src="cid:part1.139A0F65.234A7C08@mines-stetienne.fr"
                style="border: 0px; margin: 0px; padding: 0px 10px;&#xA;
                height: auto; max-width: 100%;" height="116" width="140"></td>
            <td style="border: 0px; margin: 0px; padding: 0.75em
              1em;&#xA; white-space: normal;" align="left"
              valign="bottom" nowrap="nowrap">
              <div style="border: 0px; margin: 0px; padding: 0px;&#xA;
                font-style: normal; font-variant: normal;
                font-weight:&#xA; normal; font-stretch: normal;
                font-size: 11px;&#xA; line-height: 1.2; font-family:
                sans-serif;">
                <div style="border: 0px; margin: 0px; padding: 0px;
                  color:&#xA; rgb(102, 51, 153); font-weight: bold;"><strong
                    style="border: 0px; margin: 0px; padding: 0px;&#xA;
                    font-weight: bold;">Philippe LALEVÉE</strong></div>
                Directeur du Campus Georges Charpak Provence<br>
                Directeur du <a href="http://cmp.emse.fr">Centre
                  Microélectronique de Provence</a><br>
                Président de la Plate-forme <a
                  href="http://www.pf-micropacks.org">Micro-PackS</a><br>
                <div style="border: 0px; margin: 0px; padding: 5px 0px;">+33
                  4 42 61 67 15 / +33 6 23 02 15 01<br>
                  <a href="mailto:philippe.lalevee@mines-stetienne.fr"
                    style="border: 0px; margin: 0px; padding: 0px;
                    color:&#xA; rgb(95, 37, 159);
                    text-decoration:&#xA;  none;">philippe.lalevee@mines-stetienne.fr</a><br>
                  <a href="https://twitter.com/CampusCharpak"
                    style="border:&#xA; 0px; margin: 0px;
                    padding: 0px; color: rgb(95, 37,
                    159);&#xA; text-decoration: none;">@CampusCharpak</a>
                  <a href="https://twitter.com/hashtag/ISMIN"
                    style="border:&#xA; 0px; margin: 0px;
                    padding: 0px; color: rgb(95, 37,
                    159);&#xA; text-decoration: none;">#ISMIN</a>
                  <a href="https://twitter.com/p_lalevee"
                    style="border:&#xA; 0px; margin: 0px;
                    padding: 0px; color: rgb(95, 37,
                    159);&#xA; text-decoration: none;">@p_lalevee</a></div>
                <div style="border: 0px; margin: 0px; padding: 5px
                  0px;&#xA; color: rgb(153, 153, 153);">Campus Georges
                  Charpak Provence<br>
                  880 route de Mimet, F-13541 Gardanne Cedex</div>
                <div style="border: 0px; margin: 0px; padding: 0px;&#xA;
                  font-weight: bold;"> <a
                    href="http://www.mines-stetienne.fr/"
                    style="border:&#xA; 0px; margin: 0px; padding: 0px;
                    color: rgb(95, 37,&#xA; 159);
                    text-decoration:&#xA;  none;">www.mines-stetienne.fr</a>
                  <a href="https://twitter.com/MINES_StEtienne"
                    style="border:&#xA; 0px; margin: 0px; padding: 0px;
                    color: rgb(95, 37,&#xA; 159); text-decoration:
                    none;">@MINES_StEtienne</a></div>
                <div style="border-width: 1px 0px 0px;
                  border-top-style:&#xA; solid; border-top-color:
                  rgb(221, 221, 221); margin: 0px;&#xA; padding: 5px
                  0px; font-style: normal; font-variant:&#xA; normal;
                  font-weight: normal; font-stretch: normal;&#xA;
                  font-size: 11px; line-height: 1.2; font-family:&#xA;
                  sans-serif;">Assistante CGCP : <a
                    href="mailto:lisette.masson@mines-stetienne.fr">Lisette
                    MASSON</a>         (+33 442616620)<br>
                  Assistante CMP :   <a
                    href="mailto:veronique.villareal@mines-stetienne.fr">Véronique
                    VILLARÉAL</a> (+33 442616610)<br>
                </div>
              </div>
            </td>
            <td style="border: 0px; margin: 0px; padding: 0.75em
              1em;&#xA; white-space: normal;" align="left" width="194"
              valign="center" nowrap="nowrap">
              <div style="border-width: 0px 0px 0px 1px;&#xA;
                border-left-style: solid; border-left-color: rgb(221,
                221,&#xA; 221); margin: 0px; padding: 0px 10px 0px 20px;
                font-style:&#xA; normal; font-variant: normal;
                font-weight: normal;&#xA; font-stretch: normal;
                font-size: 12px; line-height: 1.5;&#xA; font-family:
                sans-serif; color: rgb(153, 153, 153);&#xA; min-width:
                194px;"><img shrinktofit="true" alt="Inspiring
                  Innovation - Since&#xA; 1816"
src="http://www.emse.fr/signature-mail/Inspiring_Innovation_Since_1816.png"
                  style="border: 0px; margin: 0px; padding: 0px;
                  height:&#xA; auto; max-width: 100%;" height="47"
                  width="164"></div>
            </td>
          </tr>
        </tbody>
      </table>
      <div class="moz-signature">
        <div class="moz-signature">
          <div class="moz-signature">
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
            <title></title>
            <meta http-equiv="content-type" content="text/html;
              charset=UTF-8">
          </div>
        </div>
      </div>
    </div>
  </body>
</html>