added more debug infos for not implemented mandatory script methods.

git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@16 8eb893ce-cfd4-0310-b710-fb5ebe64c474
sayer/1.4-spce2.6
Raphael Coeffic 21 years ago
parent 4764179d82
commit 425f6bc322

@ -68,30 +68,44 @@ IvrDialogBase_dealloc(IvrDialogBase* self)
//
static PyObject* IvrDialogBase_onSessionStart(IvrDialogBase* self, PyObject*)
{
DBG("no script implementation for onSessionStart(self,hdrs) !!!\n");
PyErr_SetNone(PyExc_NotImplementedError);
return NULL; // no return value
}
static PyObject* IvrDialogBase_onBye(IvrDialogBase* self, PyObject*)
{
DBG("no script implementation for onBye(self) !!!\n");
PyErr_SetNone(PyExc_NotImplementedError);
return NULL; // no return value
}
static PyObject* IvrDialogBase_onEmptyQueue(IvrDialogBase* self, PyObject*)
{
DBG("no script implementation for onEmptyQueue(self) !!!\n");
PyErr_SetNone(PyExc_NotImplementedError);
return NULL; // no return value
}
static PyObject* IvrDialogBase_onDtmf(IvrDialogBase* self, PyObject* args)
{
PyErr_SetNone(PyExc_NotImplementedError);
return NULL; // no return value
int key, duration;
if(!PyArg_ParseTuple(args,"ii",&key,&duration))
return NULL;
DBG("IvrDialogBase_onDtmf(%i,%i)\n",key,duration);
Py_INCREF(Py_None);
return Py_None;
}
static PyObject* IvrDialogBase_onTimer(IvrDialogBase* self, PyObject* args)
{
DBG("IvrDialog::onTimer: no script implementation!!!\n");
PyErr_SetNone(PyExc_NotImplementedError);
return NULL; // no return value
}
@ -352,7 +366,7 @@ IvrDialogBase_getdialog(IvrDialogBase *self, void *closure)
static PyMethodDef IvrDialogBase_methods[] = {
// Event handlers
{"onSessionStart", (PyCFunction)IvrDialogBase_onSessionStart, METH_NOARGS,
{"onSessionStart", (PyCFunction)IvrDialogBase_onSessionStart, METH_VARARGS,
"Gets called on session start"
},
{"onBye", (PyCFunction)IvrDialogBase_onBye, METH_NOARGS,

Loading…
Cancel
Save