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
mr...@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.kielhof...@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

_______________________________________________
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

Reply via email to