[Freeswitch-users] How to get bridge call duration with lua

jobin dcruz jobindcruz at gmail.com
Sat Nov 15 05:48:42 MSK 2014


Hi Michael,

I want to customer call duration for billing details.

<action application="bridge" data="sofia/gateway/outside/${
customer_number}"/>

ex: i am calling xxxxxxxxxx customer number , if customer call is hungup i
want to customer call duration


On Fri, Nov 14, 2014 at 11:45 PM, Michael Collins <msc at freeswitch.org>
wrote:

> Can you describe in a little more detail what you are trying to do? For
> example, are you trying to get the bridge duration at some random point
> during the call ("how long has this call been bridged so far?") or after
> the call has ended?
>
> -MC
>
> On Fri, Nov 14, 2014 at 3:23 AM, jobin dcruz <jobindcruz at gmail.com> wrote:
>
>> Hi,
>>
>> I am using freeswitch bridge,every thing working with fine.
>>
>> <action application="set" data="call_timeout=10"/>
>>                         <action application="set"
>> data="hangup_after_bridge=true"/>
>>                         <action application="set"
>> data="ringback=${us-ring}"/>
>>                         <action application="bridge"
>> data="sofia/gateway/outside/${customer_number}"/>
>>
>> My problem is
>>
>> How to get bridge call duration with lua?
>> Cannot update CDR table with bridge call details.How to update it?
>>
>> --
>> Jobin D'cruz (LAMP Developer)
>> Email: jobindcruz at gmail.com | lampdeveloper.jobindcruz at gmail.com
>>
>>
>>
>> Php MySql Linux Apache Ajax FFmpeg FFmpeg-php Mplayer Zend Framework
>> Codeigniter CakePhp Wordpress Drupal Joomla Html5 Css3 jQuery YUI
>> MooTools Smarty Firefox Extension
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.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
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.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
>



-- 
Jobin D'cruz (LAMP Developer)
Email: jobindcruz at gmail.com | lampdeveloper.jobindcruz at gmail.com



Php MySql Linux Apache Ajax FFmpeg FFmpeg-php Mplayer Zend Framework
Codeigniter CakePhp Wordpress Drupal Joomla Html5 Css3 jQuery YUI
MooTools Smarty Firefox Extension
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20141115/b9d050b0/attachment.html 


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