コード例 #1
0
ファイル: phone.py プロジェクト: xregist/shtoom
    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
コード例 #2
0
ファイル: phone.py プロジェクト: braams/shtoom
    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
コード例 #3
0
ファイル: doug.py プロジェクト: 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
コード例 #4
0
ファイル: doug.py プロジェクト: braams/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