Author: sayer
Date: 2009-01-20 15:52:58 +0100 (Tue, 20 Jan 2009)
New Revision: 1230
Added:
trunk/apps/examples/ivr_examples/play.py
Log:
just playing a file example
Added: trunk/apps/examples/ivr_examples/play.py
===================================================================
--- trunk/apps/examples/ivr_examples/play.py 2009-01-20 14:23:53 UTC (rev
1229)
+++ trunk/apps/examples/ivr_examples/play.py 2009-01-20 14:52:58 UTC (rev
1230)
@@ -0,0 +1,26 @@
+#
+# 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
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev