# Message with consumer.rtpParameters in it does not get sent via DirectTransport Data Producer

**URL:** <https://mediasoup.discourse.group/t/message-with-consumer-rtpparameters-in-it-does-not-get-sent-via-directtransport-data-producer/1282>\
**Category:** mediasoup libraries\
**Created:** [June 19, 2020, 8:50am UTC](https://mediasoup.discourse.group/t/message-with-consumer-rtpparameters-in-it-does-not-get-sent-via-directtransport-data-producer/1282 "2020-06-19T08:50:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![renozzz](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@renozzz](https://mediasoup.discourse.group/u/renozzz)\
**Post date:** [June 19, 2020, 8:50am UTC](https://mediasoup.discourse.group/t/message-with-consumer-rtpparameters-in-it-does-not-get-sent-via-directtransport-data-producer/1282/1 "2020-06-19T08:50:47Z")

</div>

Hi there

I’ve been playing around with DirectTransport and I’ve found that messages with consumer.rtpParameters in them do not get sent via DirectTransport DataProducer :). For example when a peer gets connected I’d send that peer’s info (stringifying it with JSON.stringify) to every other peer in the room.

```auto
info() {
    return {
      id: this.id,
      username: this.username,
      consumerOptions: {
        id: this.consumer.id,
        producerId: this.consumer.producerId,
        kind: this.consumer.kind,
        rtpParameters: this.consumer.rtpParameters,
      },
      dataConsumerOptions: {
        id: this.dataConsumer.id,
        dataProducerId: this.dataConsumer.dataProducerId,
        sctpStreamParameters: this.dataConsumer.sctpStreamParameters,
        label: this.dataConsumer.label,
        protocol: this.dataConsumer.protocol,
      },
    };

```

The message gets sent as long as consumer.rtpParameters are not in the message. Might it be an issue with serialization ? Thanks

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [June 19, 2020, 9:01am UTC](https://mediasoup.discourse.group/t/message-with-consumer-rtpparameters-in-it-does-not-get-sent-via-directtransport-data-producer/1282/2 "2020-06-19T09:01:44Z")

</div>

DirectTransport is just for messages, no for media. Explained in the docs.
