<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Here’s one more thing to try – do a “su – nobody” then run the agi – once it runs under “su – nobody” there’s no reason it should run in Asterisk.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] <b>On Behalf Of </b>Ahmed Munir<br><b>Sent:</b> Friday, January 06, 2012 9:33 AM<br><b>To:</b> asterisk-users@lists.digium.com<br><b>Subject:</b> Re: [asterisk-users] asterisk -> AGI (perl) -> sqlplus(oracle)<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><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><o:p></o:p></p><div><blockquote style='border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in'><p class=MsoNormal style='margin-bottom:12.0pt'>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>>><o:p></o:p></p></blockquote></div><p class=MsoNormal style='margin-bottom:12.0pt'><br><br clear=all><br>-- <br>Regards,<br><br>Ahmed Munir Chohan<br><br><o:p></o:p></p></div></body></html>