The word "hello" did not become a common greeting in the English language until after the invention of the telephone in 1877, when American inventor Thomas Edison is thought to have suggested the word as a greeting when picking up the phone. The actual inventor of the telephone, Alexander Graham Bell, reportedly wanted “ahoy” to be the standard greeting when answering the phone. The exact origins of the word "hello" are not known, but it is believed to have first appeared in a published work in 1827. Before the invention of the telephone, the word "hello" typically was used to catch a person’s attention rather than as a greeting.
More about telephone greetings: