Re: [Twisted-Python] Unhandled Deferred Error

2010-08-30 Thread shwetanka srivastava
Hi Thank you very much. After adding the errBack() code is working fine and there is no error entry in the log. Regards Shwetanka On Mon, Aug 30, 2010 at 3:00 PM, Godson Gera wrote: > Hi > > All the starpy API calls return a deferred object. Adding an errback is > just like adding errback to a

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-30 Thread Godson Gera
Hi All the starpy API calls return a deferred object. Adding an errback is just like adding errback to any other deferred. df = agi.streamFile("somefile") df.addCallback(yourcallback) df.addErrback(yourerrback) It is no different from a deferred so it supports all the methods that a normal twist

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-29 Thread shwetanka srivastava
Hi Actually I'm playing the file but even before it is completed I'm connecting to another number and this is why Fastagi is sending an error. How can I add errBack() to it. Like if playing of file is interrupted it should notify somehow. Thanks Regards Shwetanka On Fri, Aug 27, 2010 at 9:21 PM,

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-27 Thread shwetanka srivastava
Hi Thanks... I do am playing an audio file. This error is shown in log file but everything calling and conferencing is working absolutely fine. I'll post to starpy mailing list also. Thanks again for the reply Regards Shwetanka On Fri, Aug 27, 2010 at 8:50 PM, Godson Gera wrote: > Hi, > > This

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-27 Thread Godson Gera
Hi, This error is obviously raised when the issued command is failed to execute at Asterisk end. However there could be variety of reasons for failure, one common cause is call is hungup on which the command is issued. By looking at the error it occurs that you might be trying to play some audio

Re: [Twisted-Python] Unhandled Deferred Error

2010-08-26 Thread Paul Goins
Hello Shwetanka, Just looking at this traceback, the error looks like it was raised at starpy/fastagi.py:145, and the Deferred in question had its callback called at starpy/fastagi.py:120. Both are starpy code. I'd suggest asking the starpy people. This traceback makes it look like the error