-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Asterisk protocol error 511 and a sleep when auto-a…
…nswer to allow audio settle with the likes of Skype.
- Loading branch information
Showing
1 changed file
with
56 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I can't help but wonder if there's a way to do this more cleanly, ie. not repeating these 3 lines in each method. My first thought is to have check_state raise an exception if the state isn't valid and let the code that sends the response ("511...") catch the exception and send the appropriate error.
Let me know if this isn't clear and I'll see about a patch.