Done, it (of course, thanks) worked smoothly. I've published the example on the wiki.
On Wed, Aug 5, 2009 at 6:44 PM, Raffaele P. Guidi <raffaele.p.guidi@gmail.com> wrote:
Well, I would randomly insert all of those cases to make it more realistic... only thing I cannot manage to issue USER_BUSY from lua (and neither from the dialplan, actually).<anti-action application="respond" data="407" /> (407 or 486 or whatever...)doesn't behave as I expected and neither<action application="hangup" data="407" /> (407 or 486 or USER_BUSY or whatever...)and I cannot find a a session:reject(<hangupcause>) method in lua.Can you give me a hint?
You can execute pretty much any dialplan app with the session:execute command:
http://wiki.freeswitch.org/wiki/Lua#session:execute
Try something like:
session:execute("hangup","USER_BUSY");
-MC
_______________________________________________
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