Patent ID: 7486694

Claim:
A media-gateway controller comprising: a storage unit, which stores a codec conversion table indicating a relationship between a first codec and a second codec in conversion from the first codec to the second codec; a receiver, which receives first call setting data including codec data of a caller from the caller and receives first call response data including codec data of a callee from the callee as a response to second call setting data having been transmitted to the callee; a data transformer, which searches the codec conversion table for a first codec using the caller's codec data as an index, adds a second codec corresponding to the searched first codec to the first call setting data to generate the second call setting data, searches the codec conversion table for a second codec using the callee's codec data as an index, and replaces the callee's codec data included in the first call response data with a first codec corresponding to the searched second codec to generate a second call response data; a transmitter, which transmits the second call setting data to the callee and transmits the second call response data to the caller; and wherein the codec conversion table comprises a field indicating a preference defined based on communication quality and data processing speed of each codec, when two or more second codecs are added to the first call setting data, the data transformer sorts the second codecs according to the preference, and when the callee's codec data included in the first call response data is replaced with two or more first codecs, the data transformer sorts the first codecs according to the preference.