Sms autoforward

Sms autoforward SearchSearch
Author Message
cam
New member
Username: Kenuzi

Post Number: 3
Registered: 10-2004
Posted on Thursday, January 06, 2005 - 01:02 am:   

hi
could someone please help in explaining how i could use nowsms to auto forward a single message to a user group ?
any help would be appreciated
cheers
Anonymous
 
Posted on Sunday, January 09, 2005 - 10:10 am:   

Not sure if you are talking about sending the same message to a set of people. This can be achieved thru Distribution List feature.

cam
New member
Username: Kenuzi

Post Number: 4
Registered: 10-2004
Posted on Monday, January 17, 2005 - 07:15 am:   

hi & thanks
i have a user group who i want anyone of them to be able to send an sms to 1 number, and then that same message automatically forwarded to each member of the group.
i have installed nowsms & my gsm modem (samsung V200 mobile).
could someone please explain the distribution list feature please ?
am correct in thinking that this is in the 2-way tab ?
i cant find any mention of this in the documentation.
many many thx in advance
cam
New member
Username: Kenuzi

Post Number: 5
Registered: 10-2004
Posted on Monday, January 17, 2005 - 11:08 am:   

well i think my problem to start is that a samsung v200 does not recieve nessages through nowsms.
i tried my siemens s45 and the echo test worked.
now to try the other tests
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3898
Registered: 10-2002
Posted on Monday, January 17, 2005 - 09:00 pm:   

Hi cam,

Moving beyond the echo test, if you wanted to have the message sent to multiple recipients, you would need to implement a more involved command in the "2-way" table.

You wouldn't necessarily have to get into the distribution lists, although this might make it easier for you to maintain if you need to frequently modify the list. I'll talk about distribution lists in a minute.

First, let me point you to a command line example for sending an SMS message from the command line:

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

Your 2-way command could do some processing and then call a script like that to send the message to the group.

Or ... if you do not need to perform any processing on received messages, but just send them out to your list "as is", then you could define a "2-way" command like this:

http://127.0.0.1:8800/?user=username&password=password&phonenumber=1,2,3,4,5&tex t=@@SENDER@@/@@FULLSMS@@

You need to substitute "8800" with the "Port Number for web interface" configured on the "Web" page of the NowSMS config.

"username" and "password" should correspond to a user account defined on the "SMS Users" page of the NowSMS config.

"phonenumber=" contains a comma delimited list of recipients to receive the message. (Alternatively, you could just specify the name of a distribution list here, more on this in just a minute.)

Basically, what this "2-way" command does is that whenever a message is received over the modem ... it takes the message and resubmits it to NowSMS so that it is sent out to your list of recipients. I've also made it so that the text of the message is sent out starts with the phone number of the person who sent the message in to the modem, so that recipients can still see who sent the original message. I did this because the message will appear to the recipients as if it came from the modem's phone number. (This is a limitation of using a GSM modem for sending out messages. You cannot override the sender address in this configuration. If instead, you sent outbound messages through a service provider ... continuing to receive them via a modem, you could change the command to: http://127.0.0.1:8800/?user=username&password=password&phonenumber=1,2,3,4,5&sen der=@@SENDER@@&text=@@FULLSMS@@ This example attempts to preserve the sender address so that the new recipients still see the original sender.)

All in all, this is a pretty cool little example. It lets you basically create your own type of chat group where everyone sees everything sent to the group number. That could be useful for a variety of applications.

Now I promised that I would say something about the distribution lists, so let me mention them.

Basically, when you submit a message to NowSMS for sending ... either through the web interface or an HTTP request like the above ... the "phonenumber=" parameter can point to either a single phone number, a list of phone numbers, or a named distribution list. Each user account has its own distribution lists, so when you login to an "SMS Users" account via the web interface, you can edit/create distribution lists for that account. When you submit a message through that user account, you can then use the distribution list name in place of a phone number.

I hope that helps.

-bn
cam
New member
Username: Kenuzi

Post Number: 6
Registered: 10-2004
Posted on Wednesday, January 19, 2005 - 04:21 am:   

Thanks Bryce, that is exactly what I need and it works perfectly. I enter my distribution list name in the phonenumber parameter and the message is distributed.
I am now using a Siemens S45. The samsung V200 does not seem to want to recieve messages and did not work.
I can see a variety applications for this.
Many thanks again to all
Cheers !
Leon
Unregistered guest
Posted on Sunday, January 23, 2005 - 10:27 pm:   

Hi, I am trying to route an incoming sms to an email address.I used the mailto command. If I use an internal email address, it works, but I cannot direct it to an outside email. Can somebody please help? Thanks - Leon
cam
New member
Username: Kenuzi

Post Number: 8
Registered: 10-2004
Posted on Tuesday, January 25, 2005 - 06:40 am:   

Hi again.
Is there a way to produce a log file from 2-way ?
Can I incorporate this command--
c:\winnt\system32\wscript.exe c:\temp\NowSMS\incall.vbs %@@SENDER@@%@@SMSPREFIX@@%@@SMS@@
--
which was posted by another user, as well as the auto forward command mentioned here ? Can i append this on ? you can only overwrite the existing command .
any ideas ?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3981
Registered: 10-2002
Posted on Wednesday, January 26, 2005 - 06:07 pm:   


quote:

Hi, I am trying to route an incoming sms to an email address.I used the mailto command. If I use an internal email address, it works, but I cannot direct it to an outside email. Can somebody please help? Thanks - Leon




Hi Leon,

Since e-mail to your internal addresses works, I assume you have your internal e-mail server configured as the "SMTP Relay Host" on the MMSC page of the NowSMS configuration.

The problem is that your internal e-mail server won't relay on behalf of NowSMS. It is only accepting e-mail for its internal addresses.

Hopefully there is some way to configure your e-mail server to allow it to relay on behalf of the PC running NowSMS. This process can vary quite a bit between different mail servers, so unfortunately, I do not have any advise on what specifically needs to be done at the mail server.

But often times, there is a configuration setting that allows the mail server to relay mail for a specific IP address, or mail from a specific domain name.

-bn
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 3982
Registered: 10-2002
Posted on Wednesday, January 26, 2005 - 06:15 pm:   


quote:

Is there a way to produce a log file from 2-way ?
Can I incorporate this command--
c:\winnt\system32\wscript.exe c:\temp\NowSMS\incall.vbs %@@SENDER@@%@@SMSPREFIX@@%@@SMS@@
--
which was posted by another user, as well as the auto forward command mentioned here ? Can i append this on ? you can only overwrite the existing command .
any ideas ?




No, there's not a way to do this. Basically only one command gets executed.

About the only thing that I could suggest would be to have the 2-way command perform the logging, and send an e-mail.

Actually, you could probably have your 2-way command create a file in the outbound queue for NowSMS, and let NowSMS send it.

Basically, NowSMS just continuously scans the MMSCOUT directory for files with a ".rfc" extension. And it assumes they are e-mail messages, and routes them to the configured SMTP relay host.

When NowSMS routes a message to a "mailto:" link, it is really just creating a simple text file in this MMSCOUT directory, with the following content:

To: recipientaddress@domain
From: phonenumber@smsdomain
Subject: SMS
Content-type: text/plain; charset="utf-8"
(blank line)
SMS message text

It wouldn't be that difficult to perform that same action within your script, so that you could update a log, and send out the e-mail.

-bn