A method for transcoding in a communication system, the communication system comprising: a first user equipment, UE1, a first Session Border Controller, SBC-1, associated with UE1, a Border Gateway Function BGF-1, a data network, DN, a second user equipment, UE2, and a second Session Border Controller, SBC-2, associated with UE2, wherein the SBC-1 has a transcoding capacity, TC, wherein the TC has a value within one of a plurality of ranges, the method comprising the steps of: subscribing, from the SBC-1 to the BGF-1, to a transcoding capacity event; notifying (S12, S22, S32), from the BGF-1 to the SBC-1, about a current TC; sending (S13, S23, S33), from the UE1 towards the UE2, a Session Description Protocol, SDP, offer, through SBC-1, comprising a first set of codecs; receiving the SDP offer, at the SBC-1, and sending (S14, S24, S25) the SDP offer to the UE2 through the DN and SBC-2, the SDP offer sent from the SBC-1 comprising a second set of codecs depending on a phase of the current TC; receiving, at the UE2, the SDP offer comprising the second set of codecs and selecting a codec; sending (S15, S25, S35), from the UE2 to the UE1, a SDP answer including the selected codec, through SBC-2, the DN, the BGF-1 and the SBC-1; checking, at the SBC-1, whether the UE2 selected codec matches with one of the set of codecs of the SDP offer of the UE1, and, in case it matches, forwarding the SDP answer to the UE1, and in the case the UE2 selected codec does not match with one of the codecs of the SDP offer of the UE1, checking, at the SBC-1 whether the selected codec is supported by the BGF-1, and, in the case it is supported, instructing the BGF-1, by the SBC-1, to perform transcoding from the selected codec into a codec from the first set of codecs of the SDP offer, updating the SDP answer, and forwarding (S16, S26) the updated SDP answer to the UE1, wherein the TC is: in phase one if LT1 ≤ TC < UT1, where LT1 is a lower threshold and UT1 is a first upper threshold of transcoding capacity, in phase two if UT1 ≤ TC < UT2, where UT2 is a second upper threshold transcoding capacity, phase three if UT2 ≤ TC, wherein LT1, UT1 and UT2 are natural numbers and are configurable parameters. subscribing, from the SBC-1 to the BGF-1, to a transcoding capacity event; notifying (S12, S22, S32), from the BGF-1 to the SBC-1, about a current TC; sending (S13, S23, S33), from the UE1 towards the UE2, a Session Description Protocol, SDP, offer, through SBC-1, comprising a first set of codecs; receiving the SDP offer, at the SBC-1, and sending (S14, S24, S25) the SDP offer to the UE2 through the DN and SBC-2, the SDP offer sent from the SBC-1 comprising a second set of codecs depending on a phase of the current TC; receiving, at the UE2, the SDP offer comprising the second set of codecs and selecting a codec; sending (S15, S25, S35), from the UE2 to the UE1, a SDP answer including the selected codec, through SBC-2, the DN, the BGF-1 and the SBC-1; checking, at the SBC-1, whether the UE2 selected codec matches with one of the set of codecs of the SDP offer of the UE1, and, in case it matches, forwarding the SDP answer to the UE1, and in the case the UE2 selected codec does not match with one of the codecs of the SDP offer of the UE1, checking, at the SBC-1 whether the selected codec is supported by the BGF-1, and, in the case it is supported, instructing the BGF-1, by the SBC-1, to perform transcoding from the selected codec into a codec from the first set of codecs of the SDP offer, updating the SDP answer, and forwarding (S16, S26) the updated SDP answer to the UE1, wherein the TC is: in phase one if LT1 ≤ TC < UT1, where LT1 is a lower threshold and UT1 is a first upper threshold of transcoding capacity, in phase two if UT1 ≤ TC < UT2, where UT2 is a second upper threshold transcoding capacity, phase three if UT2 ≤ TC, wherein LT1, UT1 and UT2 are natural numbers and are configurable parameters.