<div dir="ltr">It works d\Danny...Thanks a lot for your help<br><br>Regards<br><br><div class="gmail_quote">On Thu, Apr 9, 2009 at 12:37 AM, Danny Nicholas <span dir="ltr"><<a href="mailto:danny@debsinc.com">danny@debsinc.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">This is at least correct on my setup</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;">$dest = $input{dnid}</span></font></p>
<p><font size="2" color="navy" face="Arial"><span style="font-size: 10pt; font-family: Arial; color: navy;"> </span></font></p>
<div>
<div style="text-align: center;" align="center"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">
<hr size="2" width="100%" align="center">
</span></font></div>
<p><b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma; font-weight: bold;">From:</span></font></b><font size="2" face="Tahoma"><span style="font-size: 10pt; font-family: Tahoma;">
<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a> [mailto:<a href="mailto:asterisk-users-bounces@lists.digium.com" target="_blank">asterisk-users-bounces@lists.digium.com</a>]
<b><span style="font-weight: bold;">On Behalf Of </span></b>michel freiha<br>
<b><span style="font-weight: bold;">Sent:</span></b> Wednesday, April 08, 2009
4:28 PM<br>
<b><span style="font-weight: bold;">To:</span></b> Asterisk
Users Mailing List - Non-Commercial Discussion<br>
<b><span style="font-weight: bold;">Subject:</span></b> [asterisk-users] Perl AGI</span></font></p>
</div><div><div></div><div class="h5">
<p><font size="3" face="Times New Roman"><span style="font-size: 12pt;"> </span></font></p>
<div>
<p style="margin-bottom: 12pt;"><font size="3" face="Times New Roman"><span style="font-size: 12pt;">Hi all,<br>
<br>
I have the below peace of my AGI script...the problem here is that I cannot
fetch the extension value to inside the script and assign it to another
variable...I highlighted it in red<br>
<br>
#!/usr/bin/perl<br>
#use DBD::mysql;<br>
use DBI;<br>
use DBD::mysql;<br>
use Asterisk::AGI;<br>
<br>
############################<br>
#To read asterisk variable values.<br>
<br>
$AGI = new Asterisk::AGI;<br>
my %input = $AGI->ReadParse();<br>
<br>
$AGI->verbose("AGI Environment Dump:", 3);<br>
my $micho = $input{9};<br>
$AGI->verbose("my dialed no is :$micho");<br>
foreach my $i (sort keys %input) {<br>
$AGI->verbose(" -- $i =
$input{$i}", 3);<br>
}<br>
<br>
<br>
##################<br>
#To get the asterisk dial no whihc is 112 in our case<br>
my $no=$AGI->get_variable ('extnum');<br>
<b><font color="red"><span style="color: red; font-weight: bold;">my
$dest=$AGI->get_variable ('extension');</span></font></b><br>
$AGI->verbose("my dialed no is :$no");<br>
<font color="red"><span style="color: red;">$AGI->verbose("my dialed no is
:$dest");</span></font><br>
<br>
When the script run I got: dial.pl: my dialed no is :<br>
<br>
Can you please help me to fix this issue?<br>
<br>
Regards<br>
<br>
</span></font></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
<a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br></div>