To answer my own question in case someone else comes across this issue. I found some ancient post from the list... Below a working piece of code using session.streamFile() instead session.answer session.setHangupHook(hangup_hook) session.setInputCallback(input_callback) # session.execute("playback", session.getVariable("hold_music")) session.streamFile(session.getVariable("hold_music")) if session.ready(): session.hangup() Cheers, Christoph Blau On 24 November 2016 at 16:26, Christoph Blau <c.blau@foodpanda.com> wrote:
Hi There
I want to catch some DTMF and if possibly events from mod_callcenter using a Python script. For now DTMF would be a good start to get me going. Following the examples on the old and new Wiki brought no luck since it is just not executing my callback function
I hope it is okay that I dumped dialplan, script and CLI output into on gist
https://gist.github.com/cblaupanda/587a07b746f0e6427ceaf013576f29af
Am I missing something? Could someone please point me in a direction that I get this working?
Many Thanks,
Christoph Blau