I'm building a SIP server that generally receives UDP messages and then responds to them. I have a filter chain that handles the SIP protocol, transactions, and dialogs. The next piece to implement is sending messages to clients not in response to a received message. The easiest way to handle this seems to be to hang onto an IoSession object for each client and just use the write() method so that the response passes through the filter chain.
What I can't figure out is how to handle these messages to clients when the server is running on multiple machines. In this case, the message could be generated on a machine that has not received any messages from the client. The only option I can see in this case is to create a client connection using NioDatagramConnector each time I want to send a message. Is there a better way? If not, are there going to be problems creating thousands of NioDatagramConnector objects? -- Byron Clark
