示例#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