Hi MU,

Have you tried telnet-ing *My-smsc* on that port? Seems like its not
connecting at all.

MO


On Fri, Apr 4, 2014 at 6:35 AM, Mashed Updata <mashed.upd...@gmail.com>wrote:

> Hi All,
>
> It's been a while since I used Kannel (6 years to be exact) but I jumped
> back into it this week.
>
> I've installed Kannel ver 1.4.3 on my Debian 3.2.46 Kernel server using
> apt-get and I was initialising it using the /etc/init.d services method but
> are currently testing using ./bearerbox & ./smsbox command strings.
>
> My modem is a Siemens MC35i GSM/GPRS modem that is connected via RS232 on
> /dev/ttyS0.
>
> I can execute both the bearerbox (first) and then the smsbox, with no
> error return until I attempt to send an SMS using the following HTTP string:
>
>
> http://192.168.1.110:13011/cgi-bin/sendsms?username=kannel&password=tunnel&to=+1212345678&text=TestTestTest
>
> which produces a: 3 Accepted for delayed delivery. I have combed the Users
> @ Kannel mail archives, Google Groups but thought I'd ask here before I
> waste too much more time.
>
> *This was my last "status" message before sending:*
>
> Kannel bearerbox version `1.4.3'. Build `Jun 9 2012 16:51:09', compiler
> `4.7.0'. System Linux, release 3.2.0-4-686-pae, version #1 SMP Debian
> 3.2.46-1+deb7u1, machine i686. Hostname debser10.housenet, IP 127.0.1.1.
> Libxml version 2.8.0. Using OpenSSL 1.0.1c 10 May 2012. Compiled with MySQL
> 5.5.24, using MySQL 5.5.35. Using SQLite 3.7.12.1. Using native malloc.
>
> Status: running, uptime 0d 0h 8m 40s
>
> WDP: received 0 (0 queued), sent 0 (0 queued)
>
> SMS: received 0 (0 queued), sent 0 (1 queued), store size -1
>
> 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
>
> Box connections:
>     smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 8m 11s)
>
> SMSC connections:
>     *unknown*    FAKE:10000 (connecting, rcvd 0, sent 0, failed 0, queued
> 0 msgs)
>     *My-smsc*    SMPP:192.168.1.110:6000/6000:kannel:smpp (re-connecting,
> rcvd 0, sent 0, failed 0, queued 0 msgs)
>
> *This is my current kannel.conf, sorry it's a monster:*
> ##
> ## Sample configuration file for Kannel bearerbox on Debian.
> ## See the documentation for explanations of fields.
> ##
> ## HTTP administration is disabled by default. Make sure you set the
> ## password if you enable it.
>
> *## Core configuration*
> group = core
> admin-port = 13000
> smsbox-port = 13001
> wapbox-port = 13004
> dlr-storage = internal
> # admin-port-ssl = yes
> admin-password = hack
> status-password = check
> # admin-deny-ip = "*.*.*.*"
> # admin-allow-ip = "127.0.0.1;192.168.1.*"
> # box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1;192.168.1.*"
> wdp-interface-name = "*"
> access-log = "/var/log/kannel/access-bearer.log"
> log-level = 1
> sms-incoming-queue-limit = 50
> # white-list = "whitelist.txt"
> # black-list = "blacklist.txt"
>
> *## WAPBOX Group configuration*
> group = wapbox
> bearerbox-host = debser10
> log-file = "/var/log/kannel/wapbox.log"
> log-level = 0
> syslog-level = none
> # access-log = "wapbox.txt"
> # access-log-clean = yes
> # smart-errors = yes
> # wml-strict = yes
> # http-timeout = "60"
>
> *## SMSBOX Group configuration*
>
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13011
> global-sender = 13011
> sendsms-chars = "0123456789 +-"
> log-file = "/var/log/kannel/smsbox.log"
> log-level = 0
> access-log = "/var/log/kannel/access-smsbox.log"
>
> *## SMSBOX Routing configuration*
> group = smsbox-route
> smsbox-id = My-smsc
> smsc-id = My-smsc
> shortcode = "021;0210;0211;0212;0274;0279"
>
> *## SMS Service Group configuration*
> group = sms-service
> keyword = default
> catch-all = true
> concatenation = true
> get-url = "http://192.168.1.110/receive?phone=%p&text=%a";
>
> *## FakeSMSC configuration*
> group = smsc
> smsc = fake
> port = 10000
>
> *## SMSC Group configuration from
> https://www.mail-archive.com/users@kannel.org/msg21865.html
> <https://www.mail-archive.com/users@kannel.org/msg21865.html>*
> group = smsc
> smsc = smpp
> smsc-id = My-smsc
> host = 192.168.1.110
> port = 6000
> transceiver-mode = true
> smsc-username = kannel
> smsc-password = tunnel
> system-type = smpp
> log-file = "/var/log/kannel/my-smsc.log"
> log-level = 0
> allowed-smsc-id = my-smsc
>
> *## Siemens Modem configuration*
> group = modems
> id = siemens_mc35i
> name = "siemens_mc35i"
> detect-string = "SIEMENS"
> detect-string2 = "MC35i"
> init-string = "AT+CNMI=1,2,0,1,1"
> enable-hwhs = "AT\\Q3"
> speed = autodetect
> # need-sleep = true
>
> *Last 20 lines: /var/log/kannel/my-smsc.log:*
>
> 2014-04-04 04:23:37 [4372] [7] ERROR: System error 111: Connection refused
> 2014-04-04 04:23:37 [4372] [7] ERROR: error connecting to server
> `192.168.1.110' at port `6000'
> 2014-04-04 04:23:37 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> server.
> 2014-04-04 04:23:37 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> SMS center (retrying in 10 seconds).
> 2014-04-04 04:23:47 [4372] [7] ERROR: connect failed
> 2014-04-04 04:23:47 [4372] [7] ERROR: System error 111: Connection refused
> 2014-04-04 04:23:47 [4372] [7] ERROR: error connecting to server
> `192.168.1.110' at port `6000'
> 2014-04-04 04:23:47 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> server.
> 2014-04-04 04:23:47 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> SMS center (retrying in 10 seconds).
> 2014-04-04 04:23:57 [4372] [7] ERROR: connect failed
> 2014-04-04 04:23:57 [4372] [7] ERROR: System error 111: Connection refused
> 2014-04-04 04:23:57 [4372] [7] ERROR: error connecting to server
> `192.168.1.110' at port `6000'
> 2014-04-04 04:23:57 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> server.
> 2014-04-04 04:23:57 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> SMS center (retrying in 10 seconds).
> 2014-04-04 04:24:07 [4372] [7] ERROR: connect failed
> 2014-04-04 04:24:07 [4372] [7] ERROR: System error 111: Connection refused
> 2014-04-04 04:24:07 [4372] [7] ERROR: error connecting to server
> `192.168.1.110' at port `6000'
> 2014-04-04 04:24:07 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> server.
> 2014-04-04 04:24:07 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> SMS center (retrying in 10 seconds).
> 2014-04-04 04:24:17 [4372] [7] ERROR: connect failed
> 2014-04-04 04:24:17 [4372] [7] ERROR: System error 111: Connection refused
> 2014-04-04 04:24:17 [4372] [7] ERROR: error connecting to server
> `192.168.1.110' at port `6000'
> 2014-04-04 04:24:17 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> server.
> 2014-04-04 04:24:17 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> SMS center (retrying in 10 seconds).
> 2014-04-04 04:24:27 [4372] [7] ERROR: connect failed
> 2014-04-04 04:24:27 [4372] [7] ERROR: System error 111: Connection refused
> 2014-04-04 04:24:27 [4372] [7] ERROR: error connecting to server
> `192.168.1.110' at port `6000'
> 2014-04-04 04:24:27 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> server.
> 2014-04-04 04:24:27 [4372] [7] ERROR: SMPP[My-smsc]: Couldn't connect to
> SMS center (retrying in 10 seconds).
> 2014-04-04 04:24:32 [4372] [7] DEBUG: Thread 7
> (gw/smsc/smsc_smpp.c:io_thread) terminates.
>
> Thanks in advance, MU.
>

Reply via email to