Skip to content

Commit

Permalink
Fixing a bug introduced in newer versions of Asterisk that broke inte…
Browse files Browse the repository at this point in the history
…rruptible_play(). The method is now implemented with "STREAM FILE" instead of "EXEC BACKGROUND".

See the Adhearsion mailing list thread here: http://groups.google.com/group/adhearsion/browse_thread/thread/7e6c2687189dcb45

And the Asterisk mailing list thread here: https://issues.asterisk.org/view.php?id=15750
  • Loading branch information
Jay Phillips committed Nov 12, 2009
1 parent 58f003f commit c694bc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/adhearsion/voip/asterisk/commands.rb
Expand Up @@ -751,7 +751,7 @@ def duration_of
#
def interruptible_play(*files)
files.flatten.each do |file|
result = result_digit_from raw_response("EXEC BACKGROUND #{file}")
result = result_digit_from raw_response("STREAM FILE #{file} 1234567890*#")
return result if result != 0.chr
end
nil
Expand Down

0 comments on commit c694bc9

Please sign in to comment.