[Freeswitch-users] Call hangup not working in perl session

Sam Montour smontour at verizon.net
Tue Oct 15 20:01:50 MSD 2013


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 at lists.freeswitch.org
[mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Samir
Doshi
Sent: Tuesday, October 15, 2013 10:00 AM
To: freeswitch-users at 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 at freeswitch.org
http://www.freeswitchsolutions.com




Official FreeSWITCH Sites
http://www.freeswitch.org
http://wiki.freeswitch.org
http://www.cluecon.com

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




Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users mailing list