Hello everyone, I need to set a maximum call duration. What is the current recommended way to implement this in FreeSWITCH? I'm looking for something similar to AbsoluteTimeout() in Asterisk. Thanks! -- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
<action application="sched_hangup" data="+600"/> On Tue, Jul 28, 2009 at 7:28 PM, Kristian Kielhofner < kristian.kielhofner@gmail.com> wrote:
Hello everyone,
I need to set a maximum call duration. What is the current recommended way to implement this in FreeSWITCH? I'm looking for something similar to AbsoluteTimeout() in Asterisk.
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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
also take a look at execute_on_answer if you want it to be scheduled from answer instead of from that point in the dialplan. Mike On Jul 28, 2009, at 1:48 PM, Saeed Ahmad wrote:
<action application="sched_hangup" data="+600"/>
On Tue, Jul 28, 2009 at 7:28 PM, Kristian Kielhofner <kristian.kielhofner@gmail.com
wrote: Hello everyone,
I need to set a maximum call duration. What is the current recommended way to implement this in FreeSWITCH? I'm looking for something similar to AbsoluteTimeout() in Asterisk.
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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
All awesome replies. Thanks again! On Tue, Jul 28, 2009 at 1:59 PM, Michael Jerris<mike@jerris.com> wrote:
also take a look at execute_on_answer if you want it to be scheduled from answer instead of from that point in the dialplan. Mike On Jul 28, 2009, at 1:48 PM, Saeed Ahmad wrote:
<action application="sched_hangup" data="+600"/>
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
What needs to happen at the end of the timeout? In any case you can use the sched_XXX APIs: sched_api sched_transfer sched_hangup You can get fancy or just hangup up on the call after X number of seconds... :) -MC On Tue, Jul 28, 2009 at 10:28 AM, Kristian Kielhofner < kristian.kielhofner@gmail.com> wrote:
Hello everyone,
I need to set a maximum call duration. What is the current recommended way to implement this in FreeSWITCH? I'm looking for something similar to AbsoluteTimeout() in Asterisk.
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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 also schedule a playback then a hangup, what comes after the ! is the hangup cause. sched_broadcast,Schedule a broadcast in the future,[+]<time> <path> [aleg|bleg|both],mod_dptools <action application="sched_broadcast" data="+600 playback! normal_clearing::/path/to/file" /> Mathieu Rene Avant-Garde Solutions Inc Office: + 1 (514) 664-1044 x100 Cell: +1 (514) 664-1044 x200 mrene@avgs.ca Am 28-Jul-09 um 1:50 PM schrieb Michael Collins:
What needs to happen at the end of the timeout? In any case you can use the sched_XXX APIs: sched_api sched_transfer sched_hangup
You can get fancy or just hangup up on the call after X number of seconds... :)
-MC
On Tue, Jul 28, 2009 at 10:28 AM, Kristian Kielhofner <kristian.kielhofner@gmail.com
wrote: Hello everyone,
I need to set a maximum call duration. What is the current recommended way to implement this in FreeSWITCH? I'm looking for something similar to AbsoluteTimeout() in Asterisk.
Thanks!
-- Kristian Kielhofner http://www.astlinux.org http://blog.krisk.org http://www.star2star.com http://www.submityoursip.com http://www.voalte.com
_______________________________________________ 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 (5)
-
Kristian Kielhofner
-
Mathieu Rene
-
Michael Collins
-
Michael Jerris
-
Saeed Ahmad