Skip to content

Commit

Permalink
Treat AGI result "200 result=0" as success, not error
Browse files Browse the repository at this point in the history
  • Loading branch information
bklang committed Aug 2, 2010
1 parent 0752394 commit 53aab23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/adhearsion/voip/asterisk/commands.rb
Expand Up @@ -978,7 +978,7 @@ def validate_digits(digits)
end

def error?(result)
result.to_s[/^#{response_prefix}(?:-\d+|0)/]
result.to_s[/^#{response_prefix}(?:-\d+)/]
end

# timeout with pressed digits: 200 result=<digits> (timeout)
Expand Down
2 changes: 1 addition & 1 deletion spec/voip/test_dialplan_manager.rb
Expand Up @@ -25,7 +25,7 @@
call.context.should.equal context_name
end

test "Given a Call, the manager finds the call's desired entry point/context" do
test "Given a Call, the manager finds the call's desired entry point based on the originating context" do
manager.entry_point_for(call).should.equal mock_context
end

Expand Down

0 comments on commit 53aab23

Please sign in to comment.