[Freeswitch-users] How to distinguish between the different type of call rejections from Javascript?
Raffaele P. Guidi
raffaele.p.guidi at gmail.com
Thu Aug 6 05:49:19 PDT 2009
Done, it (of course, thanks) worked smoothly. I've published the example on
the wiki.
http://wiki.freeswitch.org/wiki/Fakecall_responder (and linked in mod_lua
samples)
Regards,
Raffaele
On Thu, Aug 6, 2009 at 04:03, Michael Collins <msc at freeswitch.org> wrote:
>
>
> 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
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20090806/9918e0c4/attachment-0002.html
More information about the FreeSWITCH-users
mailing list