I have configured my ATA devices + asterisk-184.108.40.206 to use G729 as the default CoDec with no problems. However, I need to write a dialplan context to switch to a G711 CoDec to deal with some VoSPs that only support G711 CoDec. So, I wrote a simple dialplan context as shown below to achieve this, but it doesn’t seem to work. Can anyone please help?
exten => _X.,1,NoOP(G711 CoDec)
exten => _X.,n,Set(SIP_CODEC=g711)
exten => _X.,n,Dial(...)