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/ivr_examples/play.py

27 lines
510 B

#
# just playing file
#
from log import *
from ivr import *
class IvrDialog(IvrDialogBase) :
def onSessionStart( self, hdrs ) :
self.audio_pl = IvrAudioFile()
self.audio_pl.open("wav/default_en.wav", AUDIO_READ)
self.enqueue(self.audio_pl,None)
def onBye(self):
self.stopSession()
def onEmptyQueue(self):
self.bye()
self.stopSession()
def onSipReply( self, reply ) :
pass
def onSipRequest( self, reply ) :
pass