Actually it should be possible. At least on Linux all threads have their own PID, which means running the perl script thread will receive the alarm signal and it'll be isolated from other FreeSWITCH threads. perlrun just needs to install its own signal handlers when started to capture that (and possibly other) signals and pass them to the interpreter to be handled internally, then restore the original signal handlers when the script finishes. SIGALRM is often used for timeouts, so this could break a number of Perl modules and prevent them being used from mod_perl.
perlrun is inline, so it won't work.Thank you.On Thu, Feb 14, 2013 at 11:56 AM, Usama Zaidi <itsusama@gmail.com> wrote:
_________________________________________________________________________Update:: If I execute using application 'System' instead of application 'Perl' in the dialplan it works finie...
P.S.Here's the script again for reference...--
I'd love to change the world, but they wont gimme the source code to it
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
--
Muhammad Shahzad
-----------------------------------
CISCO Rich Media Communication Specialist (CRMCS)
CISCO Certified Network Associate (CCNA)
Cell: +49 176 99 83 10 85
MSN: shari_786pk@hotmail.com
Email: shaheryarkh@googlemail.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