Hi guys, There is a little typo in this page: https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference session:execute session:execute(app, data) local mySound = "/usr/local/freeswitch/sounds/music/16000/partita-no-3-in-e-major-bwv-1006-1-preludio.wav" session:execute("playback", mySound) NOTE: Callbacks (DTMF and friends) CAN NOT EXECUTE during an execute. session:executeString session:execute(api_string) *<<<< Shouldn't this be executeString???* local mySound = "/usr/local/freeswitch/sounds/music/16000/partita-no-3-in-e-major-bwv-1006-1-preludio.wav" session:executeString("playback "..mySound) Note: Callbacks (DTMF and friends) CAN NOT EXECUTE during an execute. Can anybody update it please? Can lead to confusion. Thanks! Joel.
Fixed
On Jul 29, 2016, at 2:19 PM, Joel Serrano <joel@gogii.net> wrote:
Hi guys,
There is a little typo in this page:
https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference <https://freeswitch.org/confluence/display/FREESWITCH/Lua+API+Reference>
session:execute session:execute(app, data) local mySound = "/usr/local/freeswitch/sounds/music/16000/partita-no-3-in-e-major-bwv-1006-1-preludio.wav" session:execute("playback", mySound) NOTE: Callbacks (DTMF and friends) CAN NOT EXECUTE during an execute.
session:executeString session:execute(api_string) <<<< Shouldn't this be executeString??? local mySound = "/usr/local/freeswitch/sounds/music/16000/partita-no-3-in-e-major-bwv-1006-1-preludio.wav" session:executeString("playback "..mySound) Note: Callbacks (DTMF and friends) CAN NOT EXECUTE during an execute.
Can anybody update it please? Can lead to confusion.
Thanks!
Joel.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.freeswitch.org http://www.cluecon.com
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
participants (2)
-
Joel Serrano
-
Mario G