Sending SMS
HSNM Hardware and VM configurations. Sms, Email, Backup, Database

Rate this topic
   Post Reply
24 posts
infosey
Posts: 157
Joined: 30 May 2018, 10:45

Re: Sending SMS

by infosey » 06 Mar 2020, 10:41

http://panel.[here the domain]/lib_sending.ws?url=enviaSMS&sms=%Message%&destino=%Number%

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: Sending SMS

by HSNMSupport » 06 Mar 2020, 10:45

http://panel.[here the domain]/lib_sending.ws?url=enviaSMS&sms=%Message%&destino=%Number%
Can you please try %NumberNoIntPrefixZero% instead of %Number% ?
Thank you

infosey
Posts: 157
Joined: 30 May 2018, 10:45

Re: Sending SMS

by infosey » 06 Mar 2020, 11:42

If I try that I get 34 instead 0034, but I still get country code.

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: Sending SMS

by HSNMSupport » 06 Mar 2020, 12:49

If I try that I get 34 instead 0034, but I still get country code.
Hi,
sorry for TYPO. From the manual you can see this:

%NumberNoIntPrefix% (number without international country calling code)

Please try this one.
You do not have the required permissions to view the files attached to this post.

infosey
Posts: 157
Joined: 30 May 2018, 10:45

Re: Sending SMS

by infosey » 06 Mar 2020, 13:48

capture.png
I also could see that the user and password is not sent. Only the post items.
What about the username and password? they are not sent.

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: Sending SMS

by HSNMSupport » 06 Mar 2020, 14:42

capture.png
I also could see that the user and password is not sent. Only the post items.
What about the username and password? they are not sent.

have you tried with those two?
You do not have the required permissions to view the files attached to this post.

infosey
Posts: 157
Joined: 30 May 2018, 10:45

Re: Sending SMS

by infosey » 06 Mar 2020, 15:54

have you tried with those two?
Yes, those username and password are configured but not send by HSNM so gateway rejects the query.

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: Sending SMS

by HSNMSupport » 06 Mar 2020, 15:59

have you tried with those two?
Yes, those username and password are configured but not send by HSNM so gateway rejects the query.

Can you please try to leave those two fields empty and insert that two variables by the URL using the variables like my last screenshot?

infosey
Posts: 157
Joined: 30 May 2018, 10:45

Re: Sending SMS

by infosey » 09 Mar 2020, 19:42

Hi!
We are sending as you said both arguments through the URL, as you can see on the screenshot.
Reply that we get is the following one:
POST /lib_sending.ws HTTP/1.1
Host: panel.sendingsms.es
Accept: */*
Content-Length: 251
Content-Type: application/x-www-form-urlencoded

url=enviaSMS&
sms=Ayuntamiento+de+Guadalajara+receives+you.+Thank+you+for+the+subscription+to+the+hotspot+service+Ayuntamiento.+Enter+this+user+name+0034639571213+and+password+SZGH9T.+Best+regards+&destino=639571213&UserName=B80089097&Password=xxxx

Where Password=xxxx is the password in the Gateway Password filed.

And the request is the following:
HTTP/1.1 400 Bad Request
Server: nginx/1.2.1
Date: Mon, 09 Mar 2020 17:34:12 GMT
Content-Type: application/json;charset=utf-8
Transfer-Encoding: chunked
Connection: keep-alive
X-Powered-By: PHP/5.4.36-0+deb7u3

40

{"estado":"error","msg":"Email o contrase\u00f1a incorrectos"}
0

Wait for your reply.
You do not have the required permissions to view the files attached to this post.

HSNMSupport
Posts: 1532
Joined: 26 Jul 2016, 09:16

Re: Sending SMS

by HSNMSupport » 10 Mar 2020, 10:22

Hay you tired to make a test outside HSNM?

I think the problem has origin in the form of the post URL query.

In fact :
{"estado":"error","msg":"Email o contrase\u00f1a incorrectos"}

we think that something is missing or distorted.

Rate this topic

Who is online

Users browsing this forum: No registered users and 5 guests

It is currently 19 Apr 2024, 15:24