<div>I&#39;m using builds 10724 and 10914&nbsp;to place an&nbsp;outbound call from the FreeSwitch console and use the onInputCallback functionality. My goal is to get mod_vmd working for me.</div>
<div>&nbsp;</div>
<div>When I run my script and press a touchtone to invoke the callback function,&nbsp; I get some unstable behavior; sometimes it works fine, sometimes I get a core dump (send me an email&nbsp;at <a href="mailto:wiltingtree@gmail.com">wiltingtree@gmail.com</a>&nbsp;if anybody wants&nbsp;the core dump),&nbsp; sometimes it gives me the following error:</div>

<div>&nbsp;</div>
<div>&nbsp;&nbsp; TypeError: onInputCallback() takes exactly 3 arguments (0 given)</div>
<div>&nbsp;</div>
<div>In the documentation onInputCallback() takes 3 arguments, and&nbsp;I don&#39;t see how it would be very useful with zero.</div>
<div>&nbsp;</div>
<div>Here is a test script I put together which shows this behavior:</div>
<div>&nbsp;</div>
<div>import os<br>from freeswitch import *</div>
<div>def onInputCallback(session, what, obj):<br>&nbsp; consoleLog(&quot;INFO&quot;,&quot;IM IN THE CALLBACK!\n&quot;)<br>&nbsp; return(&quot;continue&quot;)</div>
<div><br>def fsapi(session, stream, env, args):</div>
<div>&nbsp; consoleLog(&quot;INFO&quot;,&quot;Hello there!!!\n&quot;)<br>&nbsp; session = Session(&quot;{ignore_early_media=true}sofia/gateway/gafachi/1xxxxxxxxxx&quot;)<br>&nbsp; session.sleep(500)<br>&nbsp; session.setInputCallback(onInputCallback)<br>
&nbsp; session.streamFile(&quot;/root/intro.wav&quot;)<br>&nbsp; consoleLog(&quot;info&quot;,&quot;Bye!\n&quot;)<br>&nbsp; session.hangup()<br>&nbsp; return(session)<br><br></div>