In this section we will use example Kannel installation based on Kannel installation on Ubuntu section. And the case study is based on Example Kannel configuration for 2 GSM modems section.
Here are informations related to Kannel from the case study:
- playSMS installed, working properly and accessible from
http://localhost/playsms
- 2 GSM modems configured as 2 SMSCs:
gsm1
andgsm2
- Kannel send SMS username is
playsms
- Kannel send SMS password is
sendpwdnotreal
- Kannel send SMS port is
13131
- Kannel admin and status password is
admpwdnotsafe
- Kannel admin port is
13000
-
Login as admin account to playSMS at
http://localhost/playsms
-
Go to menu
Settings -> Manage gateway and SMSC
-
On tab
Gateways
look forkannel
with descriptionGateway Kannel
and click theEdit
button on the right side (the grind icon) -
Now you are in
Manage kannel
page, fill in options according to your setups, in this section they are according to the case study- Fill option
Username
with Kannel send SMS usernameplaysms
- Fill option
Password
with Kannel send SMS passwordsendpwdnotreal
- Usually you need to select
Yes
to optionIncoming SMS time is in local time
- For now leave the option
Bearerbox hostname or IP
andSend SMS hostname or IP
tolocalhost
- This is because in the case study playSMS URL and Kannel are both accessible from hostname
localhost
- This is because in the case study playSMS URL and Kannel are both accessible from hostname
- Fill option
Send SMS port
with Kannel send SMS port13131
- Usually you want to check all the
Delivery Report
checkboxes - Fill option
playSMS web URL
with the actual URL of installed playSMS, in this case study its accessible fromhttp://localhost/playsms
- Fill option
Kannel admin host
withlocalhost
- Fill option
Kannel admin port
with13000
- Fill option
Kannel admin password
withadmpwdnotsafe
- Click the
Save
button below the page to save the gateway configuration
- Fill option
-
If all good you should see some information in
Kannel status
textarea- You will see nothing if Kannel is not running or not configured properly
- You will see access denied information if the Kannel admin host, port or password does not match
-
Login as admin account to playSMS at
http://localhost/playsms
-
Go to menu
Settings -> Manage gateway and SMSC
-
On tab
Gateways
look forkannel
with descriptionGateway Kannel
and click theAdd
button on the right side (the plus sign icon) -
Now you are in
Add SMSC
page, fill in options according to yourkannel.conf
, in this section they are according to the case study- Fill option
SMSC name
with any 1 word text, but recommended to use the same name as configured inkannel.conf
, so fill it withgsm1
- Fill option
Additional URL parameter
withsmsc=gsm1
- Click the
Save
button below the page to save SMSC configuration - Click the
Back
button to go back toManage gateway and SMSC
page - Add 1 more SMSC, next is to add
gsm2
since we have 2 SMSCs,gsm1
andgsm2
, configured inkannel.conf
- Fill option
-
Go back to
Manage gateway and SMSC
page and then click theSMSCs
tab- You should see that you have added
gsm1
andgsm2
- You should see that you have added
-
You may go to
Settings -> Main configuration
and setDefault SMSC
-
You may then go to
Settings -> Route outgoing SMS
and set route to your SMSCs based on prefix
My recommendation is to set Default SMSC
to blocked
and route outgoing SMS based on prefix to specific SMSC.
You can also use same prefix for multiple SMSCs, and playSMS will choose randomly which SMSC that will be used to deliver SMS when prefix matched.