void Opal::Sip::EndPoint::on_transfer (std::string uri) { /* FIXME : we don't handle several calls here */ for (PSafePtr<OpalConnection> connection(connectionsActive, PSafeReference); connection != NULL; ++connection) if (!PIsDescendant(&(*connection), OpalPCSSConnection)) connection->TransferConnection (uri); }
bool XMMediaStream::ExecuteCommand(const OpalMediaCommand & command) { if (PIsDescendant(&command, OpalVideoUpdatePicture)) { _XMUpdatePicture(); // return true; } return OpalMediaStream::ExecuteCommand(command); }
void XMH323Connection::OnPatchMediaStream(bool isSource, OpalMediaPatch & patch) { H323Connection::OnPatchMediaStream(isSource, patch); // Add the in-band DTMF handler if this is an audio sending stream if (!isSource && patch.GetSource().GetMediaFormat().GetMediaType() == OpalMediaType::Audio()) { if (inBandDTMFHandler == NULL) { inBandDTMFHandler = new XMInBandDTMFHandler(); } patch.AddFilter(inBandDTMFHandler->GetTransmitHandler(), OpalPCM16); } // add the video frame decoding failed notifier if (isSource && patch.GetSource().GetMediaFormat().GetMediaType() == OpalMediaType::Video()) { if (PIsDescendant(&patch, XMReceiverMediaPatch)) { ((XMReceiverMediaPatch &)patch).SetDecodingFailureNotifier(PCREATE_NOTIFIER(OnDecodingVideoFailed)); } } }