def _createRTP(self, cookie, localIP, withSTUN): from shtoom.rtp.protocol import RTPProtocol from shtoom.exceptions import CallFailed if isinstance(cookie, CallFailed): del self._calls[cookie.cookie] return defer.succeed(cookie) self.ui.callStarted(cookie) if self._rtpProtocolClass is None: rtp = RTPProtocol(self, cookie) else: rtp = self._rtpProtocolClass(self, cookie) self._rtp[cookie] = rtp d = rtp.createRTPSocket(localIP, withSTUN) return d
def _createRTP(self, cookie, localIP, withSTUN): from shtoom.rtp.protocol import RTPProtocol from shtoom.exceptions import CallFailed if isinstance(cookie, CallFailed): del self._calls[cookie.cookie] return defer.succeed(cookie) self.ui.callStarted(cookie) if self._rtpProtocolClass is None: rtp = RTPProtocol(self, cookie) else: rtp = self._rtpProtocolClass(self, cookie) self._rtp[cookie] = rtp d = rtp.createRTPSocket(localIP,withSTUN) return d
def _createRTP(self, cookie, fromIP, withSTUN): from shtoom.rtp.protocol import RTPProtocol rtp = RTPProtocol(self, cookie) self._rtp[cookie] = rtp d = rtp.createRTPSocket(fromIP, withSTUN) return d
def _createRTP(self, cookie, fromIP, withSTUN): from shtoom.rtp.protocol import RTPProtocol rtp = RTPProtocol(self, cookie) self._rtp[cookie] = rtp d = rtp.createRTPSocket(fromIP,withSTUN) return d