Auto response for received SMS

Auto response for received SMS SearchSearch
Author Message
riteshe
New member
Username: Ritbizkit

Post Number: 26
Registered: 02-2010
Posted on Monday, September 06, 2010 - 01:41 pm:   

hi, I have a php script its running perfectly, i can recieve and send SMS. but i have one problem, sometimes i receive SMS from the Cellphone operator, with client phone number.
in this message, i extract the client number and some important information and prepare to send SMS to the cliente, using the number i extract from the SMS. but the problem is that the Now SMS gateway send this message to the operator instead to send to the client. how i can solve this??
plz someone help me.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2484
Registered: 08-2008
Posted on Tuesday, September 07, 2010 - 12:50 pm:   

Hi,

I do not understand your question. Can you explain with an example?

In particular, I do not know what you mean by 'client'. Do you mean an account defined in NowSMS under SMS Users? If so, then check the properties for this account and make sure that the 'Receive messages for phone number(s)' setting is not set. NowSMS will route messages to any number in this list to the SMPP client account instead of sending outbound.

-- Des NowSMS Support
riteshe
New member
Username: Ritbizkit

Post Number: 27
Registered: 02-2010
Posted on Tuesday, September 07, 2010 - 01:03 pm:   

hi,
i will try to explain again.
i have a php script. this script receive the sms, go to the database, get the information and send SMS to the client. on Now SMS gateway, i have configured on 2-Way option.
SMS COmmand prefix: *
command to execute: http://127.0.0.1/My_script.php?msg=@@FULLSMS@@&msisdn=@@SENDER@@&sn=@@RECIP@@
and i have cheked command returns response text.

the system is working. my problem is when i get the messagem from cell phone operator.
ex: opertaor send SMS to my system. something like. "the number 45879308 send to u 100USD". the operator number is 333.
my script when receive SMS from number 333 he extract from the message the phone number: 45879308 and the value:100USD. put this on database, and then want to send a messagem to number:45879308 that his account have now 100USD. but this message is going to operator number 333 and not going to 45879308.

another short example is that.
333 send me SMS to my system, with information about 458798. my systema have to send to 458798 that i recieve information about u. but he is not doing this, he is sending this message to 333.

hope u understand.
thanks.
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 2488
Registered: 08-2008
Posted on Tuesday, September 07, 2010 - 01:20 pm:   

Uncheck "command returns text response".

Instead of sending a response back to the sender, use sendsms.php which gives you more control over sending messages to whoever we want.

http://blog.nowsms.com/2008/10/nowsms-php-example-send-sms-text.html
riteshe
New member
Username: Ritbizkit

Post Number: 28
Registered: 02-2010
Posted on Tuesday, September 07, 2010 - 01:22 pm:   

ok, i will try this.
thank u.
Nithya
New member
Username: Nithya

Post Number: 1
Registered: 05-2011
Posted on Wednesday, May 25, 2011 - 06:48 am:   

how to get the response for sending msg using php script... am sending msg using url
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3195
Registered: 08-2008
Posted on Wednesday, May 25, 2011 - 03:38 pm:   

Hi,

Received SMS messages can be posted to an HTTP URL that you configure on the "2-way" page.

http://www.nowsms.com/doc/2-way-sms-support

Here is a page that links to some simple examples:

http://support.nowsms.com/discus/messages/1/4520.html

--
Des
NowSMS Support
Nithya
New member
Username: Nithya

Post Number: 2
Registered: 05-2011
Posted on Thursday, May 26, 2011 - 06:50 am:   

For example by using url
http/sendmsg?api_id=44444&user=iiii&password=aaa&to=@@444444@@&udh=@@TTR@@&text= @@Text@@ am sending msg... i want to store the response by using php script
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3197
Registered: 08-2008
Posted on Thursday, May 26, 2011 - 03:21 pm:   

I'm sorry, but I don't understand what response you are attempting to store.

An HTTP response from a web server?

An SMS response from a mobile device?

--
Des
NowSMS Support
Nithya
New member
Username: Nithya

Post Number: 4
Registered: 05-2011
Posted on Friday, May 27, 2011 - 05:02 am:   

i mean i have to store an HTTP response from a web server
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3198
Registered: 08-2008
Posted on Friday, May 27, 2011 - 02:37 pm:   

I'm not sure that you are actually using NowSMS, but here is a script that parses the HTTP response from NowSMS to get the MessageID: http://support.nowsms.com/discus/messages/1/24868.html

Add Your Message Here, or click here to start a new topic.
Post:
Bold text Italics Underline Create a hyperlink Insert a clipart image
Options: Automatically activate URLs in message
Action: