i simplified the test app even further (see below).  it works fine if i
comment out onInvite method.  if the method is included, onSessionStart
method is never executed.

-- juha

------------------------------------------------------------------------
import os

from log import *
from ivr import *

APPLICATION = "announcement"

class IvrDialog(IvrDialogBase):

    def onInvite(self, hdrs):
        info("At announcement onInvite")
        return
            
    def onSessionStart(self):
        info("At announcement onSessionStart")
        self.announcement = IvrAudioFile()
        self.announcement.open("/tmp/default_en.wav", ivr.AUDIO_READ, False) 
        self.enqueue(self.announcement, None)
        
    def onEmptyQueue(self):
        if not self.queueIsEmpty():
            return
        self.bye()
        self.stopSession()
        return
    
    def onBye(self):
        self.stopSession()
        return

    def onSipRequest(self, hdrs):
        pass

    def onSipReply(self, reply):
        pass
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to