Esempio n. 1
0
    def _create_rtp_socket(self, cookie, session):

        #Init RTPProtocol
        rtp = RTPProtocol(self, cookie, session.payload,
                          session.jitter_buffer_size, verbose=session.verbose)

        #Creating socket
        rtp.createRTPSocket(session.host, session.rport, session.sport, False)

        #Register the session
        self.currentRecordings[cookie] = (rtp, session)

        #Registering host and port in used(if default port is in used by another
        #application it will choose another
        if rtp.rport > 0:
            session.host = (session.host, rtp.rport)

        else:
            session.host = (session.host, rtp.sport)
Esempio n. 2
0
 def setUp(self):
     self.rtp = RTPProtocol(self, "ahahahahaha", 96)