[prev in list] [next in list] [prev in thread] [next in thread]
List: semsdev
Subject: [Semsdev] 1.4 ivr scripts do not work in master
From: Juha Heinanen <jh () tutpro ! com>
Date: 2011-10-20 6:48:27
Message-ID: 20127.50235.453662.192430 () sip ! test ! fi
[Download RAW message or body]
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
Semsdev@lists.iptel.org
http://lists.iptel.org/mailman/listinfo/semsdev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic