<br>Yes, I already declared 'use lib "/home/asterisk/lib/lib64/perl5/5.8.8/x86_64-linux-thread-multi/";' in my AGI. When I execute the script as a user Asterisk, i.e. perl -wc <a href="http://test.pl">test.pl</a> in return I'm getting OK and no error messages and script is running fine when I try to run in shell.<br>
<br>Even though I already declared the environmental variables in .bash_profile. At the end I tired every method but still stuck in this problem.<br><br><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Date: Thu, 5 Jan 2012 14:07:59 -0800<br>
From: "Ron Bergin" <<a href="mailto:rkb@i.frys.com">rkb@i.frys.com</a>><br>
Subject: Re: [asterisk-users] asterisk -> AGI (perl) -> sqlplus<br>
(oracle)<br>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"<br>
<<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
Message-ID:<br>
<<a href="mailto:69ecf8ff3230bc206837478422f97aad.squirrel@webmail.i.frys.com">69ecf8ff3230bc206837478422f97aad.squirrel@webmail.i.frys.com</a>><br>
Content-Type: text/plain;charset=iso-8859-1<br>
<br>
Ahmed Munir wrote:<br>
> Hi,<br>
><br>
> I installed the modules in asterisk user home directory with read and<br>
> excitable permissions for asterisk but still my AGI not working.<br>
<br>
IMO, it would have been better to install it in it's normal location.<br>
<br>
Is your script using the warnings and strict pragmas?<br>
<br>
What error message do you receive when running the script from the command<br>
line?<br>
<br>
Did you add the proper "use lib '....'" statement to add the install<br>
directory to the @INC array?<br>
<br>
Ron Bergin<br>
<br>
><br>
> Please provide me other advise to resolve this issue.<br>
><br>
><br>
>> Date: Wed, 4 Jan 2012 11:30:34 -0600<br>
>> From: "Danny Nicholas" <<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>><br>
>> Subject: Re: [asterisk-users] asterisk -> AGI (perl) -> sqlplus<br>
>> (oracle)<br>
>> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"<br>
>> <<a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a>><br>
>> Message-ID: <00ca01cccb06$911e8300$b35b8900$@<a href="http://debsinc.com" target="_blank">debsinc.com</a>><br>
>> Content-Type: text/plain; charset="us-ascii"<br>
>><br>
>> The module probably isn't readable/executeable from Asterisk<br>
>><br>
>><br>
>><br>
>> From: <a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a><br>
>> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com">asterisk-users-bounces@lists.digium.com</a>] On Behalf Of Ahmed<br>
>> Munir<br>
>> Sent: Wednesday, January 04, 2012 10:45 AM<br>
>> To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>
>> Subject: [asterisk-users] asterisk -> AGI (perl) -> sqlplus (oracle)<br>
>><br>
>><br>
>><br>
>> Hi all,<br>
>><br>
>> I'm trying to run an AGI in PERL which uses the module DBD-Oracle.<br>
>> Currently<br>
>> my AGI is working fine in my two servers but not in my other four<br>
>> servers.<br>
>> When I tried execute an AGI (as a user asterisk) in command line it<br>
>> works<br>
>> fine (even I also declare environmental variables in user profile and in<br>
>> my<br>
>> AGI), but when I tried to call my AGI (perl) in dial plan, it don't get<br>
>> executed.<br>
>><br>
>> Please advise me to resolve this issue.<br>
>><br>
>> --<br>
>> Regards,<br>
>><br>
>> Ahmed Munir Chohan<br>
>><br>
>><br>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Regards,<br><br>Ahmed Munir Chohan<br><br><br>