[Freeswitch-users] LUA script has problem with bridge action?

Avi Marcus avi at avimarcus.net
Mon Jun 10 09:26:41 MSD 2013


Do you have <action application="set" data="hangup_after_bridge=true"/> ?
(wiki) <https://wiki.freeswitch.org/wiki/Variable_hangup_after_bridge>
That's a usual way to run your dialplan and will hangup the channel before
the lua script gets called.

So you can either not use the hangup_after_bridge, or, use an
api_hangup_hook <http://wiki.freeswitch.org/wiki/Variable_api_hangup_hook>.

-Avi

On Mon, Jun 10, 2013 at 7:19 AM, Vincent Xia <gmangudai at gmail.com> wrote:

> i set the dialplan to call test.lua by adding
> <action application="lua" data="test.lua"/>
>
> it works fine when placing it before a "bridge" action, like
> <action application="lua" data="test.lua"/>
> <action application="bridge" data="user/${dialed_extension}"/>
>
> but if i put "lua" after "bridge"
> <action application="bridge" data="user/${dialed_extension}"/>
> <action application="lua" data="test.lua"/>
>
> then test.lua is not executed, no matter the dialed_extension answered the
> call or not,
>
> my question is:
> 1. why is this happening?
> 2. how can i get test.lua get executed after "bridge"?
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> 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/20130610/f2e9cc01/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list