Hi, not possible with default Kannel, Kannel can't act as a SMPP server. Anyhow, there's some commercial modules which makes that possible.
-- Henri Hovi http://www.patidure.com http://patidure.blogspot.com On Wed, Sep 2, 2009 at 11:33 AM, Elf<[email protected]> wrote: > I'm trying to configure kannel services testing platform. Our company > need to provide SMPP-interface (it's http-smpp-http gate) for our > partners and we need to test it before. > > So, I tried to set up two kannels (on different machines) in order to > have such configuration > > processor1 (smsbox1 + smsservice1) ----> kannel1 -----------> smpp > -------> kannel2 -----> smsbox2+smsservice2 (processor2) > > So, i suppose next algorithm: > 1. Processor1 initiates HTTP-request ("incoming message") on smsbox1 to > kannel1 > 2. Kannel1 send this message to kannel2 via SMPP > 3. Kannel2 initiates HTTP-request to processor2 (via smsservice2) > 4. Processor2 sends reply via smsbox2 to kannel2 > 5. Kannel 2 sends this messages via SMPP to kannel1 > 6. Kannel 1 sends HTTP-request to processor1 via smsservice1 > > Is it possible at all? > > For now, i have configuration (kannel1 and kannel2 has almost the same > configs, differs only in handlers on smsservice) > > kannel.conf > ================================== > group = core > admin-port = 13000 > smsbox-port = 13001 > admin-password = bar > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1" > #smsbox-port = 13001 > wdp-interface-name = "*" > #log-file = "/var/log/kannel/bearerbox.log" > #box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > > > group = smsc > smsc = smpp > host = 1.2.3.4 > port = 2001 > transceiver-mode = 1 > #receive-port = 2001 > smsc-username = "user" > smsc-password = "password" > system-type = "KANNEL" > address-range = "" > source-addr-ton = 0 > source-addr-npi = 1 > dest-addr-ton = 1 > dest-addr-npi = 1 > > > group = smsbox > bearerbox-host = localhost > bearerbox-port = 13001 > sendsms-port = 13013 > sendsms-chars = "0123456789+" > access-log = "/var/log/kannel/sms-access.log" > #log-file = "/var/log/kannel/smsbox.log" > #log-level = 0 > > > group = sms-service > keyword = serv > get-url = "http://1.2.3.4:8040/service/serv/?from=%p&keyword=%a&to=%P&time=%t" > ==================================== > > After start kannels on both hosts, i give such repeated messages: > ============== > 2009-09-02 11:31:33 [25681] [6] ERROR: System error 111: Connection refused > 2009-09-02 11:31:33 [25681] [6] ERROR: error connecting to server > `1.2.3.4` at port `2001' > 2009-09-02 11:31:33 [25681] [6] ERROR: > SMPP[SMPP:1.2.3.4:2001/2001:user:KANNEL]: Couldn't connect to server. > 2009-09-02 11:31:33 [25681] [6] ERROR: > SMPP[SMPP:1.2.3.4:2001/2001:user:KANNEL]: Couldn't connect to SMS > center (retrying in 10 seconds). > 2009-09-02 11:31:43 [25681] [6] ERROR: connect failed > ============== > > So, SMPP interconnection doesn't work. Each kannel listens on ports > 13000 and 13001. But none kannels gets listen on 2001 to initiate > SMPP, so I receive those log messages. > I think, something is wrong in configuration or my brain. > Can anyone help me? > > -- > ---------------- > Best regards > Elf > mailto:[email protected] >
