[Freeswitch-users] How to manipulate a call after bridge

Jurijs Ivolga jurij.ivo at gmail.com
Tue Aug 18 13:21:59 MSD 2015


Hi,

I have quite simple task:

I need to call from ext 1000 to ext 1001, after ext 1001 pick-up phone, I
need to be able to listen for DTMF and based on DTMF I need to fire some
commands in LUA.

I tried following code in LUA:

api = freeswitch.API()

did = session:getVariable("destination_number")
domain = session:getVariable("domain_name")

session:execute("bridge", "user/".. did .. "@" .. domain)

freeswitch.consoleLog("INFO","Called Number " .. did .. "\n")

But I can do anything with a call only when destination hang-up. For
example Called number will be displayed only after destination ext will
hang-up.

Is there any possibility to achieve this with LUA script?

With kind regards,

Jurijs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20150818/00a2f01a/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list