code ported for telite gsm modem