GPRS/GSM application again

The waitfor(GSM_SmsSend(MDM_CHANNEL,Phone,Msg)) works perfectly in the BASIC_SMS.C program provided with the application kit with data entered from the keyboard.

Using EXACTLY the same code i cannot get it to work i.e. send a text message, when providing the Phone and Msg from within the program using strcpy to those parameters. It gives me the impression that the termination of the parameters is wrong but i have tried no termination, a null, a VT and a new line and none work.

Does anyone have a clue as to what i am doing wrong??

Thanks.

Ted