|
|
|
|
@ -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,
|
|
|
|
|
|