Problem configure http conection

Problem configure http conection SearchSearch
Author Message
Luciano Blanquero
New member
Username: Blanquero

Post Number: 1
Registered: 08-2008
Posted on Saturday, August 16, 2008 - 08:06 pm:   

Hello Bryce;

We must put a sms system at our enterprise and we are interested in the NOW SMS because it seems to be very professional.

Before, we have downloaded the trial to prove it and we have some problems.

We are using a http connection of clickatell and the configuration is the following:



-Hostname - api.clickatell.com
-Port: 80
-Use HTTP proxy - Unmarked
-Use SSL - unmarked
-Username - Blank
-Password - Blank
-Send login credentials using HTTP headers - Unmarked


-URL Template Text:
/http/sendmsg?api_id=XXXXXXXXX&user=XXXXXXXXX&password=XXXXXXXXX&to=@@PhoneNumbe r@@&text=@@Text@@

-URL Template Binary:
/http/sendmsg?api_id=XXXXXXXXX&user=XXXXXXXXX&password=XXXXXXXXX&to=@@PhoneNumbe r@@&udh=@@UDH@@&text=@@Text@@


-Sender address - Blank
-Remove "+" from Recipent Phone number - unmarked
-Send ling messages witout segmentation - unmarked
-Use 7-bit binary enconding......... - marked
-Use hex encoding for Unicode ........ - marked
-Character Set utf-8
-Max Connections -1
-Support any outbond message traffic - marked
-Preferred SMSC connection - Blank

