Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Dial with Vonage from the Address Book' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dial with Vonage from the Address Book
Authored by: las_vegas on Sep 06, '04 04:28:51PM
Great script! But now than Vonage allow us to dial local numbers w/o the prefix & Area Code, I've made the following changes to the script: Add the following after the other personal properties with your own Area Code:
property myAreaCode : "000"
Replace the code:
	--  local number, must add the LD code for Vonage
	return myLongDistanceCode & " " & theNumber
	-- check for area code other than local missing the prefix - remove area code if local
	if character 1 of theNumber = "(" then
		if (characters 2 thru 4 of theNumber) as string = myAreaCode then
			return (characters 6 thru (length of theNumber) of theNumber) as string
			return myLongDistanceCode & " " & theNumber
		end if
	end if
Now it removes the local area code if present and adds the prefix if needed.

[ Reply to This | # ]