GPRS modem gets stuck/hangs up when "AT" is entered
I figured it out. The modem had hardware flow control enabled by default. So I had to put it into null modem state. Its just a matter of shorting CTS and RTS lines each other. Now its working perfectly fine.