Checkout the new code from CVS. I think a fix for what you are looking for was discussed during the last two weeks on development as being ready.
The fix keeps the order, but I am not sure it can do codec A then codec B if another call comes in. That seems more like a dial plan or a sip.conf issue. On the other hand If you have the older code then: The order does not matter because the list. allow=g729 allow=gsm allow=FormualX get converted to a bit field and the first field that matches wins. G729 | GSM | X | Y | Each call scans the list from left to right so "G729" is seen first if the other endpoint has G729 capability. There are not two "channels" on for G729 and others for GSM. There might be a way in the extensions.conf to do way you need to do, but I am not an expert in dial plans. Think about sending calls to an extension. If the G729 extension is busy then send the call to the GSM extension. Can anyone else help here? Race "The Tyrant" Vanderdecken "The World is divided into the literate and those who can't read the dictionary to lookup literate." -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kanuri, Seshu (Company IT) Sent: 21 December 2004 15:21 To: Ian Chilton; Asterisk Users Mailing List - Non-Commercial Discussion Subject: RE: [Asterisk-Users] Codec Selection /SNIP/ Subject: [Asterisk-Users] Codec Selection I have 2 g729 licences - what I want to do is use g729 by default but if I get more than 2 calls at a time, use gsm for the others. So, I put this on all my sip providers: disallow=all allow=g729 allow=gsm However, this just seems to use gsm for everything. If I comment out the gsm line, it then uses g729. I thought it would use the codec's in the order they are allowed - is this not true? is there any way to do what I want? /SNIP/ My Guess is that you need two licenses in order to call from both ends, where both end point are devoid of g729 and you need transcoding for both channels. Seshu -------------------------------------------------------- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. _______________________________________________ Asterisk-Users mailing list [email protected] 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 [email protected] http://lists.digium.com/mailman/listinfo/asterisk-users To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
