Some limited solution can be a way to detect some pure phones. But not all possible:
(function(a) {
window.isPhone = /\bi?Phone\b|(?=.*\bAndroid\b)(?=.*\bMobile\b)|(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i.test(a);
})(navigator.userAgent || navigator.vendor || window.opera);
console.info('This device %s make phone calls', window.isPhone ? 'is originally intended to' : 'probably can\'t' );