For making a call Follow this link .
And for auto detection of a phone number .. Its better if you go for a regular expression to check . once you find a match then call using the link I gave else don't.
Here's some of the reg ex link for Phone numbers