How to handle AgiServer?

In Asterisk-Java, how do you handle multiple call transactions in AgiServer class wherein it has a single port of 4573?

TCP sockets 101.

source IP:Port + destination IP:Port = socket identification

the underlying OS and TCP stack will ensure the higher level streams only get the pertinent information to that particular socket connection.

Can I run multiple DefaultAgiServer at the same time without conflicts on ports?

you shouldn’t need to… to what end would you want to run multiple AGI servers?

I think that should not be. :smiley: Just wonder how can I send back to other java class the value of getData.