<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Ross,<br><br></div><div class="gmail_default" style="font-size:small">As far as my understanding Proxyserver sends pause command to RTSPServer when all the clients from end side have been closed or terminated. I want little modification in order to implement reregistration of the same stream. <br><br></div><div class="gmail_default" style="font-size:small">So problem is if stream is already registered and i again try to register it , it throws error <b>"451 Invalid parameter" </b>means stream is already registered. <br><br>void ProxyServerMediaSubsession::closeStreamSource(FramedSource* inputSource) {<br>  if (verbosityLevel() > 0) {<br>    envir() << *this << "::closeStreamSource()\n";<br>  }<br>  // Because there's only one input source for this 'subsession' (regardless of how many downstream clients are proxying it),<br>  // we don't close the input source here.  (Instead, we wait until *this* object gets deleted.)<br>  // However, because (as evidenced by this function having been called) we no longer have any clients accessing the stream,<br>  // then we "PAUSE" the downstream proxied stream, until a new client arrives:<br>  if (fHaveSetupStream) {<br>    ProxyServerMediaSession* const sms = (ProxyServerMediaSession*)fParentSession;<br>    ProxyRTSPClient* const proxyRTSPClient = sms->fProxyRTSPClient;<br>    if (proxyRTSPClient->fLastCommandWasPLAY) { // so that we send only one "PAUSE"; not one for each subsession<br>      proxyRTSPClient->sendPauseCommand(fClientMediaSubsession.parentSession(), NULL, proxyRTSPClient->auth());<br>      proxyRTSPClient->fLastCommandWasPLAY = False;<br>    }<br>  }<br>}<br><br></div><div class="gmail_default" style="font-size:small">In this function sending teardown instead of pause seems doesnt sufficient for me, i need to close that complete session without disturbing other proxysession, i tried by calling destructor explicitly but didnt work as expected. Any suggestion how to do that?<br><br></div><div class="gmail_default" style="font-size:small">Thank you , <br clear="all"></div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><font color="#0000ff"><br></font></div><div><b><font color="#0b5394">With Warm Regards,</font></b></div><div><font color="#0b5394">Hardik Sangani</font></div><div><font color="#0b5394">VVDN Technologies Pvt Ltd</font></div><div><font color="#0b5394"><b>Cell : </b>+91 9176120633<b> | Skype : hardikjsangani</b></font></div></div></div></div></div></div></div></div>
</div>