[asterisk-dev] Question about starpy-1.0.2 ownership

David M. Lee dlee at digium.com
Thu Dec 6 13:53:42 CST 2012


On Dec 6, 2012, at 1:45 PM, Bob wrote:

> I am using Asterisk 1.8 and python 2.6 on a "PBX in a Flash" 2.0.6.2
> platform. 
> 
> I obtained a starpy package from what I thought to be a digium web
> site. It does not show up on Internet searches. Somehow I stumbled
> onto it.  The file name is asterisk-org-starpy-1.0.1-14-gdb7421d.zip.
> It claims to be starpy-1.0.2.
> 
> I am having a problem with the starpy manager (AMI) module and the
> dbGet method.  When I 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 the "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 anyone supporting this package file?  If so, would you
> be interested in seeing the changes I made?

You can submit a pull request on https://github.com/asterisk-org/starpy. Now that we have the asterisk organization, this may soon move to https://github.com/asterisk/starpy.

> Thanks,
> Bob


-- 
David M. Lee
Digium, Inc. | Software Developer
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at:  www.digium.com  & www.asterisk.org




More information about the asterisk-dev mailing list