예제 #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