[Freeswitch-users] How to distinguish between the different type of call rejections from Javascript?

Michael Collins msc at freeswitch.org
Wed Aug 5 19:03:26 PDT 2009


On Wed, Aug 5, 2009 at 6:44 PM, Raffaele P. Guidi <
raffaele.p.guidi at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090805/a352e498/attachment-0002.html 


More information about the FreeSWITCH-users mailing list