I have configurated the firewall and router server the ports: 80 and 8800.
I have conected sucefully to the nowsms from a external computer: (http://nameofdomain:8800)
I have put sucefully the login credentials for an sms user
I have selected "Send Text Message"
I have put the phone number and the sms text
I have pushed Submit


It appears as sended, but the sms dont arrive and at the clickatell´s page the credit is the same.

I have put the username, password, api_id at a php api and its work correctly on a FTP server but at the nowsms don´t work.


We must put working the sms system in our enterprise the next week.

I would like to solve this problem before buying the licence

Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 3
Registered: 08-2008
Posted on Tuesday, August 19, 2008 - 05:12 pm:   

Hi Luciano,

As a starting point, what do you see in the SMSOUT-yyyymmdd.LOG file?

This should provide some more information about the HTTP error code that is occurring when NowSMS tries to submit the message.

To get a more complete picture of what is happening, go to the "Serial #" page of the configuration, and enable the SMSDEBUG.LOG.

Then try submitting another message, and afterward, view the SMSDEBUG.LOG. This will show the URL string that NowSMS is sending to the provider, as well as the error that is being returned back.

Tell me more about what you see there (cut and paste in reply here, and xxxx out the password info), and that should give us a better idea of the problem.

You mention FTP ... is the PHP API that you are also using HTTP based? It is possible that you might need to have the HTTP API enabled for your account with the provider.

--
Des
NowSMS Support
Luciano Blanquero
New member
Username: Blanquero

Post Number: 3
Registered: 08-2008
Posted on Tuesday, August 19, 2008 - 09:04 pm:   

Hello;

At SMSOUT-yyyymmdd.LOG file says:

2008-08-19 21:20:35, 48A711B6.req, 127.0.0.1, XXXXXX,OK--HTTP -api.clickatell.com:80, SubmitUser=john;Text="testtesttest"

I have enabled the SMSDEBUG.LOG and I have sent a new sms. The log is:

21:29:40:531 [0] main: Now SMS/MMS Gateway v2008.06.03 Web server started on port number 8800
21:29:42:531 [2] ThreadProcessModem: HTTP - api.clickatell.com:80
21:29:42:531 [2] SenderAddressOverride: Yes
21:29:43:343 [2] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:50:375 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:29:50:390 [11] ThreadProcessConnection: Processing request /
21:29:50:390 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:50:390 [11] ThreadProcessConnection: Request processing complete
21:29:50:437 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:29:50:453 [12] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:29:50:453 [12] ThreadProcessConnection: Processing request /TOCFrame.htm
21:29:50:453 [12] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:50:453 [11] ThreadProcessConnection: Processing request /Send%20Text%20Message.htm
21:29:50:453 [12] ThreadProcessConnection: Request processing complete
21:29:50:468 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:50:468 [11] ThreadProcessConnection: Request processing complete
21:29:50:484 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:29:50:484 [11] ThreadProcessConnection: Processing request /background.gif
21:29:50:500 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:50:500 [11] ThreadProcessConnection: Request processing complete
21:29:50:500 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:29:50:500 [11] ThreadProcessConnection: Processing request /logo.gif
21:29:50:500 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:50:500 [11] ThreadProcessConnection: Request processing complete
21:29:52:703 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:29:52:703 [11] ThreadProcessConnection: Processing request /AddrBook
21:29:52:718 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:29:52:718 [11] ThreadProcessConnection: Request processing complete
21:30:22:343 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:22:343 [11] ThreadProcessConnection: Processing request /Send%20Text%20Message.htm?PhoneNumber=XXXXXXXXX&Text=hello+world&InfoCharCounte r=&PID=&DCS=&DestPort=&DelayUntil=&Submit=Submit
21:30:22:343 [11] Debug: 1 recipient entries
21:30:22:343 [11] ThreadProcessConnection: Before message loop
21:30:22:343 [11] ThreadProcessConnection: Before message loop
21:30:22:343 [11] ThreadProcessConnection: Begin message loop
21:30:22:406 [11] ThreadProcessConnection: End message loop
21:30:22:406 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:22:406 [11] ThreadProcessConnection: Request processing complete
21:30:22:421 [2] ThreadProcessModem: Processing 48A711B7.req...
21:30:22:812 [2] ThreadProcessModem: GET /http/sendmsg?api_id=XXXXXX&user=XXXXXXX&password=XXXXXX&to=XXXXXX&text=hello%20 world HTTP/1.1
User-Agent: Now SMS/MMS Gateway v2008.06.03
Host: api.clickatell.com
Accept: */*
Connection: close


21:30:23:265 [2] HttpResponseWait: Chunked response Ok
21:30:23:265 [2] ThreadProcessModem: HTTP/1.1 200 OK
Date: Tue, 19 Aug 2008 19:30:25 GMT
Server: Apache/2.2.3 (Red Hat)
X-Powered-By: PHP/5.2.5
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html

ERR: 114, Cannot route message
21:30:23:265 [2] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:37:734 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:37:734 [11] ThreadProcessConnection: Processing request /
21:30:37:750 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:37:750 [11] ThreadProcessConnection: Request processing complete
21:30:37:796 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:37:796 [12] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:37:796 [12] ThreadProcessConnection: Processing request /Send%20Text%20Message.htm
21:30:37:796 [11] ThreadProcessConnection: Processing request /TOCFrame.htm
21:30:37:812 [12] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:37:812 [12] ThreadProcessConnection: Request processing complete
21:30:37:812 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:37:812 [11] ThreadProcessConnection: Request processing complete
21:30:37:875 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:37:875 [11] ThreadProcessConnection: Processing request /background.gif
21:30:37:890 [12] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:37:890 [12] ThreadProcessConnection: Processing request /logo.gif
21:30:37:890 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:37:890 [11] ThreadProcessConnection: Request processing complete
21:30:37:890 [12] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:37:890 [12] ThreadProcessConnection: Request processing complete
21:30:38:656 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:38:656 [11] ThreadProcessConnection: Processing request /
21:30:38:656 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:38:656 [11] ThreadProcessConnection: Request processing complete
21:30:38:703 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:38:703 [11] ThreadProcessConnection: Processing request /TOCFrame.htm
21:30:38:718 [12] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:38:718 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:38:718 [11] ThreadProcessConnection: Request processing complete
21:30:38:718 [12] ThreadProcessConnection: Processing request /Send%20Text%20Message.htm
21:30:38:718 [12] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:38:718 [12] ThreadProcessConnection: Request processing complete
21:30:38:750 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:38:750 [11] ThreadProcessConnection: Processing request /background.gif
21:30:38:750 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:38:750 [11] ThreadProcessConnection: Request processing complete
21:30:38:750 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:38:750 [11] ThreadProcessConnection: Processing request /logo.gif
21:30:38:765 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:38:765 [11] ThreadProcessConnection: Request processing complete
21:30:39:312 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:39:312 [11] ThreadProcessConnection: Processing request /
21:30:39:312 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:39:312 [11] ThreadProcessConnection: Request processing complete
21:30:39:328 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:39:328 [12] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:39:328 [11] ThreadProcessConnection: Processing request /Send%20Text%20Message.htm
21:30:39:328 [12] ThreadProcessConnection: Processing request /TOCFrame.htm
21:30:39:343 [12] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:39:343 [12] ThreadProcessConnection: Request processing complete
21:30:39:343 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:39:343 [11] ThreadProcessConnection: Request processing complete
21:30:39:375 [11] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:39:375 [11] ThreadProcessConnection: Processing request /background.gif
21:30:39:375 [12] ThreadProcessConnection: Processing connection from 127.0.0.1...

21:30:39:375 [12] ThreadProcessConnection: Processing request /logo.gif
21:30:39:375 [12] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:39:375 [12] ThreadProcessConnection: Request processing complete
21:30:39:375 [11] WaitForSocketClose: WinSock reported ioctlsocket complete
21:30:39:375 [11] ThreadProcessConnection: Request processing complete


I said that, If I put the (user/password/api_id) at a PHP API (on a FTP server) works correctly (The sms arrive to the mobile)

But don´t work at Nowsms (At the web, the sms appears as sended, but the sms don´t arrive to the mobile...

I am interesed that it works at Nowsms

I wait your help.
Thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 35
Registered: 08-2008
Posted on Wednesday, August 20, 2008 - 08:31 pm:   

One of the challenges with HTTP based SMSC connections is that there is no standard for how a service provider reports errors.

In the debug log, I can see that when NowSMS submits the message to Clickatell, Clickatell returns an OK response, but with the following text:


quote:

ERR: 114, Cannot route message




Obviously this is an error ... but I don't know what it means in the context of Clickatell's service.

I did check their documentation, however, and found the following explanation of this error code:


quote:

Cannot route message **
This implies that the Clickatell Gateway is not currently routing messages to this network prefix.
Please email support@clickatell.com with the mobile number in question.




You might want to try some direct URL submissions to Clickatell in your browser...

http://api.clickatell.com/http/sendmsg?api_id=XXXXXX&user=XXXXXXX&password=XXXXX X&to=XXXXXX&text=hello%20world

(all of the above should be on one line with no spaces ... replace the XXXX with what is appropriate for your Clickatell account.)

Once you can get that working from your browser, and determine what needs to be changed, that should be enough information to get it working from within NowSMS.

--
Des
NowSMS Support
Luciano Blanquero
New member
Username: Blanquero

Post Number: 4
Registered: 08-2008
Posted on Thursday, August 21, 2008 - 04:15 pm:   

Hello,

I have solucionated the problem.
I send an e-mail to clickatell and the problem was that I didn´t configure the IP Block.

I want now, If I can enable the option "Max message per day" "Max message per month" that appears when I push EDIT USER.

I see a similar box at SMS USER but it affect to all my users.

I want put this data individually. User per user

Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 42
Registered: 08-2008
Posted on Thursday, August 21, 2008 - 06:19 pm:   

Hello again!

That's good news.

To enable the limits, you need to check "Enable message sending limits on user accounts" on the "SMS Users" page of the configuration.

Whatever values you define here will be the DEFAULT settings for all defined user accounts.

Within individual user accounts, it is then possible to either use the default limit, or to set a higher or lower limit for just that account.

--
Des
NowSMS Support
Luciano Blanquero
New member
Username: Blanquero

Post Number: 5
Registered: 08-2008
Posted on Thursday, August 21, 2008 - 07:53 pm:   

Hello;
The option that I want to enable is the next:

Configuration of nowsms

I don´t know activate this. The activation box cannot be marked because it isn´t illuminated

I need help

thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 7656
Registered: 10-2002
Posted on Thursday, August 21, 2008 - 10:36 pm:   

Indeed, that is confusing.

Put in some values for "Max Messages Per Day" and "Max Messages Per Month" no the "SMS Users" page. These values will be used as defaults. And this will then enable the per account settings that can override the defaults for individual accounts.

-bn
Luciano Blanquero
New member
Username: Blanquero

Post Number: 6
Registered: 08-2008
Posted on Thursday, August 21, 2008 - 11:47 pm:   

Hello;

I would like to activate this option for:

User A who have 30 credits can send only 2 sms/day
User B who have 65 credits can send only 9 sms/day
User C who have 90 credits can send only 12 sms/day
User D who have 98 credits can send only 18 sms/day

For it, I want to activate the option that I have surrounded up, in the image

can I do it?

thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 49
Registered: 08-2008
Posted on Friday, August 22, 2008 - 06:14 pm:   

Yes. You can do this.

However, YOU MUST supply default values for "Max Messages Per Day" and "Max Messages Per Month" on the "SMS Users" page.

Put any non-zero value for those fields. For example, 100 and 1000.

The checkbox alone is not enough to enable limits, you must also define default limits. Once default limits are defined, the per-user settings will then be enabled, and you can then define specific limits for individual accounts which override the defaults.

--
Des
NowSMS Support
Luciano Blanquero
New member
Username: Blanquero

Post Number: 7
Registered: 08-2008
Posted on Friday, August 22, 2008 - 08:32 pm:   

Hello;

I have do it, thanks Des.

I have another problem.
Can I change "Now SMS/MMS gateway " that appears at login window, for the name of the platform of my company?

nameentrerprise

I don´t known change it
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 53
Registered: 08-2008
Posted on Monday, August 25, 2008 - 05:59 pm:   

On the "MMSC" page of the configuration, set the "Local Host Name or IP Address" to a valid host name for the server.

This host name will be displayed instead of the text that you are seeing. (Technically it should be a host name that is sent in this authentication request, but if none is configured, we send this text.)

--
Des
NowSMS Support
Luciano Blanquero
New member
Username: Blanquero

Post Number: 8
Registered: 08-2008
Posted on Tuesday, August 26, 2008 - 04:02 pm:   

Ok

Can I put a limit for each user Can send a sms (160 characters)

Actually each user can send sms of 400 characters and I would like put a rectriction for the users. They will be send sms (160 characters/max)

thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 59
Registered: 08-2008
Posted on Tuesday, August 26, 2008 - 06:31 pm:   

No.

But if someone sends a message of 400 characters, that will count against their quota as 3 messages, because that is how many physical SMS are required.

That said ... if you are only using our web forms for submitting messages, I suppose you could edit the HTML Template (Send Text Message.htm) to impose a max length on the textarea part of the form.

That's a little complicated, but if you are so inclined, the following web site has an example of using JavaScript to do this: http://psacake.com/web/js.asp

--
Des
NowSMS Support
Luciano Blanquero
New member
Username: Blanquero

Post Number: 9
Registered: 08-2008
Posted on Wednesday, August 27, 2008 - 11:16 pm:   

ok.

I have put it´s thanks.

But I´m looking for, a php script for my clients.

For configure this script I must put on:

- Hostame: "mydomain.com"
- Username:"the username that I have created at Nowsms sms-users"
- Password:"the client´s password"

I don´t find It, Can you help me to find this php script, ready to work, I will only put (hostame,user,pass)

thanks
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 72
Registered: 08-2008
Posted on Friday, August 29, 2008 - 10:36 pm:   

There's a PHP script here:

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

You pass it the NowSMS server name (or IP address), port number, user account and password, and message text.
Luciano Blanquero
New member
Username: Blanquero

Post Number: 10
Registered: 08-2008
Posted on Saturday, August 30, 2008 - 05:13 pm:   

Hello, I can´t work this file

I am looking for two files:

-Sms.html: Has 2 boxes: number of destination and text.

-Send.php: Contains the hostname, user, password of the now sms gateway

This is send.php (
http://support.nowsms.com/discus/messages/1/867.html ) but I really want the sms.html

Luciano Blanquero
New member
Username: Blanquero

Post Number: 11
Registered: 08-2008
Posted on Monday, September 01, 2008 - 03:57 pm:   

Hello

I found the sms.html. Its work correctly but, when the sms is sended it returns a short information about the account ¿Which parametre I must delete at send.php for it doesn´t return this information?

auth: "my user":"mypass" auth: XXXXXXXXXXXXXXXXXX= HTTP/1.0 403 Forbidden Content-type: text/html Expires: Tue, 01 Jan 1980 1:00:00 GMT Cache-Control: no-cache

This message appears up (close to the send report) when I send a sms and when the accounts credit is 0

thanks
Luciano Blanquero
New member
Username: Blanquero

Post Number: 12
Registered: 08-2008
Posted on Monday, September 01, 2008 - 07:38 pm:   

Hello

I have managed to isolate the problem

How can I modify the page (at Nowsms) where this information goes out?

Error: Message Quota Exceeded

Because at this page also appears :
auth: "my user":"mypass" auth: XXXXXXXXXXXXXXXXXX= HTTP/1.0 403 Forbidden Content-type: text/html Expires: Tue, 01 Jan 1980 1:00:00 GMT Cache-Control: no-cache

If I put a public script php I don´t want that the user and password will be show at the public

How can I edit this page? because I don´t find it

and I don´t find the payment page for buy a licence for NowSMS
Des - NowSMS Support
Board Administrator
Username: Desosms

Post Number: 82
Registered: 08-2008
Posted on Tuesday, September 02, 2008 - 07:28 pm:   

Last question in this thread duplicated here: http://support.nowsms.com/discus/messages/1/24249.html

See response in that thread.