I am using Asterisk 1.8 and python 2.6 on a “PBX in a Flash” 2.0.6.2 platform.
I have tried starpy packages 1.0.0a11, 1.0.0a13, 1.0.1 and 1.0.2.
I tried all of the above starpy packages with the same result. When you query the AstDB using “dbGet” and the item is not in the AstDB, starpy posts a “AMICommandFailure” exception due to Asterisk AMI returning “Response: Error” with “Message: Database entry not found”.
I have searched the Internet and the digium web sites and I could not find others having this issue.
I looked at the manager.py file and it appears to me that the “dbGet” method seems to be incomplete as to how it handles the “Response: Error”.
I made changes to the manager.py file to handle this “Response: Error” and it seems to work well. The summery of the change is to develop a way to call a deferred function and return None when this happens.
Is there a way I can upload this file to get comments about the changes I made?