<div dir="ltr">To answer my own question in case someone else comes across this issue.<div><br></div><div>I found some ancient post from the list... Below a working piece of code using session.streamFile() instead</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)"> session.answer</span><br> session.setHangupHook(hangup_hook)
<br> session.setInputCallback(input_callback)
<br> <span style="color:rgb(84,255,255)"># session.execute("playback", session.getVariable("hold_music"))</span><span style="color:rgb(0,0,0)">
</span><br> session.streamFile(session.getVariable(<span style="color:rgb(255,84,255)">"hold_music"</span><span style="color:rgb(0,0,0)">))
</span><br> <span style="color:rgb(255,255,84)">if</span><span style="color:rgb(0,0,0)"> session.ready():
</span><br> session.hangup()<br>
<br><br></span>Cheers,<span style="font-family:monospace"><br></span><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(102,102,102);font-size:12pt;font-family:arial,helvetica,sans-serif">Christoph Blau</span><br></div><div style="font-size:12.8px"><p><span style="font-size:small">On 24 November 2016 at 16:26, Christoph Blau </span><span dir="ltr" style="font-size:small"><<a href="mailto:c.blau@foodpanda.com" target="_blank">c.blau@foodpanda.com</a>></span><span style="font-size:small"> wrote:</span><br></p></div></div></div></div></div></div></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi There</div><div><br></div><div>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</div><div><br></div><div>I hope it is okay that I dumped dialplan, script and CLI output into on gist</div><div><br></div><div><a href="https://gist.github.com/cblaupanda/587a07b746f0e6427ceaf013576f29af" target="_blank">https://gist.github.com/<wbr>cblaupanda/<wbr>587a07b746f0e6427ceaf013576f29<wbr>af</a><br></div><div><br></div><div>Am I missing something? Could someone please point me in a direction that I get this working? </div><div><br></div><div>Many Thanks,</div><br clear="all"><div><div class="gmail-m_2829066985186189911gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:12.8px"><span style="color:rgb(102,102,102);font-size:12pt;font-family:arial,helvetica,sans-serif">Christoph Blau</span><br></div><div style="font-size:12.8px"><p><br></p></div></div></div></div></div></div></div></div>
</div>
</blockquote></div><br></div></div></div>