# PushPublishRTMP class removing querystring from DstStreamName

**URL:** <https://community.wowza.com/t/pushpublishrtmp-class-removing-querystring-from-dststreamname/47536>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [September 30, 2016, 11:00am UTC](https://community.wowza.com/t/pushpublishrtmp-class-removing-querystring-from-dststreamname/47536 "2016-09-30T11:00:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan\_Hughes](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@Bryan\_Hughes](https://community.wowza.com/u/Bryan_Hughes)\
**Post date:** [September 30, 2016, 11:00am UTC](https://community.wowza.com/t/pushpublishrtmp-class-removing-querystring-from-dststreamname/47536/1 "2016-09-30T11:00:38Z")

</div>

I’m trying to push an RTMP stream from one application called “relay” to another using a custom module and the com.wowza.wms.pushpublish.protocol.rtmp.PushPublishRTMP class

```auto
...
PushPublishRTMP pushPublishRTMP = new PushPublishRTMP();
pushPublishRTMP.setDstApplicationName("live");
pushPublishRTMP.setDstAppInstanceName("_definst_");
pushPublishRTMP.setDstStreamName("mystream?someparam=somevalue");
pushPublishRTMP.setConnectionFlashVersion(CURRENTFLASHVERSION);
pushPublishRTMP.setSendFCPublish(true);
pushPublishRTMP.setSendReleaseStream(true);
pushPublishRTMP.setSendOnMetadata(true);
pushPublishRTMP.setDebugLog(true);
pushPublishRTMP.connect();
..

```

The module correctly pushes the stream to the “live” application, but when I look in the Wowza Manager under connected streams for the source application “relay” I can see the stream name with the querystring parameters, but when I look at the destination “live” application that it only show’s “mystream” as the stream name and the querystring has been truncated.

How do I pass the params to the destination application so that they will be received by the publish(IClient, RequestFunction function, AMFDataList params) module in the destination application “live”.

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [December 19, 2016, 4:47pm UTC](https://community.wowza.com/t/pushpublishrtmp-class-removing-querystring-from-dststreamname/47536/2 "2016-12-19T16:47:17Z")

</div>

Hi,

You should be able to call `client.getQueryStr().toString()` to obtain the parameters from the incoming source and then insert it into the pushPublishRTMP session by calling `setConnectionQueryStr()`.

Michelle
