neumann wrote on 09/15/2014 02:49 PM:
> Now python ivr applications says:
> [callPyEventHandler, Ivr.cpp:648] DEBUG: method onSessionStart is not
> implemented, trying default one?
you either haven't defined the onSessionStart in your python script or
there's an exception thrown, I think then this debug log message is
printed.

> 
> 
> Why its commented apps/ivr/IvrDialogBase.cpp?
> 
> static PyMethodDef IvrDialogBase_methods[] = {
> 
> 
>   // Event handlers
> 
>   {"onRtpTimeout", (PyCFunction)IvrDialogBase_onRtpTimeout, METH_NOARGS,
>    "Gets called on RTP timeout"
>   },
> 
>   //     {"onSessionStart", (PyCFunction)IvrDialogBase_onSessionStart,
> METH_VARARGS,
>   //      "Gets called on session start"
the python script event handlers are called from e.g.
IvrDialog::onSessionStart, cyllPyEventHandler("onSessionStart",...)

The event handler methods here in the python class definition are not
necessary, because they should not be called from python.

Stefan
_______________________________________________
Sems mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/sems

Reply via email to