"tel" and "callto"

I’m looking for a way to serve the appropriate protocol depending on the device: “tel” for mobile and “callto” for desktop (i.e., telephony services like Skype etc.).

I tried

<a href="<? echo ($detect->isMobile()) ? 'tel' : 'callto'; ?> :+1-555-555-1212”>555-555-1212</a>

but I’m having trouble with it. Not sure why.

Todd


dynamo mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Do you need to go to those lengths?

My understanding is that if you use tel: then desktops will

“Desktop browsers that don’t support voice calls will open the default telephony app on the computer”

According to Google Developers.

D


dynamo mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Sorry - should ave provide a link.


dynamo mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options

Oh, I wasn’t aware of that. Makes things easier.

Thanks.


dynamo mailing list
email@hidden
Update your subscriptions at:
https://freewaytalk.softpress.com/person/options