6 Aug
2009
6 Aug
'09
2:03 a.m.
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