makes sense.

Thank you.


On Thu, Feb 14, 2013 at 3:14 PM, Steven Ayre <steveayre@gmail.com> wrote:
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.

Terminating the process is the default action on SIGALRM though, which is why it currently exits freeswitch (FS doesn't install a signal handler of its own, and mod_perl doesn't either).

I've already advised Usama on IRC to file a Jira.

-Steve



On 14 February 2013 14:01, Muhammad Shahzad <shaheryarkh@gmail.com> wrote:in

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



_________________________________________________________________________
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