Skip to content

Commit

Permalink
Set PUNCHBLOCK_END_ON_ASYNCAGI_BREAK to force channel release on Goto…
Browse files Browse the repository at this point in the history
… execution
  • Loading branch information
Jamey Owens committed Apr 26, 2013
1 parent 9c75cde commit 97eeb89
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/adhearsion/asterisk/call_controller_methods.rb
Expand Up @@ -421,6 +421,7 @@ def goto(context, extension = :nothing, priority = :nothing)
call[:ahn_prevent_hangup] = true
args = ['Goto', context, extension, priority].reject { |v| v == :nothing }
execute *args
set_variable 'PUNCHBLOCK_END_ON_ASYNCAGI_BREAK', 'true'
agi "ASYNCAGI BREAK"
end

Expand Down

0 comments on commit 97eeb89

Please sign in to comment.