[Freeswitch-users] get call durantion

Mathieu Rene mrene_lists at avgs.ca
Mon May 11 22:35:26 PDT 2009


Those variables are only set on hangup. You can have a look at the  
caller profile to get the answered time if you want to process that  
before hangup.

Math

On 11-May-09, at 7:56 PM, Diego Toro wrote:

> Hi,
>
> I need get call duration after bridge application using mod_managed,  
> my code:
>
>  Session.Execute("bridge", sbNewOutBoundNum);
>
>
>    Debug("billsec :" + _Session.GetVariable("billsec"));
>    Debug("duration :" + _Session.GetVariable("duration"));
>
> The bridge is ok, but the variable value duration and billsec is  
> zero (0).
>
> Diego
>
> --- On Sun, 5/10/09, Michael S Collins <msc at freeswitch.org> wrote:
>
>
>
> Do you mean from the CDR? I recommend XML CDRs because they give  
> tons of information. If you are talking about gathering this stuff  
> midcall then you'll need to supply more information about your setup.
>
> -MC
>
> Sent from my iPhone
>
> On May 10, 2009, at 6:17 PM, Diego Toro <dftoro at yahoo.com> wrote:
>
>> Hi,
>> How can I get call durantion after bridge application ?  I tried  
>> with billsec and duration but I don't get any value.
>>
>> Thank you
>>
>> _______________________________________________
>> 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
>
> -----Inline Attachment Follows-----
>
> _______________________________________________
> 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
>
> _______________________________________________
> 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/20090512/ec0c9e64/attachment-0002.html 


More information about the FreeSWITCH-users mailing list