Re: [Freeswitch-users] get call durantion
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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You can do /event list all on the CLI, and on hangup you will see that the billsec, duration and other variables are set. Regards, Diego On Tue, May 12, 2009 at 1:35 AM, Mathieu Rene <mrene_lists@avgs.ca> wrote:
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@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@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@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@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@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@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Diego Toro
-
Diego Viola
-
Mathieu Rene