Hi, I had this working sometime back when I was testing a pre-paid application using Perl. Here is what I had in my script. my $max_session_time = 30; $session->execute("set", "execute_on_answer=sched_hangup +" . $max_session_time); Where in the script are you placing the execute command? Sam -----Original Message----- From: freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of Samir Doshi Sent: Tuesday, October 15, 2013 10:00 AM To: freeswitch-users@lists.freeswitch.org Subject: [Freeswitch-users] Call hangup not working in perl session Hi Guys, I am using perl session to handle call flow. I need to hangup call at exact 1 minute. For that i have set below line, but somehow its not working. Call keeps running. $session->execute( "set", "execute_on_answer=sched_hangup +60" ); Can anybody please point out the issue or something I missing. Thanks in advance. ----- Thanks, Samir -- View this message in context: http://freeswitch-users.2379917.n2.nabble.com/Call-hangup-not-working-in-per l-session-tp7595714.html Sent from the freeswitch-users mailing list archive at Nabble.com. _________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.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