extension/twilio.js
/**
 * @param {string} type - A type in the legacy format
 * @returns {string} The type adjusted to new standards for known naming changes
 */
@param {string} type - A type in the legacy format
@returns {string} The type adjusted to new standards for known naming changes
@param { string } type - A type in the legacy format @returns { string } The type adjusted to new standards for known naming changes
function translateCandidateType(type) {
    switch (type) {
        case 'peerreflexive':
            return 'prflx';
        case 'serverreflexive':
            return 'srflx';
        case 'host':
        case 'relay':
        default:
            return type;
    }
}
function translateCandidateType ( type ) { switch ( type ) { case 'peerreflexive' : return 'prflx' ; case 'serverreflexive' : return 'srflx' ; case 'host' : case 'relay' : default : return type ; } }
@param {string} type - A type in the legacy format
 @returns {string} The type adjusted to new standards for known naming changes
@param { string } type - A type in the legacy format @returns { string } The type adjusted to new standards for known naming changes