api_hangup_hook requires an actual API command and not a dialplan application. Therefore, execute_extension won't work. I would have expected lua to work if you have mod_lua loaded. Perhaps you could try "luarun" as opposed to "lua" and see what happens. Also, please confirm that mod_lua is loaded.

-MC

On Wed, Mar 27, 2013 at 5:22 AM, Eugene Prokopiev <enp@itx.ru> wrote:
> Is it possible with XML only and without external lua script file?

I have the same problems with external lua script file:

2013-03-27 16:18:49.516470 [DEBUG] switch_core_state_machine.c:608
Hangup Command with no Session lua(/tmp/x.lua):
INVALID COMMAND!

--
Regards,
Eugene Prokopiev

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
http://www.cudatel.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.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



--
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org