void H264MediaSubsession::startStream(unsigned clientSessionId, void* streamToken, TaskFunc* rtcpRRHandler, void* rtcpRRHandlerClientData, unsigned short& rtpSeqNum, unsigned& rtpTimestamp, ServerRequestAlternativeByteHandler* serverRequestAlternativeByteHandler, void* serverRequestAlternativeByteHandlerClientData) { Log("-----[%d] %s .... calling\n", gettid(), __func__); DestinationTable::iterator it = fDestinationsHashTable.find(clientSessionId); if (it==fDestinationsHashTable.end()) { Log("Rtsp session %u not found\n", clientSessionId); return; } MyDestinations* destinations = it->second; char* dest_addr = NULL; if(destinations != NULL) { dest_addr = inet_ntoa(destinations->addr); Log("-----Session destionation is %s:%d\n", dest_addr, ntohs(destinations->rtpPort.num())); } VideoCodec::RTPMap rtpMap; rtpMap[rtpPayloadType] = m_Watcher->GetVideoCodec(); //video.StartSending(clientSessionId,dest_addr,ntohs(destinations->rtpPort.num()),rtpMap); RTPSession *rtp = m_Watcher->StartSendingVideo(clientSessionId,dest_addr,ntohs(destinations->rtpPort.num()),rtpMap); rtp->SetRtcpRRHandler(rtcpRRHandler, rtcpRRHandlerClientData); }