A method of controlling a codec negotiation of a first communication device providing a codec capability offer for establishing a data connection to a second communication device, the first communication device comprising a processor connected to a non-transitory computer readable medium, the method comprising:
- providing, via the first communication device, a Digital Signal Processor (DSP) resource for at least one of encoding data and decoding data to be transmitted using a codec negotiated between the first communication device and the second communication device;
- controlling the first communication device to limit a selection of codecs available at the first communication device to at least two codecs reserving different amounts of the DSP resource;
- executing the data connection on a channel, wherein a total number of simultaneous channels is limited by the DSP resource;
- predicting the total number of simultaneous channels via a prediction process comprising:
- dividing a usable DSP resource by an amount of a DSP resource reserved by the codec that reserves the least amount of the DSP resource.