PLayback in Lua

Status
Not open for further replies.

Len

Member
Mar 8, 2017
95
3
8
52
I am running a basic Lua script playback file after bridge as follows;
session:execute("playback", "/var/lib/freeswitch/recordings/custom/sounds/flat.mp3")
but when I use a variable that is set in the dialplan (file_to_play) it cannot find it
session:execute("playback", "..file_to_play..")

Interestingly freeswitch.consoleLog("WARNING","Play Sound "..file_to_play.."") does display the path correctly!
 
Status
Not open for further replies.