Exemplo n.º 1
0
	def __init__(self):
		SIPApplication.__init__(self)
		self.player = None
		self.ended = Event()
		self.logeng = SIPEngineLogObserver()

		notification_center = NotificationCenter()
		notification_center.add_observer(self)
		notification_center.add_observer(self.logeng, name="SIPEngineLog")

		SIPSimpleSettings.sip.udp_port=5060
		SIPSimpleSettings.sip.transport_list=['udp']
Exemplo n.º 2
0
	def __init__(self):
		SIPApplication.__init__(self)
		
		# events used through out lifecycle
		self.ended = Event()
		self.started = Event()
		self.registering = Event()
		
		# normal properties
		self.accounts = {}
		self.active_sessions = []
		
		# configure notifications
		notification_center = NotificationCenter()
		notification_center.add_observer(self)
		
		# lets get this thing rolling
		self.start(MemoryStorage())
		
		# wait for it to finish
		self.started.wait()