yes, "hello" can be traced back to older forms of "attention seeking hollers", but the popular currency of the modern hello came about because it was the greeting chosen for the telephone. I believe the original suggestion was to answer the phone with "ahoy!"