Skip to main content
June 6, 2019
Answered

How can I encode a telephone number which, when chosen, starts a call?

  • June 6, 2019
  • 2 replies
  • 716 views

2019-06-06-04T00:05Z

How can I encode a telephone number such that when a person chooses it, it starts a phone call.  This would be analogous to a hypertext marker with the command "GO to URL" or "Message Client."

Thanks!

This topic has been closed for replies.
Correct answer Bob_Niland

It would appear that one would use URI Scheme "tel":
message URL tel:+1-201-555-0123
per RFC3966

But as Jeff's StackOverflow thread reference indicates, whether or not it works may be client-dependent. If it doesn't, and you control the client (device, browser), then provisional URI Scheme callto: might be worth a test.

A further question arises as to whether the URI is delivered to the client via HTML/XML, or inside a PDF.

I've never needed to try any of it.

2 replies

Bob_Niland
Community Expert
Bob_NilandCommunity ExpertCorrect answer
Community Expert
June 6, 2019

It would appear that one would use URI Scheme "tel":
message URL tel:+1-201-555-0123
per RFC3966

But as Jeff's StackOverflow thread reference indicates, whether or not it works may be client-dependent. If it doesn't, and you control the client (device, browser), then provisional URI Scheme callto: might be worth a test.

A further question arises as to whether the URI is delivered to the client via HTML/XML, or inside a PDF.

I've never needed to try any of it.

June 6, 2019

2019-06-06-04T23:40Z

The reply from Bob Niland (Error 7103) is correct.

    NOTE

    FrameMaker changed the plus sign ( + ) to an exclamation point ( ! ).

In the hypertext marker, I used the command Go to URL with the content message URL tel:!1-260-745-2907.

On my Samsung Galaxy J7 with Android ver 8.1.0 with the tel nbr encoded in a PDF file, when I choose the "hot" nbr, it ran the default app for phone.  To call the nbr, I had to choose the green tel handset icon.  This intermediate step provides a convenient opportunity to either stop the process or to continue it.

Thanks!

Jeff_Coatsworth
Community Expert
Community Expert
June 6, 2019

A quick google reveals - https://stackoverflow.com/questions/1164004/how-to-mark-up-phone-numbers

Have you tried any of those ideas?