[asterisk-users] Force different codecs on call base

Daniel Tryba daniel at tryba.nl
Fri Jan 7 09:40:25 CST 2011


On Thu, Dec 30, 2010 at 10:10:18AM +0100, Stefan Schmidt wrote:
> my idea was if i can find a way that the first call of a peer has g711a
> codec (like normally) and if a second call comes in, or has to be placed
> for this peer i only offer g726 (40kbit) so i dont have a bandwith issue.

https://issues.asterisk.org/view.php?id=13243 explains settings codecs
(and its difficulties, but since you have full control there shouldn't
be a problem). Use GROUP and GROUP_COUNT to find out how many channels
are are active, use this to decide whether to use alaw or g726.

-- 

   Daniel Tryba



More information about the asterisk-users mailing list