"asterisk-1.2.3tar.gz" that is not an .RPM, it is source code that requires compiling. asterisk-1.2.RPM is an .RPM. You cannot install one via the others method. So which do you have?
Originally Posted by Linux~Powered
Just run "rpm -ivh your.rpm and It'll install it for you; as root of course.
he answered what to do if it's an .RPM.
If it's source use tar -xvzf <file> then c into it and try ./congirue