Kib Eki
2005-May-31 04:41 UTC
[Asterisk-Users] Automatic Codec change for different communication channels!?
Hi, I am looking for a way to let * choose the voice codec relying to the used communication channel. Example I am using a Polycom 500 which supports G729 and G.711. When I am doing internal calls (with my LAN) or calls over the PSTN (ISDN) I want to use the G.711 codec because there is enough bandwith. When I am doing inter asterisk calls (over my WAN to another * server) I want to use G.729. Is there a way how i can achieve this? Kib
Pavel Jezek
2005-May-31 05:18 UTC
[Asterisk-Users] Automatic Codec change for different communication channels!?
you can try use variable "preffered_codec" in dial command (if you now the prefixes/dial numbers, for which to use eg. g729)... PJ Kib Eki wrote:> Hi, > > I am looking for a way to let * choose the voice codec relying to the > used communication channel. > > Example > I am using a Polycom 500 which supports G729 and G.711. > When I am doing internal calls (with my LAN) or calls over the PSTN > (ISDN) I want to use the G.711 codec because there is enough bandwith. > When I am doing inter asterisk calls (over my WAN to another * server) > I want to use G.729. > > Is there a way how i can achieve this? > > Kib > > _______________________________________________ > 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
Kib Eki
2005-May-31 05:49 UTC
[Asterisk-Users] Automatic Codec change for different communication channels!?
could you please give more information concerning this setting? Pavel Jezek wrote:> you can try use variable "preffered_codec" in dial command (if you now > the prefixes/dial numbers, for which to use eg. g729)... > PJ > > > > > > > Kib Eki wrote: > >> Hi, >> >> I am looking for a way to let * choose the voice codec relying to the >> used communication channel. >> >> Example >> I am using a Polycom 500 which supports G729 and G.711. >> When I am doing internal calls (with my LAN) or calls over the PSTN >> (ISDN) I want to use the G.711 codec because there is enough bandwith. >> When I am doing inter asterisk calls (over my WAN to another * >> server) I want to use G.729. >> >> Is there a way how i can achieve this? >> >> Kib >> >> _______________________________________________ >> 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 > >
David John Walsh
2005-May-31 06:19 UTC
[Asterisk-Users] Automatic Codec change for different communication channels!?
This is off the top of my head - never tested For the end user device (ie polycom in your case) your sip settings would be something like [5000] username=5000 <<SNIP>> deny=all allow=ulaw allow=alaw allow=G729 which would give you both Then if you in the Trunk set the following [Trunkroute] username=asterisk2 <<SNIP>> deny=all allow=G729 Actually thinking some more, this might not work, as your asterisk box may transcode it, although it might not - but even if my logic is flawed here, it might inspire? David On 31/05/05, Kib Eki <kibeki@gmx.net> wrote:> could you please give more information concerning this setting? > > Pavel Jezek wrote: > > > you can try use variable "preffered_codec" in dial command (if you now > > the prefixes/dial numbers, for which to use eg. g729)... > > PJ > > > > > > > > > > > > > > Kib Eki wrote: > > > >> Hi, > >> > >> I am looking for a way to let * choose the voice codec relying to the > >> used communication channel. > >> > >> Example > >> I am using a Polycom 500 which supports G729 and G.711. > >> When I am doing internal calls (with my LAN) or calls over the PSTN > >> (ISDN) I want to use the G.711 codec because there is enough bandwith. > >> When I am doing inter asterisk calls (over my WAN to another * > >> server) I want to use G.729. > >> > >> Is there a way how i can achieve this? > >> > >> Kib > >> > >> _______________________________________________ > >> 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 > > > > > > _______________________________________________ > 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 >