[Freeswitch-users] LUA Call duration or Billing Sec

Aloysius Lloyd lloyd.aloysius at gmail.com
Mon Mar 15 06:40:25 PDT 2010


Hi All,

I have the following simple Lua script answer a inbound call then dial
another number and bridge the call.

Is there any way to get the  call duration or billing sec using the

session:getVariable(  );



-- answer the call
session:answer();

-- sleep a second
session:sleep(1000);

-- Initiate an outbound call
obSession = freeswitch.Session("sofia/gateway/voipms/14165555555",session)

obSession:execute("sched_hangup","+60 alloted_timeout");

-- bride the call
    freeswitch.bridge(session, obSession);

-- hangup
session:hangup();


Thank you
Lloyd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100315/fcfbac9a/attachment-0002.html 


More information about the FreeSWITCH-users mailing list