[Asterisk-Users] Codec Selection
Abdul Lateef
abdul_zu at yahoo.com
Sun Feb 5 12:00:25 MST 2006
Hi,
I am using Perl AGI to dial the carrier (Gateway), i
am little experiencing how to do TRUN in Perl AGI.
this is my script how i am dialing the number to
Gateways, So before dialing the number i want to
select the codecs according to our Gateway.
my $discr = $AGI->get_variable("DIALSTATUS");
if ($discr == "CONGESTION" || $discr == "NOANSWER" ||
$discr == "CHANUNAVAIL")
{
my $dialstr = "$gwtype/$gwip/" . $dialednum .
"|30|tTL(" . ($crdeit*1000) .":7000:5000)";
$AGI->exec('Dial', $dialstr);
$discr = "";
}
Any idea?
--------
Yours,
Abdul Lateef
Computer Programmer
HATIF COM
Mob: +974 - 5405022
ICQ: 276994704
MSN: abdulzu at hotmail.com
GoogleTalk: lateef.np at gmail.com
YM!: abdul_zu
Doha Qatar
http://www.hatif.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the asterisk-users
mailing list