def maybeStartAudio(self, dialog, sdp): """ Start audio on the dialog. This method is designed to be overridden by user-agents that provide facilities like third-party call control. See L{sine.tpcc} for details. """ debug("START AUDIO (maybe)") dialog.startAudio(sdp)
def process_ACK(self, st, msg, addr, dialog): #woooo it is an ack for a 200, it is call setup time timer = dialog.ackTimer[0] if timer.active(): timer.cancel() if not getattr(dialog, 'reinviteMsg', None): #only do this for the initial INVITE if not dialog.acked: dialog.callController.callBegan(dialog) dialog.acked = True else: debug("reinvite ACKed") if msg.body: #must've gotten an invite with no SDP #so this is the answer sdp = SDP(msg.body) self.maybeStartAudio(dialog, sdp)