Support forum

Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_TopicIcon
Help needed with setting up an API
sp_NewPost Add Reply sp_NewTopic Add Topic
January 28, 2015
3:25 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Thank you for the log. Unfortunately, it does not look like there is something wrong with the settings of the GSM Modem Gateway or the Android phone. The messages are just rejected by your mobile operator for some reason.

It is possible that the messages are rejected because they (or their individual message parts) are sent too fast after each other but it is also possible that there is another restriction in place by your mobile operator.

Regards, Henk

January 28, 2015
10:37 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Can you send the communication log for the GSM Modem Gateway to dms@diafaan.com? You can find instructions on how to create the communication log here. The communication log must include sending at least one message that is longer than 160 characters.

If you are using an Android phone to send the messages, I would like you to set the 'ModemInitializationBeginning' property in the advanced settings of the GSM Modem Gateway to 'AT^LOGLEVEL=3'.

Regards, Henk

January 27, 2015
4:05 pm
Haroon
Guest
Guests

Thanks for your help Henk.

When i send a message which is less than 160 characters it works well. But when its characters are more than 160 it shows this error.

Status 300, Error: Unknown error after PDU sent.
Error : 500, CMS error: Unknown error

If i try to increase the character limit to more than 160 it always shows this error regardless of how many characters are sent.

January 27, 2015
2:36 pm
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Diafaan SMS Server has no built-in functionality to opt-in or opt-out of an SMS contact list. If you want to implement this feature, you have to do it outside Diafaan SMS Server.

In your situation, the best approach might be to use the Web Connector In Diafaan SMS Server to forward the received messages to your web server and implement the opt-out logic on the server.

Regards, Henk

January 27, 2015
1:45 pm
Haroon
Guest
Guests

Henk, Thank you for your helpful reply.

After messing around and watching some tutorials i have got it working with Email. All i need to do now is set up a form on my website to start sending emails to that address.
I have another question before i go ahead and purchase the software. Some people use this to spam or annoy people with unnecessary text messages. For that I have installed an autoreply application on my phone for those saying that if you dont want to receive messages from this number, reply with "Stop". If they reply "Stop" i can somehow find a way to do not send any message to that number again.
Can i do it using Diafaan software to stop sending messages to specific numbers ?

And again thanks for helping me set this up.

January 27, 2015
11:43 am
Henk Helmantel
Admin
Forum Posts: 1488
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Haroon,

It is certainly possible to generate messages on a web server and forward them to Diafaan SMS Server on your PC, but it requires your PC to be accessible from the Internet.

The easiest way to do this is probably the HTTP API of Diafaan SMS Server. This method requires that you expose port 9710 (or any other port number you use) to the Internet.

Another way is to use a common database table between the web server and your PC but that only works if the database is accessible from both your web server as your local PC.

A third possibility is to send the messages from your web server to an email address with a POP3 account. The Email Connector in Diafaan SMS Server can periodically check the POP3 box for new messages and send them out using the Android phone.

If you have difficulty to set up a system like this it is probably a good idea to hire a web programmer with some experience in two-way communication between a web server and a local PC.

Regards, Henk

January 27, 2015
10:44 am
Haroon
Guest
Guests

Hello,

I am using a sms gateway service API to send sms messages from my web2sms website. But they are way too expensive and i am barely able to afford them.
I was wondering if could replace them with Diafaan SMS software. I have downloaded the trial version and connected my android phone with it after installing the android app on my phone. Now i am able to send sms from my PC to any mobile phone. Is there a way i can connect this software to my website and use my PC to act as its gateway ? If yes, then is there a manual for this because i am really new to all this stuff and would really appreciate any help from you guys.

I am using this code provided by my SMS gateway service to use on my website : http://mysmsserive.com/plain?username=user&password=pass&to=923315803783&from=sender&message=this+is+plain+api

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
7 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 672

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1141

Posts: 3899

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1488