The problem is with
                confirmkey = session:playAndGetDigits(0, 1, 1, 1000,
"#", confPrompt, "", "\\d|\\*")
 
It complains of "Invalid Args" (and doesn't say anything). All it has to
do is read out the number that it's intending to call, allowing the user
to change their mind by hitting *.


You can't have an argument of "0" for the minimum number of digits. See this page for details on play_and_get_digits args:
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_play_and_get_digits

-MC