Abhay Agarwal wrote:Welcome to Java Ranch !!!
you can write a Generic Servlet which will have 3 methods
a. init()
b. service()
c. destroy()
In init() method, you can write code which listens to port 7080
When ever a message is recieved on port 7080, control goes to service() method where you can construct sip message using the caller-callee information. Then control can be forwarded to SIPServlet with required information
In destroy() method, you can discontinue listening to port 7080 (closing the socket)
~ abhay