i have successfully send sms using asterisk AMI , using agi php script.
the problem that if sms body has space the system sent only the world before space (i.e all test after space dose not sent and ignored)
i have also check sending from ASTERISK CLI Command like:
gsm send sms 1 00966500732229 this is a test
same problem , i receive the first world (this) and the other statement are missing.
i mean the problem not related to php agi , the problem is related to asterisk ippbx