starpy.examples.readingdigits
index
/home/mcfletch/pylive/starpy/examples/readingdigits.py

Read digits from the user in various ways...

 
Modules
       
twisted.internet.defer
starpy.error
starpy.fastagi
logging
time

 
Classes
       
object
DialPlan

 
class DialPlan(object)
    Stupid little application to report how many times it's been accessed
 
  Methods defined here:
__call__(self, agi)
Store the AGI instance for later usage, kick off our operations
__init__(self)
answerFailure(self, reason)
Deal with a failure to answer
onAnswered(self, resultLine)
We've managed to answer the channel, yay!
onFinished(self, resultLine)
We said the number correctly, hang up on the user
onHangupFailure(self, reason)
Failed trying to hang up
onNumberFailed(self, reason)
We were unable to read the number to the user
onWaited(self, result)
We've finished waiting, tell the user the number
start(self)
Begin the dial-plan-like operations

Data and other attributes defined here:
__dict__ = <dictproxy object>
dictionary for instance variables (if defined)
__weakref__ = <attribute '__weakref__' of 'DialPlan' objects>
list of weak references to the object (if defined)

 
Data
        reactor = <twisted.internet.selectreactor.SelectReactor instance>