2-way sms

2-way sms SearchSearch
Author Message
Taavi
New member
Username: Elderone

Post Number: 1
Registered: 04-2006
Posted on Thursday, April 27, 2006 - 06:44 am:   

Is there way in your SMS/MMS gateway program under 2-way sms tab to pass "binary" parameter to external script? I mean something like @@SENDER@@ parameter...

Thanks!
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5846
Registered: 10-2002
Posted on Thursday, April 27, 2006 - 07:12 pm:   

Yes, see http://support.nowsms.com/discus/messages/1/12414.html.
Terri O'Sullivan
New member
Username: Terri

Post Number: 3
Registered: 04-2006
Posted on Tuesday, May 16, 2006 - 11:44 am:   

A separate 2-way problem.
I have set up a command to make a HTTP request to a separate web server, something like this:

https://the server/handlereceivedmsg.php?from=@@SENDER@@&msg=@@FULLSMS@@&date=@@MSGDATE@@&ti me=@@MSGTIME@@&to=@@RECIP@@&id=@@MESSAGEID@@

When it runs, I can see from the log file that the SSL connection is failing:

RetrieveURL: SSL_connect: Error 140770FC making SSL connection

I can change to http but the server issues a redirect to the https, leading to the same problem.

I found an archive posting about the same problem but it didn't get resolved:
http://support.nowsms.com/discus/messages/1/4629.ht ml

Any suggestions? I can access the URL fine through a browser on the same pc.

Another related questions:
Looking at the log file, it seems NowSMS keeps retrying the command.
Is there a configuration setting to control the number of retries?

Would appreciated some help with figuring out the SSL problem.

Thanks.
Terri O'Sullivan
New member
Username: Terri

Post Number: 4
Registered: 04-2006
Posted on Tuesday, May 16, 2006 - 06:54 pm:   

FYI...in relation to my above post.
I tried requesting the same URL with Curl, from command line. It works ok i.e. no SSL connect error.

Which might or might not be relevant...

If anyone has any suggestions, I'd really appreciate them...working to a tight deadline!}}
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5931
Registered: 10-2002
Posted on Tuesday, May 16, 2006 - 08:29 pm:   

Hi Terri,

I don't see the connection between the problem that you are experiencing and the other thread that you reference. In that thread, there seemed to be some confusion over the fact that any script needs to be installed on a separate web server.

In your case, it seems that we are not able to make an SSL connection to your web server.

It looks like there may be a small bug in that the routine that is evaluating 2-way URLs does not default to port 443 for an SSL request.

If you change it to https://the server:443/handlereceivedmsg.php?from=@@SENDER@@&msg=@@FULLSMS@@&date=@@MSGDATE@ @&time=@@MSGTIME@@&to=@@RECIP@@&id=@@MESSAGEID@@

... then I believe this will correct the problem.

Regarding the retries on the 2-way commands, if there is a connectivity problem, the retries are indefinite.

-bn
Terri O'Sullivan
New member
Username: Terri

Post Number: 5
Registered: 04-2006
Posted on Tuesday, May 16, 2006 - 09:44 pm:   

OK, thanks for that...will try it and post back here if it works (or doesn't, but I expect it will
:-).

Sorry about the link - there was another one and I copied the wrong link. This is the one I meant:

http://support.nowsms.com/discus/messages/1/4629.html
and there's a similar one at:
http://support.nowsms.com/discus/messages/1/3991.html


Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 5946
Registered: 10-2002
Posted on Wednesday, May 17, 2006 - 08:11 pm:   

Let me know if that fixes it. I think it will.
Terri O'Sullivan
New member
Username: Terri

Post Number: 6
Registered: 04-2006
Posted on Thursday, May 18, 2006 - 11:49 pm:   

Yes, it did fix it.

Thanks.