def sending_vvoip(self, event): msg = shared.data.Message(self.controller.name, self.screens["contact"].name, type=shared.data.MessageType.vvoip, subtype=shared.data.VVOIPType.request, unpacked_data={"ip": get_ip(), "port1": 5432, "port2": 5434, "class": "dict"}, prio = 5) self.queue.enqueue(msg.packed_data, msg.prio) self.out_call_popup(msg)
def start_vvoip(self, msg): print "Staring vvoip" sender = msg.sender receiver = msg.receiver type = msg.type subtype = msg.subtype data = msg.unpacked_data message = shared.data.Message(self.controller.name, sender, type=shared.data.MessageType.vvoip, subtype=shared.data.VVOIPType.response, unpacked_data={"ip": get_ip(), "port1": 5432, "port2": 5434, "class": "dict"}, prio = 5) self.queue.enqueue(message.packed_data, message.prio) self.show_cam(ip=data["ip"], port1=data["port1"], port2=data["port2"])