def buildPhone(self): ui = TestUI() audio = TestAudio() from shtoom.app.phone import Phone p = Phone(ui, audio) # Disable the NAT Mapping code for these tests p._NATMapping = False return p
def main(): from shtoom.app.phone import Phone import sys global app app = Phone() app._NATMapping = False app._rtpProtocolClass = EchoRTP app.boot(args=sys.argv[1:]) app.sipListener.stopListening() del app.sip, app.sipListener app.sip = TestSip(app) app.start() sys.exit(0)