Skip to content

Commit

Permalink
Fix initialization of AMI
Browse files Browse the repository at this point in the history
Boolean check was wrong, and Ahn blows up if the 'enabled' key is sent to #enable_ami
  • Loading branch information
bklang committed Oct 21, 2011
1 parent b15346c commit 1e0e2bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/ahn/app/templates/adhearsion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
config.end_call_on_error = values['end_call_on_error'] if values.has_key?('end_call_on_error')

config.enable_asterisk :argument_delimiter => values['argument_delimiter'] || '|'
config.asterisk.enable_ami values['ami']
config.asterisk.enable_ami values['ami'] if values['ami'].delete('enabled')

config.enable_drb if values['drb']

Expand Down

0 comments on commit 1e0e2bf

Please sign in to comment.