You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/apps/examples/tutorial/ivr_announce/ivr_announce.py

17 lines
377 B

from log import *
from ivr import *
class IvrDialog(IvrDialogBase):
announcement = None
def onSessionStart(self, hdrs):
debug("onSessionStart of ivr announcement app")
self.announcement = IvrAudioFile()
self.announcement.open(config['announcement'], ivr.AUDIO_READ)
self.enqueue(self.announcement, None)
def onEmptyQueue(self):
self.bye()
self.stopSession()