|Forward SMS messages to another mobile number that is set by the cl...||Search|
|SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through January 23, 2007 » Forward SMS messages to another mobile number that is set by the client||« Previous || Next »|
Post Number: 4
Can any one help me on this I would like to make as service to forward the sms of a user to another, but the case is that the user will be the one who chooses where the sms will go everytime he sends it.
SMS forward Service commands
Send Format FWD:Phone_numer_of_Receptient\Message_of_Sender
could any one teach me how to do this I am really stuck..
|Bryce Norwood - NowSMS Support
Post Number: 6821
To do this with NowSMS, you would need to do it via a 2-way script. I do not have an example that provides this specific functionality, but here is some information on how the 2-way command facility works.
When NowSMS receives an SMS message, it can be configured to call an HTTP script that you configure. (This would be a script running on a separate web server, although it could also be a command line program.)
That script could check the sender against an allowed list, and forward the message only if the sender was allowed.
Here is basic information on scripts and the 2-way SMS facility:
Basically, NowSMS is going to pass the details about the received message to your script. Your script is going to parse the information from the message to determine whether or not and to whom the message is going to be forwarded.
For the script to actually forward the message, it would use the "redirect technique" described in the above links, where the message gets resubmitted to NowSMS, but addressed to a new recipient (or list of recipients).
The following thread talks about receiving messages and forwarding them out to a group, which might also provide some helpful background: