On the above code:

HSerin 5000,loop,[wait("UNREAD"),skip 3,STR Caller\13,skip 4,STR GSMTime\17,skip 6, STR GSMBUFFER\16\13]

it would be good to change UNREAD to READ since the phone can answer also "REC READ" or other "READ" messages.

Ioannis