Source code for wirecurly.dialplan.applications.tools

from wirecurly.dialplan.applications import ApplicationBase

[docs]class Answer(ApplicationBase): """The answer application""" def __init__(self): super(Answer, self).__init__('answer') @property
[docs] def data(self): ''' Answer does not need data, so return empty string. ''' return ''
[docs]class Sleep(ApplicationBase): """The sleep application""" def __init__(self, time_in_ms): super(Sleep, self).__init__('sleep') self.time_in_ms = time_in_ms @property
[docs] def data(self): ''' Sleep only needs to return the time to sleep in ms. ''' return self.time_in_ms
Read the Docs v: latest
Versions
latest
Downloads
PDF
HTML
Epub
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.