I am trying to interface a GSM modem
There's some possibility that since this is a MODEM, and a Radio-based (inherently half-duplex) MODEM at that, that you will actually have to pay attention to (and manipulate) the MODEM control signals like RTS/CTS and DSR/DTR, perhaps even
AS ORIGINALLY DEFINED in the RS232 spec (ie NOT "just" "hardware flow control".)
Briefly and approximately:
wait for RI to indicate incoming call.
Asssert DTR to accept call (or initiate outgoing call)
wait for DSR to indicate connection with remote modem.
(Accept data in this state.)
(if data to send, assert RTS, wait for CTS, send data, de-assert RTS when done. You can think of asserting RTS as turning on the transmitter radio, and CTS indicating that it is on...)
(I can't tell from the manual whether any of this is needed. :-( )