any one help me to write basic gsm connection establishment using AT commands
To establish an outgoing call, just dial the number, with ATD;
To connect an incoming call, either enable auto-answer wit ATS0=1, or answer manually with ATA.
Note that this is no different from a “normal” PSTN modem - nothing GSM-specific here!