2-way sms not working properly

2-way sms not working properly SearchSearch
Author Message
Steve Staples
New member
Username: Sstaples

Post Number: 5
Registered: 05-2018
Posted on Tuesday, December 14, 2021 - 09:49 pm:   

I just downloaded and installed the Linux (terminal) version of NowSMS for testing before I upgrade. I installed apache2, and PHP8.1 as my scripts run with PHP. When I configure the 2-way to run, it returns a URL link, and not the actual output.

My PHP code looks like this:
<?php
header("Content-Type: text/plain; charset=UTF-8");
echo "output: " . $_GET['Text'];

and my configuration in NowSMS is as follows:
Keyword: status
Apply to Route: (all)
Process HTTP Command
- url: http://localhost/sms/status
- format: get
- template: From=@@SENDER@@&To=@@RECIP@@&Text=@@FULLSMS@@&DateTime=@@MSGDATE@@@@MSGTIME@@@@RECEIPTVARS@@
Reply to sender with response from HTTP Command

When I go to the url directly, it shows me what I want to see... but when I send a status text, it returns back a url with exactly as it was sent.
This works perfectly fine on the older version, but this one is not working.
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8465
Registered: 10-2002
Posted on Tuesday, December 14, 2021 - 10:39 pm:   

Hi Steve,

That is odd. I can see that the HTTP request is actually processed by NowSMS, but instead of replying with the text parsed from the response, the raw URL is returned.

That is a bug in the current version.

We've prepared an update to fix this. To download it, edit SMSGW.INI (scroll down to "Advanced Settings" at the bottom of the "System Configuration" page), and under the [SMSGW] header, add:

UpdateChannel=beta

Refresh the "System Configuration" page (this may need to be refreshed several times), and a button should appear near the top of the page with an option to apply an update to fix this problem.

Regards,

Bryce Norwood
NowSMS Support
Steve Staples
New member
Username: Sstaples

Post Number: 6
Registered: 05-2018
Posted on Wednesday, December 15, 2021 - 01:24 pm:   

Thank you very much! this works now! Are there any other changes that were made to the beta update channel?
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 8466
Registered: 10-2002
Posted on Wednesday, December 15, 2021 - 08:05 pm:   

Hi Steve,

That is the only change in this particular update. We will shortly be updating the standard release channel with this version.

I would suggest removing that "UpdateChannel=beta" setting to avoid being prompted to download future pre-release versions.

Regards,

Bryce Norwood
NowSMS Support

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: