[Freeswitch-users] lua problem: functions in streamfile pause, seek not working on dtmf digit

Thomas Hoellriegel admin at blindi.net
Mon Aug 13 01:44:33 MSD 2012


Hi all, i have 2 solutions:
i like to 1000 ms backword in a soundfile, after pressing the dtmf digit 
1.
my 1. script:

function read_msg_menu( )
  session:setInputCallback("onInput");
session:streamFile("/home/sounds/podcast.wav")
end

function onInput(s, type, obj)
  if (type == "dtmf") then
elseif (obj.digit   == "1")  then
return("seek:+1000");

elseif (obj.digit   == "3")  then
return("seek:-1000");

end

not working. streamfile ignores all dtmf inputs.

solution 2:
  session:streamFile("/home/sounds/podcast1.wav", onInput)

not working. Streamfile breaks.

Can you help plese?
thanks


---------------
Du kannst mich jederzeit kostenlos per Festnetz erreichen unter:
http://www.blindi.net/callback
homepage: http://www.blindi.net
blinde-misc mailingliste für blinde. anmeldung unter:
http://www.blindi.net/mailman/listinfo/blinde-misc


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list