You may want to look at moving more of your dialplan logic into lua so that you can gain control after the bridge.
On Jul 6, 2009, at 6:11 PM, rentmycoder rentmycoder wrote: > I woud like to do some processing after hangup like in asterisk on the > "h,1,..." extension. > > If I try to exec a lua script using api_hangup_hook, the the session > will be nil in: > number = session:getVariable("caller_id_number") > > If I try to transfer the call using the transfer commmand, I got > "invalid command" error. > > <action application="set" data="session_in_hangup_hook=true" /> > <action application="set" data="api_hangup_hook=lua hangup.lua"/> > <!--action application="set" data="api_hangup_hook=transfer > hangup_ext" /--> > > Any other idea to do some processing after hangup? > > _______________________________________________ > Freeswitch-dev mailing list > Freeswitch-dev@lists.freeswitch.org > http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev > http://www.freeswitch.org _______________________________________________ Freeswitch-dev mailing list Freeswitch-dev@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-dev UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-dev http://www.freeswitch.org