def start_call(self): from temba.ivr.tasks import start_call_task self.status = IVRCall.QUEUED self.save() on_transaction_commit(lambda: start_call_task.delay(self.pk))
def start_call(self): from temba.ivr.tasks import start_call_task ChannelLog.log_ivr_interaction(self, "Call queued internally", HttpEvent(method="INTERNAL", url=None)) self.status = IVRCall.QUEUED self.save() on_transaction_commit(lambda: start_call_task.delay(self.pk))
def start_call(self): from temba.ivr.tasks import start_call_task on_transaction_commit(lambda: start_call_task.delay(self.pk))