Clickatell showing Delivered to gateway but SMS is not received using Java? -
i using clickatell sms gateway send sms user in java.
for have registered on clickatell , purchased small business api - americas regional traffic send sms usa users. have activated two-way number . java code looks -
string url = "http://api.clickatell.com/http/sendmsg?"; list<namevaluepair> params = new linkedlist<namevaluepair>(); params.add(new basicnamevaluepair("user", "user")); params.add(new basicnamevaluepair("password", "password")); params.add(new basicnamevaluepair("api_id", "xxxxx")); params.add(new basicnamevaluepair("to", "1xxxxxxxxxx")); params.add(new basicnamevaluepair("text", "demo message")); params.add(new basicnamevaluepair("from", "my-two-way-number")); params.add(new basicnamevaluepair("mo", "1")); string paramstring = urlencodedutils.format(params, "utf-8"); url += paramstring; httpget = new httpget(url); httpresponse response = client.execute(get); when run java code api-message-id in response, have checked status of api-message-id on clickatell message report shows delivered gateway, message received on phone.
the phone number format i'm using 1 country code , rest 10 digits of phone number. when try other format gives me error.
i not understanding why not receiving sms on phone while showing delivered gateway
if have sent sms indian number:
as per trai regulations, permitted deliver promotional or commercial messages during normal office hours. please refer following page full regulations
http://www.nccptrai.gov.in/nccpregistry/regulation1diccndiv.pdf.
please refrain sending messages after 9pm india local time.
i have contacted customer care , came know information.
Comments
Post a Comment