[Freeswitch-users] Perl Alarm Event
Steven Ayre
steveayre at gmail.com
Thu Feb 14 17:14:29 MSK 2013
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 at 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 at 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...
>> http://pastebin.freeswitch.org/20577
>>
>> --
>> I'd love to change the world, but they wont gimme the source code to it
>>
>> _________________________________________________________________________
>> 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
>>
>>
>
>
> --
> Muhammad Shahzad
> -----------------------------------
> CISCO Rich Media Communication Specialist (CRMCS)
> CISCO Certified Network Associate (CCNA)
> Cell: +49 176 99 83 10 85
> MSN: shari_786pk at hotmail.com
> Email: shaheryarkh at googlemail.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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130214/e8dbca44/attachment-0001.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list