Hi,
Kannel is not reffered as "Client". It is a gateway, or more correctly an
ESME (read SMPPBox User's guide). And yes, smppbox can send SMS to a
bearerbox.
BR,
Nikos
----- Original Message -----
From: ishagh ouldbah
To: [email protected] ; Rene Kluwen
Sent: Sunday, July 11, 2010 6:40 PM
Subject: RE: kannel as smpp server
Hi Rene
to be more clear I mean by client a kannel gateway
so I repeat my question
can I send from smppbox to a client
Regards
--- On Sun, 7/11/10, Rene Kluwen <[email protected]> wrote:
From: Rene Kluwen <[email protected]>
Subject: RE: kannel as smpp server
To: "'ishagh ouldbah'" <[email protected]>, [email protected]
Date: Sunday, July 11, 2010, 6:51 AM
Smppbox sends from smsc to client.
Not from another smppbox to client.
== Rene
From: ishagh ouldbah [mailto:[email protected]]
Sent: zondag 11 juli 2010 12:47
To: [email protected]; Rene Kluwen
Subject: RE: kannel as smpp server
You mean smppbox cannot send to client?
--- On Sat, 7/10/10, Rene Kluwen <[email protected]> wrote:
From: Rene Kluwen <[email protected]>
Subject: RE: kannel as smpp server
To: "'ishagh ouldbah'" <[email protected]>, [email protected]
Date: Saturday, July 10, 2010, 10:20 AM
Here you are sending a message from smppbox to bearerbox.
You are sending to number 1234, and it does.
In case you want this message to be re-routed to another smppbox, then you
are out of luck. It doesn’t work.
== Rene
From: ishagh ouldbah [mailto:[email protected]]
Sent: zaterdag 10 juli 2010 18:43
To: [email protected]; Rene Kluwen
Subject: RE: kannel as smpp server
Hi
this is what i get when sending msg
smppbox
2010-07-10 16:36:55 [19026] [6] DEBUG: SMPP[VMA]: Got PDU:
2010-07-10 16:36:55 [19026] [6] DEBUG: SMPP PDU 0xb6903580 dump:
2010-07-10 16:36:55 [19026] [6] DEBUG: type_name: submit_sm
2010-07-10 16:36:55 [19026] [6] DEBUG: command_id: 4 = 0x00000004
2010-07-10 16:36:55 [19026] [6] DEBUG: command_status: 0 = 0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: sequence_number: 28 = 0x0000001c
2010-07-10 16:36:55 [19026] [6] DEBUG: service_type: NULL
2010-07-10 16:36:55 [19026] [6] DEBUG: source_addr_ton: 1 = 0x00000001
2010-07-10 16:36:55 [19026] [6] DEBUG: source_addr_npi: 1 = 0x00000001
2010-07-10 16:36:55 [19026] [6] DEBUG: source_addr: "**********"
2010-07-10 16:36:55 [19026] [6] DEBUG: dest_addr_ton: 2 = 0x00000002
2010-07-10 16:36:55 [19026] [6] DEBUG: dest_addr_npi: 1 = 0x00000001
2010-07-10 16:36:55 [19026] [6] DEBUG: destination_addr: "1234"
2010-07-10 16:36:55 [19026] [6] DEBUG: esm_class: 3 = 0x00000003
2010-07-10 16:36:55 [19026] [6] DEBUG: protocol_id: 0 = 0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: priority_flag: 0 = 0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: schedule_delivery_time: NULL
2010-07-10 16:36:55 [19026] [6] DEBUG: validity_period: NULL
2010-07-10 16:36:55 [19026] [6] DEBUG: registered_delivery: 0 = 0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: replace_if_present_flag: 0 =
0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: data_coding: 0 = 0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: sm_default_msg_id: 0 = 0x00000000
2010-07-10 16:36:55 [19026] [6] DEBUG: sm_length: 2 = 0x00000002
2010-07-10 16:36:55 [19026] [6] DEBUG: short_message: "AK"
2010-07-10 16:36:55 [19026] [6] DEBUG: SMPP PDU dump ends.
bearerbox
2010-07-10 16:34:44 Sent SMS [SMSC:abcd] [SVC:] [ACT:] [BINF:] [FID:]
[META:] [from:+2226362465] [to:1234] [flags:-1:0:-1:0:0] [msg:2:AK] [udh:0:]
But no messages transmited to the client
Regards
--- On Fri, 7/9/10, Rene Kluwen <[email protected]> wrote:
From: Rene Kluwen <[email protected]>
Subject: RE: kannel as smpp server
To: "'ishagh ouldbah'" <[email protected]>, [email protected]
Date: Friday, July 9, 2010, 1:47 PM
Smsbox-route should be part of bearerbox config, and not of smsbox.conf.
But since you include this file that should not be the real problem.
Maybe you can post more of bearerbox log as well as smppbox log? So we can
nail this problem down.
If what you posted below is something of your smppbox.log then bearerbox
routing seems to be okay.
== Rene
From: ishagh ouldbah [mailto:[email protected]]
Sent: vrijdag 9 juli 2010 21:27
To: Rene Kluwen; [email protected]
Subject: Re: kannel as smpp server
It is VMA in my smpplogins.txt
However My client is connected to me and I have no problem with that
My client can send sms to me
my only problem is that I can not send sms to my client
Regards
From: Rene Kluwen <[email protected]>
To: ishagh ouldbah <[email protected]>; [email protected]
Sent: Fri, July 9, 2010 7:02:55 PM
Subject: RE: kannel as smpp server
Take a look at the following:
group = smsbox-route
smsbox-id = VMA
smsc-id = l7
The smsbox-id shouldn’t necessarily be �VMA� but rather the
system-type that is declared in your /root/smpplogins.txt.
== Rene
From: ishagh ouldbah [mailto:[email protected]]
Sent: vrijdag 9 juli 2010 18:37
To: [email protected]; Rene Kluwen
Subject: RE: kannel as smpp server
Hi these are my configurations
group = core
dlr-storage = mysql
admin-port = 13000
smsbox-port = 13001
admin-password = ******
status-password = ******
log-file = "/var/log/kannel/bearerbox-smpp.log"
access-log = "/var/log/kannel/bearerbox-smpp.access"
box-allow-ip = "*.*.*.*"
include = "/etc/kannel/smsc.conf"
include = "/etc/kannel/smsbox.conf"
#include = "/etc/kannel/smppbox.conf"
group = sendsms-user
username="user"
password="password"
############SMSC##################
############Motorola################
group = smsc
smsc = at
smsc-id = l7
modemtype = Motorola
device = /dev/ttyUSB0
speed = 9600
sms-center = +2226398000
sim-buffering = true
group = modems
id = Motorola
name = "Motorola"
#init-string = "AT+CGDCONT=1"
init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
#need-sleep = true
#enable-mms = true
speed = 9600
##############smsbox#############
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
log-file = "/var/log/kannel/smsbox.log"
log-level = 1
access-log = "/var/log/kannel/smsbox.access"
mo-recode = true
group = smsbox-route
smsbox-id = VMA
smsc-id = l7
####################smppbox######################
# sample smppbox.conf
group = core
dlr-storage = mysql
# this group defines your smppbox
group = smppbox
# our boxc type
smppbox-id = abcd
# the port to listen on for smpp connections
smppbox-port = 16000
# we connect to the following host as a box
bearerbox-host = localhost
bearerbox-port = 13001
log-level = 0
log-file = /var/log/kannel/smppbox.log
our-system-id = VMA
route-to-smsc = l7
# see sample smpplogins.txt
smpp-logins = "/root/smpplogins.txt"
--- On Fri, 7/9/10, Rene Kluwen <[email protected]> wrote:
From: Rene Kluwen <[email protected]>
Subject: RE: kannel as smpp server
To: "'ishagh ouldbah'" <[email protected]>, [email protected]
Date: Friday, July 9, 2010, 5:40 AM
Could you post your configuration?
From: ishagh ouldbah [mailto:[email protected]]
Sent: vrijdag 9 juli 2010 14:28
To: [email protected]; Rene Kluwen
Subject: RE: kannel as smpp server
Hi Rene
This solved one part of the problem
msgs coming from client go via the modem to their destination, good
but messages coming to the modem are not forwarded to the client
in smpp server log i see somthing like
2010-07-09 12:11:59 Receive SMS [SMSC:l7] [SVC:] [ACT:] [BINF:] [FID:]
[META:] [from:+**********] [to:1234] [flags:-1:0:-1:0:-1] [msg:7:Test]
[udh:0:]
why do i get always [to:1234] and what does it mean
can i replace it with the ip address of the client
Regads
--- On Thu, 7/8/10, Rene Kluwen <[email protected]> wrote:
From: Rene Kluwen <[email protected]>
Subject: RE: kannel as smpp server
To: "'ishagh ouldbah'" <[email protected]>, [email protected]
Date: Thursday, July 8, 2010, 6:03 AM
In your group = smppbox, include:
route-to-smsc = (your smsc, type=modem).
And also:
group = smsbox-route
smsbox-id = system-type of smppbox-user
smsc-id = (your smsc, type = modem)
Something like this.
From: ishagh ouldbah [mailto:[email protected]]
Sent: donderdag 8 juli 2010 14:30
To: [email protected]; Rene Kluwen
Subject: RE: kannel as smpp server
thans but the userguid does not contain any thing about smppbox
my question is does smppbox send msgs coming to it from
bearerbox to connected client
Regards
--- On Wed, 7/7/10, Rene Kluwen <[email protected]> wrote:
From: Rene Kluwen <[email protected]>
Subject: RE: kannel as smpp server
To: "'ishagh ouldbah'" <[email protected]>, [email protected]
Date: Wednesday, July 7, 2010, 11:11 AM
I would suggest reading the users’ manual a little bit and maybe also the
architecture document.
http://www.kannel.org/download/1.4.3/userguide-1.4.3/userguide.html
If you have specific questions that are not covered there, you can post them
here.
== Rene
From: [email protected] [mailto:[email protected]] On Behalf
Of ishagh ouldbah
Sent: woensdag 7 juli 2010 19:04
To: [email protected]
Subject: kannel as smpp server
Hi all
I want to run kannel as smpp server
I have two question regarding this
My situation is
I recieve sms on a modem and forward it to smpp client and vice versa
I know that I can tell smppbox to forward to the modem but how to tell the
modem to forward to smppbox
How would I keep truck of messages passing through my server
And finally, I recive sms in binary format would it be transfered in the
same format and how to add udh to it
Regards