This pages contains tutorials for common use. All dialplan recipes gathered from emails or conversations could stay here.
Lock negotiated codec
In the middle of a call if one side puts the other one on hold a re-invite will occur and a new codec negotiation will happen. There's cases where you need to keep the same codec previously negotiated when the call was answered.
To accomplish this you can make an extension in the same context "assuming default for this example":