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
run script on message received
sp_NewPost Add Reply sp_NewTopic Add Topic
March 1, 2014
9:36 pm
Henk Helmantel
Admin
Forum Posts: 1515
Member Since:
May 28, 2013
sp_UserOfflineSmall Offline

Hello Wiebe,

There are two ways to forward SMS messages from Diafaan SMS Server to a PHP script. The easiest way is to use the Web Connector to forward all incoming messages to your script with an HTTP GET or POST call. The Web Connector also has an option to send the response of the PHP script back to the sender of the message.

Another way is to use the SQL Connector to store the incoming messages in a common database table of your database and use a PHP script to get and process the messages. However, to accomplish this you need to call the PHP script regularly with a cron job and therefore there will be a delay in the handling of received messages.

Regards, Henk

March 1, 2014
4:21 pm
Wiebe
Guest
Guests

hi there,

I want to run a PHP script to process the message (filter message content on keywords, ...) once a message has arrived.
What would be the best approach?

Thanks,

Wiebe

Forum Timezone: Europe/Amsterdam

Most Users Ever Online: 529

Currently Online:
2 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

Member Stats:

Guest Posters: 681

Members: 0

Moderators: 0

Admins: 1

Forum Stats:

Groups: 2

Forums: 3

Topics: 1159

Posts: 3956

Newest Members:

, Henk Helmantel

Administrators: Henk Helmantel: 1515