<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'>Did you “install” DBD::Oracle or is it just in your /home/asterisk directory? Put up the part of the PERL module that has your include statements.<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> Thursday, January 05, 2012 8:54 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'>The thing is, my AGI is working fine if I don't include DBD::Oracle library in my script. If I include DBD::Oracle library my AGI script gets aborted. I installed DBD::Oracle module in asterisk application home directory as its' permissions are listed below;<br><br>[asterisk@klpi062 ~]$ ls -lh /home/asterisk/perl-lib/lib/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/<br>total 40K<br>drwxr-xr-x 3 asterisk asterisk 4.0K Jan 3 14:16 auto<br>drwxr-xr-x 3 asterisk asterisk 4.0K Jan 3 14:16 DBD<br>-rwxr-xr-x 1 asterisk asterisk 1.3K Aug 26 14:09 <a href="http://oraperl.ph">oraperl.ph</a><br>-rwxr-xr-x 1 asterisk asterisk 28K Oct 12 12:43 Oraperl.pm<o:p></o:p></p><div><div><p class=MsoNormal>I also included the library path for locating DBD::Oracle module in my AGI. But still unable to understand even though asterisk has permissions to access DBD module but still AGI don't work when I include DBD library in it.<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: Wed, 4 Jan 2012 12:18:24 -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: <010101cccb0d$3fa6a140$bef3e3c0$@<a href="http://debsinc.com" target="_blank">debsinc.com</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>What are the permissions on the module you are trying to run? (ls -l<br>/var/lib/asterisk/agi-bin/module)<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 Munir<br>Sent: Wednesday, January 04, 2012 12:15 PM<br>To: <a href="mailto:asterisk-users@lists.digium.com">asterisk-users@lists.digium.com</a><br>Subject: Re: [asterisk-users] asterisk -> AGI (perl) -> sqlplus (oracle)<br><br><br><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>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 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. Currently<br>my AGI is working fine in my two servers but not in my other four servers.<br>When I tried execute an AGI (as a user asterisk) in command line it works<br>fine (even I also declare environmental variables in user profile and in 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><o:p></o:p></p></blockquote></div><p class=MsoNormal style='margin-bottom:12.0pt'>-- <br>Regards,<br><br>Ahmed Munir Chohan<br><br><o:p></o:p></p></div></body></html>