Esempio n. 1
0
    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
Esempio n. 2
0
    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
Esempio n. 3
0
File: doug.py Progetto: bmxp/shtoom
 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
Esempio n. 4
0
 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