Pavel Siderov - Hostmates
2005-Apr-12 06:34 UTC
[Asterisk-Users] How to get list of codecs
Hi Guys, Is it possible to get the UAC supported codec list when making a call. I want to assign to variable1 and variable2 the first 2 supported codecs using AGI script e.g. $variable1=g723 $variable2=g729 Somebody can help me ? Any help is appreciated. Thanks, Pavel Siderov
mmm i think Agi by itself does not provide a way to do so. And the codecs are negotiated depending upon the codec that both call sides support. So, i belive that the only way is making your own implementation of AGI in res_agi.c :) Hopefully someone will come up with a better idea :-) best regards On Apr 12, 2005 1:34 PM, Pavel Siderov - Hostmates <pi@hostmates.com> wrote:> Hi Guys, > > Is it possible to get the UAC supported codec list when making > a call. I want to assign to variable1 and variable2 the first 2 > supported codecs using AGI script e.g. > > $variable1=g723 > $variable2=g729 > > Somebody can help me ? Any help is appreciated. > > Thanks, > Pavel Siderov > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >
Pavel Siderov - Hostmates
2005-Apr-13 00:45 UTC
[Asterisk-Users] How to get list of codecs
Will try, thanks :) Pavel Siderov ----- Original Message ----- From: "Moises Silva" <moises.silva@gmail.com> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com> Sent: Tuesday, April 12, 2005 6:45 PM Subject: Re: [Asterisk-Users] How to get list of codecs> mmm i think Agi by itself does not provide a way to do so. And the > codecs are negotiated depending upon the codec that both call sides > support. So, i belive that the only way is making your own > implementation of AGI in res_agi.c :) > > Hopefully someone will come up with a better idea :-) > > > best regards > > On Apr 12, 2005 1:34 PM, Pavel Siderov - Hostmates <pi@hostmates.com> > wrote: >> Hi Guys, >> >> Is it possible to get the UAC supported codec list when making >> a call. I want to assign to variable1 and variable2 the first 2 >> supported codecs using AGI script e.g. >> >> $variable1=g723 >> $variable2=g729 >> >> Somebody can help me ? Any help is appreciated. >> >> Thanks, >> Pavel Siderov >> _______________________________________________ >> Asterisk-Users mailing list >> Asterisk-Users@lists.digium.com >> http://lists.digium.com/mailman/listinfo/asterisk-users >> To UNSUBSCRIBE or update options visit: >> http://lists.digium.com/mailman/listinfo/asterisk-users >> > _______________________________________________ > Asterisk-Users mailing list > Asterisk-Users@lists.digium.com > http://lists.digium.com/mailman/listinfo/asterisk-users > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >