Trouble getting session.setInputCallback working.
Hi all, I'm trying to get a setInputCallback function working with mod_python. I'm using a current svn checkout for my build and the hello world via call example from the wiki ( http://wiki.freeswitch.org/wiki/Mod_python#Hello_World_via_call ). I've tried repeatedly, but I can't get the callback function to execute. I keep pressing various digits on my phone, but none of them are being logged to the console. My understanding is that this callback is supposed to fire when a dtmf (123456789*#, right??) and also acts as an event handler for things like mod_vmd. Is this part of the wiki example working for anyone else? Any idea what I might be doing wrong? Thanks! Erik
Sorry for the late followup. Did you ever get this working? (I'm not a Python guy so it's a bit out of my area of interest/expertise). -MC On Wed, Jan 7, 2009 at 4:09 PM, Erik Wickstrom <erik@erikwickstrom.com> wrote:
Hi all,
I'm trying to get a setInputCallback function working with mod_python. I'm using a current svn checkout for my build and the hello world via call example from the wiki ( http://wiki.freeswitch.org/wiki/Mod_python#Hello_World_via_call ).
I've tried repeatedly, but I can't get the callback function to execute. I keep pressing various digits on my phone, but none of them are being logged to the console. My understanding is that this callback is supposed to fire when a dtmf (123456789*#, right??) and also acts as an event handler for things like mod_vmd.
Is this part of the wiki example working for anyone else? Any idea what I might be doing wrong?
Thanks! Erik
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Yes, I think so. It seems that it just doesn't work while doing an api call such as session.execute("playback", "/path/to/file.wav") Is this the correct behaviour? Are calls made with execute "blocking"? Thanks! Erik On Thu, Jan 8, 2009 at 4:01 PM, Michael Collins <msc@freeswitch.org> wrote:
Sorry for the late followup. Did you ever get this working? (I'm not a Python guy so it's a bit out of my area of interest/expertise). -MC
On Wed, Jan 7, 2009 at 4:09 PM, Erik Wickstrom <erik@erikwickstrom.com> wrote:
Hi all,
I'm trying to get a setInputCallback function working with mod_python. I'm using a current svn checkout for my build and the hello world via call example from the wiki ( http://wiki.freeswitch.org/wiki/Mod_python#Hello_World_via_call ).
I've tried repeatedly, but I can't get the callback function to execute. I keep pressing various digits on my phone, but none of them are being logged to the console. My understanding is that this callback is supposed to fire when a dtmf (123456789*#, right??) and also acts as an event handler for things like mod_vmd.
Is this part of the wiki example working for anyone else? Any idea what I might be doing wrong?
Thanks! Erik
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
That is correct, if you want to use the input callback you need to use the session methods (streamFile ?) to play the file. Mike On Jan 8, 2009, at 9:33 PM, Erik Wickstrom wrote:
It seems that it just doesn't work while doing an api call such as session.execute("playback", "/path/to/file.wav")
Is this the correct behaviour? Are calls made with execute "blocking"?
participants (3)
-
Erik Wickstrom
-
Michael Collins
-
Michael Jerris