[Freeswitch-users] perl startup scripts

Michael Jerris mike at jerris.com
Wed Sep 3 18:28:37 MSD 2014


He means inside your script, to trap any perl errors.

On Sep 3, 2014, at 8:15 AM, Preeti Trivedi <sweetpt31 at gmail.com> wrote:

> Hi Brian,
> 
> Sorry. I couldn't find anywhere about how to use eval for startup-script configuration.
> I tried like below in autoload_configs/perl.conf.xml, and it didn't help.
> 
> <param name="eval" value="startup-script=/usr/local/freeswitch/scripts/sql_cdr.pl"/>
> 
> 
> 
> 
> 
> 
> On Wed, Sep 3, 2014 at 4:14 PM, Preeti Trivedi <sweetpt31 at gmail.com> wrote:
> 
> Hi Brian,
> 
> Sorry. I couldn't find anywhere about how to use eval for startup-script configuration.
> I tried like below in autoload_configs/perl.conf.xml, and it didn't help.
> 
> 
> On Tue, Sep 2, 2014 at 10:51 PM, Brian West <brian at freeswitch.org> wrote:
> You'll need to wrap it all inside eval's to prevent instability. 
> 
> 
> On Tue, Sep 2, 2014 at 12:01 PM, Preeti Trivedi <sweetpt31 at gmail.com> wrote:
> Hi Brian,
> 
> DBI is used in all three perl scripts and each script will have distinct connections.
> 
> 
> 
> On Tue, Sep 2, 2014 at 9:04 PM, <freeswitch-users-request at lists.freeswitch.org> wrote:
> Send FreeSWITCH-users mailing list submissions to
>         freeswitch-users at lists.freeswitch.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> or, via email, send a message with subject or body 'help' to
>         freeswitch-users-request at lists.freeswitch.org
> 
> You can reach the person managing the list at
>         freeswitch-users-owner at lists.freeswitch.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of FreeSWITCH-users digest..."
> 
> Today's Topics:
> 
>    1. perl startup scripts (Preeti Trivedi)
>    2. Re: perl startup scripts (Brian West)
>    3. Re: Inband DTMF Woes (Brian West)
>    4. Re: Allowing calls with Mod nibblebill and zero balances (DP .)
>    5. Re: Freeswitch-1.4.7 source rpm (Ken Rice)
> 
> 
> 
> ---------- Forwarded message ----------
> From: Preeti Trivedi <sweetpt31 at gmail.com>
> To: freeswitch-users at lists.freeswitch.org
> Cc: 
> Date: Tue, 2 Sep 2014 19:53:51 +0530
> Subject: [Freeswitch-users] perl startup scripts
> Hi,
> 
> I am facing a problem with FS getting dumped while starting up. 
> 
> It worked fine when I had 2 startup-scripts in perl initially. I didn't face any problem in FS starting up.
> I added the 3rd script today and now FS is getting dumped while starting up few times. Few times, it is starting up without any problem.. The behaviour is random.
> Is there any parameter which I've to tune? any idea?
> 
> FS version:
> FreeSWITCH Version 1.5.14b+git~20140804T185031Z~1960533260~64bit (git 1960533 2014-08-04 18:50:31Z 64bit)
> 
> Output of 'scripts/backtrace-from-core' script:
> http://pastebin.freeswitch.org/23197
> 
> Regards,
> Preeti
> 
> 
> ---------- Forwarded message ----------
> From: Brian West <brian at freeswitch.org>
> To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
> Cc: 
> Date: Tue, 2 Sep 2014 09:43:27 -0500
> Subject: Re: [Freeswitch-users] perl startup scripts
> Are you using DBI in any of these scripts?
> 
> 
> On Tue, Sep 2, 2014 at 9:23 AM, Preeti Trivedi <sweetpt31 at gmail.com> wrote:
> Hi,
> 
> I am facing a problem with FS getting dumped while starting up. 
> 
> It worked fine when I had 2 startup-scripts in perl initially. I didn't face any problem in FS starting up.
> I added the 3rd script today and now FS is getting dumped while starting up few times. Few times, it is starting up without any problem.. The behaviour is random.
> Is there any parameter which I've to tune? any idea?
> 
> FS version:
> FreeSWITCH Version 1.5.14b+git~20140804T185031Z~1960533260~64bit (git 1960533 2014-08-04 18:50:31Z 64bit)
> 
> Output of 'scripts/backtrace-from-core' script:
> http://pastebin.freeswitch.org/23197
> 
> Regards,
> Preeti

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140903/37cb96a4/attachment-0001.html 


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