[solved] Not able to send via smpp with kannel

Hello, I have the same problem of this topic [solved] Playsms 1.3 does not send SMS,

I folllow the 2 links Example-Kannel-configuration-with-SMPP.md and Kannel-for-playSMS.md

and also I’m to send sms via the sendsms page

Any idea please?

Sincerely,

  1. can you access Kannel admin status ? (in Manage gatewat and SMSC -> Kannel ->operational tab)

  2. can you run playsmsd check and see whether daemons are working or not ?

  3. can you make sure that Kannel is running and working properly (by checking open ports netstat -lnptu) ?

anton

From the Manage gateway and smsc > kannel there is no operational tab, there is only edit on kannel to see the parameters.

I’m able to reach the admin via the direct link enquiry and below the result

Kannel bearerbox version 1.4.3'. Build Nov 24 2011 09:54:00’, compiler `4.6.2’. System Linux, release 3.19.0-25-generic, version #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015, machine x86_64. Hostname playsmssvr, IP 127.0.1.1. Libxml version 2.7.8. Using OpenSSL 1.0.0e 6 Sep 2011. Compiled with MySQL 5.5.17, using MySQL 5.5.46. Using SQLite 3.7.9. Using native malloc.
Status: running, uptime 0d 2h 56m 16s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 0 (0 queued), store size 0
SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 0 queued, using internal storage

Here is the result of plasysmsd check

PLAYSMSD_CONF = /etc/playsmsd.conf
PLAYSMS_PATH = /var/www/playsms
PLAYSMS_LIB = /var/lib/playsms
PLAYSMS_BIN = /usr/local/bin
PLAYSMS_LOG = /var/log/playsms
DAEMON_SLEEP = 1
ERROR_REPORTING = E_ALL ^ (E_NOTICE | E_WARNING)
IS_RUNNING =
PIDS schedule =
PIDS dlrssmsd =
PIDS recvsmsd =
PIDS sendsmsd =

netstat-lnptu

Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN 1251/dnsmasq
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 849/sshd
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 2276/cupsd
tcp 0 0 0.0.0.0:13001 0.0.0.0:* LISTEN 1799/smsbox
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1035/mysqld
tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 908/bearerbox
tcp 0 0 0.0.0.0:10001 0.0.0.0:* LISTEN 908/bearerbox
tcp6 0 0 :::22 :::* LISTEN 849/sshd
tcp6 0 0 ::1:631 :::* LISTEN 2276/cupsd
tcp6 0 0 :::80 :::* LISTEN 1478/apache2
udp 0 0 127.0.1.1:53 0.0.0.0:* 1251/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 861/dhclient
udp 0 0 0.0.0.0:631 0.0.0.0:* 911/cups-browsed
udp 0 0 0.0.0.0:5353 0.0.0.0:* 503/avahi-daemon: r
udp 0 0 0.0.0.0:35154 0.0.0.0:* 503/avahi-daemon: r
udp 0 0 0.0.0.0:33635 0.0.0.0:* 861/dhclient
udp6 0 0 :::35969 :::* 861/dhclient
udp6 0 0 :::46280 :::* 503/avahi-daemon: r
udp6 0 0 :::5353 :::* 503/avahi-daemon: r

To see if Kannel status from inside playSMS, go to:

Settings -> Manage gateway and SMSC -> Manage kannel -> Operational

You must see the exact status page just like your direct link

Next, as you can see from playsmsd check, your playSMS daemons weren’t running (PIDS were empty). Make sure they are started, try again, run: playsmsd start and then check again with playsmsd check

your netstat -lnptu shown that your Kannel was running properly (see bearerbox and smsbox both were running).

anton

Hey Anton,

I can confirm that the problem has been solved and I’m able to send and received, I only executed the command playsmsd start instead of playsmsd_start

I have some questions need your answers please

  1. How I can send SMS via API on playsms? I have my thirdparty app and wanna connect to playsms via API
  2. how do I change the sender id? from the compose message the senderid field is disabled and it send from the default defined in the gateway
  3. I have Voice API from provider so can I define it ?
  4. What is the different between Manage SMS Rate and Rate Definition in the Default SMS rate?
  5. How I can Set Special Rate for an Account? I went to the Manage Account but I didn’t found anything related to the sell rate or SMS Rate?
  6. What is the Benefit of Access Control List?

Sincerely,

Hi

It should be playsmsd start not playsmsd_start, unless you’re using older version.

Please use the latest 1.3.1 as new updates and fixes will be based on that.

Anton

Hello Bro,

I’m using the latest version, but during my first installation I follow installation tutorial with an old version, but since I post here I was working with the latest version which 1.3.1 but the old version is still present with _ prefix.

anyway can you answer to the above questions please?

I have some questions need your answers please

  1. How I can send SMS via API on playsms? I have my thirdparty app and wanna connect to playsms via API
  2. how do I change the sender id? from the compose message the senderid field is disabled and it send from the default defined in the gateway
  3. I have Voice API from provider so can I define it ?
  4. What is the different between Manage SMS Rate and Rate Definition in the Default SMS rate?
  5. How I can Set Special Rate for an Account? I went to the Manage Account but I didn’t found anything related to the sell rate or SMS Rate?
  6. What is the Benefit of Access Control List?

Let see…

  1. Read up webservices, browse/search
  2. Theres manage sender ID, try it first, the menu in playSMS is only so much
  3. No
  4. Default is default, it means when you dont provide rate it will be used
  5. You can’t
  6. ACL is to limit access to certain menus for certain users

anton

1 Like

I noticed that the when send SMS the balance is still the same and this is because the rate is 0, now from where I can change the deductible credit in order to reduce from the account? Please note that the sell for customers are different to others.

Is the system use the credit deductible or Money?

change the rate from Settings -> Manage SMS rate, rate based on prefix, rate cannot be set for certain users, its global and its based on prefix

its credit deductible

anton

1 Like

what is the parameter of DLR Mask? what does mean?

I added a sender id for the admin and still when I try to send an SMS it gave the old one, altough the new sender is approved and set as default.

DLR mask, search for dlr-mask in http://kannel.org/download/1.4.1/userguide-1.4.1/userguide.html

where do you set the old one, change that when you found it, see if the sender ID changed

anton

I solved the issue of the Sender ID as I must disable it from the main configuration and gateway configuration in order to be able to use the defined per user.

Anton, I have many idea for you to improve the software, I developed an SMS workflow, the software is perfect and unbelievable but need some enhancement with some features.

great, post some more topics, see if theres anything I can code

anton

1 Like