I am using the Asterisk-JAVA library to call an extension from the JAVA code to Asterisk server running on a Virtual Machine on the same system. Its an ASTERISK-NOW 5211 server. Both the operating systems are on the same network.Below is the code used: