[Asterisk-Users] Codec Selection
Abdul Lateef
abdul_zu at yahoo.com
Sun Feb 5 13:50:29 MST 2006
Hi,
Is there any special configuration for transcoding on
asterisk? Or Asterisk will do it automatically?
-----------------------------------
Olivier Taylor
Sun, 05 Feb 2006 11:51:51 -0800
Hi,
Just forget to choose the Codec on asterisk :(
Only solution is :
Disallow=all
Allow=YourCodec
If client doesn't have that codec you will need to
transcode on asterisk.
If client has that codec,asterisk will do pass-thru
and it will work.
Olivier
-----Message d'origine-----
De : [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] De la part de Abdul Lateef
Envoyé : dimanche 5 février 2006 20:00
À : asterisk-users at lists.digium.com
Objet : Re: [Asterisk-Users] Codec Selection
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