lib/punchblock/translator/asterisk/component/asterisk/agi_command.rb in punchblock-2.3.1 vs lib/punchblock/translator/asterisk/component/asterisk/agi_command.rb in punchblock-2.4.0
- old
+ new
@@ -21,10 +21,10 @@
def handle_ami_event(event)
if event.name == 'AsyncAGI' && event['SubEvent'] == 'Exec'
send_complete_event success_reason(event)
if @component_node.name == 'ASYNCAGI BREAK' && @call.channel_var('PUNCHBLOCK_END_ON_ASYNCAGI_BREAK')
- @call.handle_hangup_event
+ @call.handle_hangup_event nil, event.best_time
end
end
end
private