Friend deals with packets to and from a specific IP address, which should be an asterisk server. If you register() with the PBX, then it acts as friend, until then it is a user. It manages calls and distribution of frames to the PBX.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.