AT command in SIM900A GSM/GPRS module to find out originating address of a SMS

I am using SIM900A for some purpose and want to know the number of the sender from where message come.I am unable to find the a specific AT command related to receiving message which give me number from where latest message comes.

I had used AT+CNMI (it corresponds to notification regarding latest received message ) but unable to find sender number.

I had seen AT+CMGL=[,] will give you a string which will have oa i.e originating address and once that is stored in a string i can easily parse it out, but when i had data format of that string.Need help or any suggestion if somebody can help me out with any other possible solution.

I wasn't able to send the output of AT+CMGl to serial terminal of arduino(i was suing software serial for serial terminal and serial for GSM module).And when i tried the same command AT+CMGL over terminal while communicating with GSM module i get error.

So if some one can help me with the format of the output string of Command AT+CMGL, i can then work out with parsing and storing the number in a variable.

I am doing this because, i want to make a generic program in Arduino without using GSm library so that when ever a message come from a specific number , reply is being send to the same number.If any one has any other solution please do let me know.

look at this pdf doc :

https://www.google.com/url?q=http://itead-europe.com/pm/platform/shield/icomsat/DOC_SIM900_AT%2520Command%2520Manual_V1.03.pdf&sa=U&ei=CkkLUsGqNsKm0AWcvoCYBw&ved=0CAcQFjAA&client=internal-uds-cse&usg=AFQjCNFdN5VG1JQpvxtiYFp7GKGCrKgptw

page 102 the AT+CMGR command

when the sim900 sends a "+CMTI", it contains the index (n) of the SMS message, you send an "AT+CMGR=n" message, and the +CMGR answer contains the sender number, the sms text is after the