SQL box is a special Kannel box that sits between bearer box and SMS box and uses a database queue to store and forward messages. Messages are queued on a configurable table (defaults to send_sms) and moved to another table (defaults to sent_sms) afterwards.
After installing gateway, we need to compile SQL box.
Steps:
1 - cd to directory where Kannel is unzipped and then type the following commands
2 -Create a file named smsbox.conf and the following configuration
3 - create send_sms table using following sql command
4 - Create sent_sms table using same structure with changing table name
Now start bearerbox and sqlbox using commands
Example
As when you’re using the sendsms interface, you don’t need to specify all the columns in order to succesfully enqueue a message.
Here’s an example query you can use to send a simple message using Sqlbox:
The former example would send a message with text “Hello world” to number “9995323922”. If possible, the sender would be set to “TESTID”.You can add other parameters to specify routing, charset encoding and any other settings your setup may require
If you are keen to learn more about this , Refer Here
After installing gateway, we need to compile SQL box.
Steps:
1 - cd to directory where Kannel is unzipped and then type the following commands
1 2 3 4 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
|
Now start bearerbox and sqlbox using commands
1 2 |
|
As when you’re using the sendsms interface, you don’t need to specify all the columns in order to succesfully enqueue a message.
Here’s an example query you can use to send a simple message using Sqlbox:
1
|
|
If you are keen to learn more about this , Refer Here