Sendind message with message_payload

2012-04-04 Thread Artem Chekulaev
How to send long messages as single using message_payload? I tried to
set it in meta-data but it has no effect. I can see that in log but
not in tcpdump.



Re: Multiple concurrent client connections

2012-04-04 Thread Mike Nwaogu
Thanks alot Rene,
I guess the solution would then be for the client to increase throughput and 
push out as many as are possible in a minute. Is this assumption correct?

 
Best Regards,
Michael C. Nwaogu



 From: Rene Kluwen 
To: 'Mike Nwaogu' ; users@kannel.org 
Sent: Wednesday, April 4, 2012 12:10 AM
Subject: RE: Multiple concurrent client connections
 

I’m afraid that with the current sources it is not possible to bind more than 
once to the same opensmppbox.
However, you can try multiple opensmppbox instances, each listening on a 
different port (not tested).
 
== Rene
 
 
From:Mike Nwaogu [mailto:michael_nwa...@yahoo.com] 
Sent: Monday, 02 April, 2012 12:39
To: Rene Kluwen; users@kannel.org
Subject: Re: Multiple concurrent client connections
 
Yes Rene,
I want each clients to be able to have 4 or 5 simultaneous connections using 
the same account details.
Is this possible, and how, if yes?
 
Best Regards,
Michael C. Nwaogu



From:Rene Kluwen 
To: 'Mike Nwaogu' ; users@kannel.org 
Sent: Sunday, April 1, 2012 10:37 AM
Subject: RE: Multiple concurrent client connections
 
Do you mean concurrent connections of the same user?
That is “by design”…
 
== Rene
 
 
From:users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of 
Mike Nwaogu
Sent: Sunday, 01 April, 2012 01:02
To: users@kannel.org
Subject: Multiple concurrent client connections
 
I'm looking to increase the allowable number of concurrent smpp client 
connections.
I run opensmppbox and currently, only two simultaneous connection stay 
connected after the initial verification process. The others may connect but 
I'm only able to use two at the same time as the other(s) keep breaking the 
connection ever so often.

Suggestions, will help.
Best Regards,
Mike Ben Abel.

opensmppbox issue

2012-04-04 Thread Ravindra Gupta // Viva
Hii,


I have configured opensmppbox in kannel 1.5.0.

I have faced issue in *Waiting for SMPP connections on port 2346. *

opensmppbox logs as given below.

[root@SqlBOX opensmppbox]# opensmppbox -v 0 opensmppbox.conf
2012-04-05 01:10:48 [4069] [0] ERROR: Error while gw_gethostbyname occurs.
2012-04-05 01:10:48 [4069] [0] ERROR: System error 1: Operation not
permitted
2012-04-05 01:10:48 [4069] [0] ERROR: Can't find out official hostname for
this host, using `SqlBOX' instead.
2012-04-05 01:10:48 [4069] [0] INFO: Debug_lvl = 0, log_file = ,
log_lvl = 0
2012-04-05 01:10:48 [4069] [0] DEBUG: Kannel opensmppbox version svn-r
gwlib version `1.5.0'.
Build `Mar  6 2012 21:43:19', compiler `4.1.2 20080704 (Red Hat 4.1.2-51)'.
System Linux, release 2.6.18-274.el5, version #1 SMP Fri Jul 22 04:43:29
EDT 2011, machine x86_64.
Hostname SqlBOX, IP 127.0.0.1.
Libxml version 2.6.26.
Using OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008.
Compiled with MySQL 5.0.95, using MySQL 5.0.95.
Using native malloc.

2012-04-05 01:10:48 [4069] [0] INFO: MYSQL: Connected to server at
localhost.
2012-04-05 01:10:48 [4069] [0] INFO: MYSQL: server version 5.0.95, client
version 5.0.95.
2012-04-05 01:10:48 [4069] [0] INFO: DLR using storage type: mysql
2012-04-05 01:10:48 [4069] [0] INFO: Starting to log to file
/var/log/kannel/opensmppbox.log level 0
2012-04-05 01:10:48 [4069] [0] INFO: Added logfile
`/var/log/kannel/opensmppbox.log' with level `0'.
2012-04-05 01:10:48 [4069] [0] INFO:* Waiting for SMPP connections on port
2346.*



opensmppbox.conf

group = core
#dlr-storage = internal
dlr-storage = mysql

# this group defines your opensmppbox
group = opensmppbox
# our boxc type
opensmppbox-id = smppbox1
# the port to listen on for smpp connections
opensmppbox-port = 2346
#opensmppbox-port = 13001
# we connect to the following host as a box
bearerbox-host = 127.0.0.1
bearerbox-port = 13001
log-level = 0
log-file = /var/log/kannel/opensmppbox.log
our-system-id = viva
#route-to-smsc = my-default-smsc
route-to-smsc = SMPP-Testing1
# see sample smpplogins.txt
smpp-logins = "/root/gateway-1.5.0/addons/opensmppbox/smpplogins.txt"

# the following is just standard dlr configuration

group = mysql-connection
id = mydlr
host = localhost
username = root
password = sqladmin
database = smart_kannel

# you can increase this upon a higher load
#max-connections = 1

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-destination = destination
field-source = source
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxcid


kannel's load balancing when using multiple concurrent connections to the same SMSC with the same smsc_id and login

2012-04-04 Thread spameden
I'm using latest kannel from SVN with sqlbox in scheme:
Box connections: smsbox:sqlbox, IP 127.0.0.1 (0 queued), (on-line 0d 0h 13m
12s)

I'm using multiple connections to the same SMSC with the same login (my
smsc allows up to 4 concurrent connections under the same login).

I have configured 2 connections for sending SMS and 2 connections for
receiving DLRs.

I noticed from kannel's status kannel isn't load balancing properly between
them:

  mysmsc[smsc]SMPP:smpp-provider.com:2775/0:login:NULL (online
623s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2559 (4.29,4.21,4.11), sent: sms
2559 (4.29,4.21,4.11) / dlr 0
   (0.00,0.00,0.00), failed 0, queued 0 msgs)
   mysmsc[smsc]SMPP:smpp-provider.com:2775/0:login:NULL (online
623s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 234 (0.40,0.38,0.38), sent: sms
234 (0.40,0.38,0.38) / dlr 0
   (0.00,0.00,0.00), failed 0, queued 0 msgs)

dlr's are here because I'm using dlr_mask=31 to get also state=8.

You can clearly see that number of sent sms are not the same and differs in
about 10 times or more.

I can't use different smsc_id's because in this case messages won't be
matched against dlr table.

I can post relevant bits from configuration as well if needed..


opensmppbox issue:

2012-04-04 Thread Ravindra Gupta // Viva
Hello everyone,

I have installed opensmppbox on a centOS server and have configured it with
a client, but the client is not able to connect. When the client tries to
connect it gives  SMSC rejected login to transmit, code 0x000d (Bind
Failed). Couldn't connect to SMS center (retrying in 10 seconds).


On the server side, it gives this error, Invalid SMPP PDU received.



Server Bearerbox log



2011-01-15 13:07:37 [26155] [5] INFO: Client connected from <127.0.0.1>
2011-01-15 13:07:37 [26155] [5] DEBUG: Started thread 45
(gw/bb_boxc.c:function)
2011-01-15 13:07:37 [26155] [45] DEBUG: Thread 45 (gw/bb_boxc.c:function)
maps to pid 26155.
2011-01-15 13:07:37 [26155] [45] DEBUG: Started thread 46
(gw/bb_boxc.c:boxc_sender)
2011-01-15 13:07:37 [26155] [46] DEBUG: Thread 46 (gw/bb_boxc.c:boxc_sender)
maps to pid 26155.
2011-01-15 13:07:40 [26155] [45] INFO: Connection closed by the box
<127.0.0.1>
2011-01-15 13:07:40 [26155] [46] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-01-15 13:07:40 [26155] [46] DEBUG: Thread 46 (gw/bb_boxc.c:boxc_sender)
terminates.
2011-01-15 13:07:40 [26155] [45] DEBUG: Thread 45 (gw/bb_boxc.c:function)
terminates.
2011-01-15 13:07:48 [26155] [5] INFO: Client connected from <127.0.0.1>
2011-01-15 13:07:48 [26155] [5] DEBUG: Started thread 47
(gw/bb_boxc.c:function)
2011-01-15 13:07:48 [26155] [47] DEBUG: Thread 47 (gw/bb_boxc.c:function)
maps to pid 26155.
2011-01-15 13:07:48 [26155] [47] DEBUG: Started thread 48
(gw/bb_boxc.c:boxc_sender)
2011-01-15 13:07:48 [26155] [48] DEBUG: Thread 48 (gw/bb_boxc.c:boxc_sender)
maps to pid 26155.
2011-01-15 13:07:51 [26155] [47] INFO: Connection closed by the box
<127.0.0.1>
2011-01-15 13:07:51 [26155] [48] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-01-15 13:07:51 [26155] [48] DEBUG: Thread 48 (gw/bb_boxc.c:boxc_sender)
terminates.
2011-01-15 13:07:51 [26155] [47] DEBUG: Thread 47 (gw/bb_boxc.c:function)
terminates.
2011-01-15 13:07:59 [26155] [5] INFO: Client connected from <127.0.0.1>
2011-01-15 13:07:59 [26155] [5] DEBUG: Started thread 49
(gw/bb_boxc.c:function)
2011-01-15 13:07:59 [26155] [49] DEBUG: Thread 49 (gw/bb_boxc.c:function)
maps to pid 26155.
2011-01-15 13:07:59 [26155] [49] DEBUG: Started thread 50
(gw/bb_boxc.c:boxc_sender)
2011-01-15 13:07:59 [26155] [50] DEBUG: Thread 50 (gw/bb_boxc.c:boxc_sender)
maps to pid 26155.
2011-01-15 13:08:02 [26155] [49] INFO: Connection closed by the box
<127.0.0.1>
2011-01-15 13:08:02 [26155] [50] DEBUG: send_msg: sending msg to box:
<127.0.0.1>
2011-01-15 13:08:02 [26155] [50] DEBUG: Thread 50 (gw/bb_boxc.c:boxc_sender)
terminates.
2011-01-15 13:08:02 [26155] [49] DEBUG: Thread 49 (gw/bb_boxc.c:function)
terminates.




Server Opensmppbox log
2011-01-15 13:06:40 [28249] [25] INFO: Client connected from <40.100.0.000>
2011-01-15 13:06:40 [28249] [25] DEBUG: Connecting to <127.0.0.1>
2011-01-15 13:06:40 [28249] [25] INFO: Connected to bearerbox at localhost
port 13001.
2011-01-15 13:06:40 [28249] [25] DEBUG: Started thread 26
(opensmppbox.c:smpp_to_bearerbox)
2011-01-15 13:06:40 [28249] [26] DEBUG: Thread 26
(opensmppbox.c:smpp_to_bearerbox) maps to pid 28249.
2011-01-15 13:06:41 [28249] [26] DEBUG: SMPP[opensmppbox]: Got PDU:
2011-01-15 13:06:41 [28249] [26] DEBUG: SMPP PDU 0x4ea0170 dump:
2011-01-15 13:06:41 [28249] [26] DEBUG:   type_name: bind_transceiver
2011-01-15 13:06:41 [28249] [26] DEBUG:   command_id: 9 = 0x0009
2011-01-15 13:06:41 [28249] [26] DEBUG:   command_status: 0 = 0x
2011-01-15 13:06:41 [28249] [26] DEBUG:   sequence_number: 13 = 0x000d
2011-01-15 13:06:41 [28249] [26] DEBUG:   system_id: "12345"
2011-01-15 13:06:41 [28249] [26] DEBUG:   password: "12345"
2011-01-15 13:06:41 [28249] [26] DEBUG:   system_type: "vma"
2011-01-15 13:06:41 [28249] [26] DEBUG:   interface_version: 52 = 0x0034
2011-01-15 13:06:41 [28249] [26] DEBUG:   addr_ton: 0 = 0x
2011-01-15 13:06:41 [28249] [26] DEBUG:   addr_npi: 1 = 0x0001
2011-01-15 13:06:41 [28249] [26] DEBUG:   address_range: NULL
2011-01-15 13:06:41 [28249] [26] DEBUG: SMPP PDU dump ends.
2011-01-15 13:06:41 [28249] [26] DEBUG: SMPP[opensmppbox]: Sending PDU:
2011-01-15 13:06:41 [28249] [26] DEBUG: SMPP PDU 0x4ea38a0 dump:
2011-01-15 13:06:41 [28249] [26] DEBUG:   type_name: bind_transceiver_resp
2011-01-15 13:06:41 [28249] [26] DEBUG:   command_id: 2147483657
 =
0x8009
2011-01-15 13:06:41 [28249] [26] DEBUG:   command_status: 13 = 0x000d
2011-01-15 13:06:41 [28249] [26] DEBUG:   sequence_number: 13 = 0x000d
2011-01-15 13:06:41 [28249] [26] DEBUG:   system_id: NULL
2011-01-15 13:06:41 [28249] [26] DEBUG: SMPP PDU dump ends.
2011-01-15 13:06:42 [28249] [26] ERROR: Invalid SMPP PDU received.
2011-01-15 13:06:42 [28249] [26] DEBUG: Thread 26
(opensmppbox.c:smpp_to_bearerbox) terminates.
2011-01-15 13:06:43 [28249] [25] DEBUG: Thread 25 (opensmppbox.c:function)
terminates.


Client bearerbox log
2011-01-14 14:19:13 [20507] [6] DEBUG: SMPP[ukserver]: Sending PDU:
2011-01-14 14:19:13

Re: kannel's load balancing when using multiple concurrent connections to the same SMSC with the same smsc_id and login

2012-04-04 Thread Kyriacos/Netsmart

Hi,

I believe the "load balance" happens only in the sence that if one bind 
is busy sending an SMS and a new request comes, instead of queuing it, 
it goes to the second bind of the same name, rather than doing 
"round-robin" load balancing which seems to be what most people 
expect/assume. If your send rate is fairly low, then most messages will 
leave via the 1st bind.


Regards,
Kyriacos Sakkas

On 04/04/2012 13:58, spameden wrote:

I'm using latest kannel from SVN with sqlbox in scheme:
Box connections: smsbox:sqlbox, IP 127.0.0.1 (0 queued), (on-line 0d 
0h 13m 12s)


I'm using multiple connections to the same SMSC with the same login 
(my smsc allows up to 4 concurrent connections under the same login).


I have configured 2 connections for sending SMS and 2 connections for 
receiving DLRs.


I noticed from kannel's status kannel isn't load balancing properly 
between them:


  mysmsc[smsc]SMPP:smpp-provider.com:2775/0:login:NULL 
 (online 623s, rcvd: sms 0 
(0.00,0.00,0.00) / dlr 2559 (4.29,4.21,4.11), sent: sms 2559 
(4.29,4.21,4.11) / dlr 0

   (0.00,0.00,0.00), failed 0, queued 0 msgs)
   mysmsc[smsc]SMPP:smpp-provider.com:2775/0:login:NULL 
 (online 623s, rcvd: sms 0 
(0.00,0.00,0.00) / dlr 234 (0.40,0.38,0.38), sent: sms 234 
(0.40,0.38,0.38) / dlr 0

   (0.00,0.00,0.00), failed 0, queued 0 msgs)

dlr's are here because I'm using dlr_mask=31 to get also state=8.

You can clearly see that number of sent sms are not the same and 
differs in about 10 times or more.


I can't use different smsc_id's because in this case messages won't be 
matched against dlr table.


I can post relevant bits from configuration as well if needed..


Re: kannel's load balancing when using multiple concurrent connections to the same SMSC with the same smsc_id and login

2012-04-04 Thread Πετσούκα Τάνια

  
  
That's true.
You could use two different smsc groups and get the control of which
to use passing smsc_id parameter to your messages.

On 4/4/2012 3:58 μμ, Kyriacos/Netsmart wrote:

  
  Hi,
  
  I believe the "load balance" happens only in the sence that if one
  bind is busy sending an SMS and a new request comes, instead of
  queuing it, it goes to the second bind of the same name, rather
  than doing "round-robin" load balancing which seems to be what
  most people expect/assume. If your send rate is fairly low, then
  most messages will leave via the 1st bind.
  
  Regards,
  Kyriacos Sakkas
  
  On 04/04/2012 13:58, spameden wrote:
  I'm using latest kannel from SVN with sqlbox in
scheme:
Box connections: smsbox:sqlbox, IP 127.0.0.1 (0 queued),
(on-line 0d 0h 13m 12s)

I'm using multiple connections to the same SMSC with the same
login (my smsc allows up to 4 concurrent connections under the
same login).

I have configured 2 connections for sending SMS and 2
connections for receiving DLRs.

I noticed from kannel's status kannel isn't load balancing
properly between them:

  mysmsc[smsc]    SMPP:smpp-provider.com:2775/0:login:NULL
(online 623s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2559
(4.29,4.21,4.11), sent: sms 2559 (4.29,4.21,4.11) / dlr 0
   (0.00,0.00,0.00), failed 0, queued 0 msgs)
   mysmsc[smsc]    SMPP:smpp-provider.com:2775/0:login:NULL
(online 623s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 234
(0.40,0.38,0.38), sent: sms 234 (0.40,0.38,0.38) / dlr 0
   (0.00,0.00,0.00), failed 0, queued 0 msgs)

dlr's are here because I'm using dlr_mask=31 to get also
state=8.

You can clearly see that number of sent sms are not the same and
differs in about 10 times or more.

I can't use different smsc_id's because in this case messages
won't be matched against dlr table.

I can post relevant bits from configuration as well if needed..
  



-- 
  
Πετσούκα Τάνια
Web Developer
Tessera Multimedia Α.Ε.
Βασ. Γεωργίου 24, Θεσσαλονίκη 54640
Τηλ. +302310889155
Fax: +302310889156

  

  



Re: opensmppbox with kannel issue:

2012-04-04 Thread Rene Kluwen
Please post this in the Kannel mailinglist and do not mail me directly.

 

== Rene

 

 

From: Ravindra Gupta // Viva [mailto:ravin...@vivainfomedia.com] 
Sent: Wednesday, 04 April, 2012 14:10
To: Rene Kluwen
Subject: opensmppbox with kannel issue:

 

 

Dear Rene,

 

I am trying to configure kannel with opensmppbox while configuring
opensmppbox i am getting any error which i will describe.

 

I have got one smpp account from SMSC and i have bind that account in
smskannel.conf file. Using opemsmppbox i will be giving esme account to
diffrent client. I have created SMPP client account using smpplogin.txt file
i have got below error.

 

smpplogins.txt file parameters as given below.

 

client password vma 127.0.0.1

dilip dilip1 vma *.*.*.*

ravi ravi vma *.*.*.*

 

 

opensmppbox.log

 

2012-04-05 05:10:35 [16035] [190] DEBUG:   sequence_number: 97 = 0x0061

2012-04-05 05:10:35 [16035] [190] DEBUG:   system_id: NULL

2012-04-05 05:10:35 [16035] [190] DEBUG: SMPP PDU dump ends.

2012-04-05 05:10:35 [16035] [190] ERROR: Invalid SMPP PDU received.

2012-04-05 05:10:35 [16035] [190] DEBUG: Thread 190
(opensmppbox.c:smpp_to_bearerbox) terminates.

2012-04-05 05:10:36 [16035] [189] DEBUG: Thread 189 (opensmppbox.c:function)
terminates.

2012-04-05 05:10:45 [16035] [0] DEBUG: Started thread 191
(opensmppbox.c:function)

2012-04-05 05:10:45 [16035] [191] DEBUG: Thread 191 (opensmppbox.c:function)
maps to pid 16035.

2012-04-05 05:10:45 [16035] [191] INFO: Client connected from <127.0.0.1>

2012-04-05 05:10:45 [16035] [191] DEBUG: Connecting to <127.0.0.1>

2012-04-05 05:10:45 [16035] [191] INFO: Connected to bearerbox at 127.0.0.1
port 13001.

2012-04-05 05:10:45 [16035] [191] DEBUG: Started thread 192
(opensmppbox.c:smpp_to_bearerbox)

2012-04-05 05:10:45 [16035] [192] DEBUG: Thread 192
(opensmppbox.c:smpp_to_bearerbox) maps to pid 16035.

2012-04-05 05:10:45 [16035] [192] DEBUG: SMPP[smppbox]: Got PDU:

2012-04-05 05:10:45 [16035] [192] DEBUG: SMPP PDU 0x1708d830 dump:

2012-04-05 05:10:45 [16035] [192] DEBUG:   type_name: bind_transceiver

2012-04-05 05:10:45 [16035] [192] DEBUG:   command_id: 9 = 0x0009

2012-04-05 05:10:45 [16035] [192] DEBUG:   command_status: 0 = 0x

2012-04-05 05:10:45 [16035] [192] DEBUG:   sequence_number: 98 = 0x0062

 

 

bearerbox.log

 

2012-04-05 05:12:36 [16004] [8] DEBUG: SMPP[SMPP]: Got PDU:

2012-04-05 05:12:36 [16004] [8] DEBUG: SMPP PDU 0x3b0f690 dump:

2012-04-05 05:12:36 [16004] [8] DEBUG:   type_name: bind_transceiver_resp

2012-04-05 05:12:36 [16004] [8] DEBUG:   command_id: 2147483657 = 0x8009

2012-04-05 05:12:36 [16004] [8] DEBUG:   command_status: 13 = 0x000d

2012-04-05 05:12:36 [16004] [8] DEBUG:   sequence_number: 109 = 0x006d

2012-04-05 05:12:36 [16004] [8] DEBUG:   system_id: NULL

2012-04-05 05:12:36 [16004] [8] DEBUG: SMPP PDU dump ends.

2012-04-05 05:12:36 [16004] [8] ERROR: SMPP[SMPP]: SMSC rejected login to
transmit, code 0x000d (Bind Failed).

2012-04-05 05:12:36 [16004] [8] ERROR: SMPP[SMPP]: Couldn't connect to SMS
center (retrying in 10 seconds).

2012-04-05 05:12:36 [16004] [229] DEBUG: Thread 229
(gw/bb_boxc.c:boxc_sender) maps to pid 16004.

2012-04-05 05:12:36 [16004] [228] INFO: Connection closed by the box
<127.0.0.1>

2012-04-05 05:12:36 [16004] [229] DEBUG: send_msg: sending msg to box:
<127.0.0.1>

2012-04-05 05:12:36 [16004] [229] DEBUG: Thread 229
(gw/bb_boxc.c:boxc_sender) terminates.

2012-04-05 05:12:36 [16004] [228] DEBUG: Thread 228 (gw/bb_boxc.c:function)
terminates.

 

 

smsbox.log

 

2012-04-05 05:00:19 [16021] [1] DEBUG: HTTP: Destroying HTTPClient area
0x1c9c7e20.

2012-04-05 05:00:19 [16021] [1] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.

2012-04-05 05:00:58 [16021] [6] DEBUG: HTTP: Queue contains 0 outstanding
requests

2012-04-05 05:00:58 [16021] [6] DEBUG: HTTP: Retrying request <> (1/5)

2012-04-05 05:00:58 [16021] [9] DEBUG: Queue contains 0 pending requests.

2012-04-05 05:00:58 [16021] [9] ERROR: URL <> doesn't start with `http://'
nor `https://'

2012-04-05 05:00:58 [16021] [9] ERROR: Couldn't send request to <>

2012-04-05 05:01:19 [16021] [1] DEBUG: Timeout for fd:23 appeares.

2012-04-05 05:01:19 [16021] [1] DEBUG: HTTP: Destroying HTTPClient area
0x1c9c7bb0.

2012-04-05 05:01:19 [16021] [1] DEBUG: HTTP: Destroying HTTPClient for
`127.0.0.1'.

2012-04-05 05:01:48 [16021] [6] DEBUG: HTTP: Queue contains 0 outstanding
requests

2012-04-05 05:01:48 [16021] [6] DEBUG: HTTP: Retrying request <> (2/5)

 

 

# sample opensmppbox.conf

 

group = core

dlr-storage = mysql

 

# this group defines your opensmppbox

group = opensmppbox

# our boxc type

opensmppbox-id = smppbox

# the port to listen on for smpp connections

opensmppbox-port = 2346

# we connect to the following host as a box

bearerbox-host = 127.0.0.1

bearerbox-port = 13001

log-level = 0

log-file = /var/log/kannel/opensmppbox.log

our-system-id = vma

#route-to-smsc = my-default-smsc

route-to-smsc = S

restarting kannel gives panic

2012-04-04 Thread spameden
Hello, list.

This bug was already discussed here:

http://www.kannel.org/pipermail/users/2010-August/012229.html

But still no solution!

I have smsbox->sqlbox->bearerbox scheme and _VERY_OFTEN_ if i restart
kannel when it has active queue bearerbox fails to restart.

Please suggest.


Re: kannel's load balancing when using multiple concurrent connections to the same SMSC with the same smsc_id and login

2012-04-04 Thread spameden
nvm, I think I solved this, the issue was in MySQL overhead I think.

Tuned a lot MySQL InnoDB storage + used INSERT DELAYED for sent_sms table
(this table is in MyISAM for now)

And btw, now bearerbox spreads load better:


smsc[smsc]SMPP:smpphost.com:2775/2775:smpplogin:NULL (online 2554s, rcvd:
sms 0 (0.00,0.00,0.00) / dlr 2497 (0.00,0.01,0.98), sent: sms 553
(0.00,0.00,0.22) / dlr 0 (0.00,0.00,0.00), failed 0
, queued 0 msgs)
smsc[smsc]SMPP:smpphost.com:2775/2775:smpplogin:NULL (online 2554s, rcvd:
sms 0 (0.00,0.00,0.00) / dlr 2205 (0.03,0.01,0.86), sent: sms 252
(0.00,0.00,0.10) / dlr 0 (0.00,0.00,0.00), failed 0
, queued 0 msgs)
smsc[smsc]SMPP:smpphost.com:2775/2775:smpplogin:NULL (online 2554s, rcvd:
sms 0 (0.00,0.00,0.00) / dlr 2042 (0.01,0.01,0.80), sent: sms 210
(0.00,0.00,0.08) / dlr 0 (0.00,0.00,0.00), failed 0
, queued 0 msgs)
smsc[smsc]SMPP:smpphost.com:2775/2775:smpplogin:NULL (online 2554s, rcvd:
sms 0 (0.00,0.00,0.00) / dlr 2201 (0.00,0.01,0.86), sent: sms 213
(0.00,0.00,0.08) / dlr 0 (0.00,0.00,0.00), failed 0
, queued 0 msgs)

I've tested also speed of sending sms via smsbox without DLR its so
awesome. I guess I need a new server with better hardware to get speeds
like this on MySQL storage.

2012/4/4 Kyriacos/Netsmart 

>  Hi,
>
> I believe the "load balance" happens only in the sence that if one bind is
> busy sending an SMS and a new request comes, instead of queuing it, it goes
> to the second bind of the same name, rather than doing "round-robin" load
> balancing which seems to be what most people expect/assume. If your send
> rate is fairly low, then most messages will leave via the 1st bind.
>
> Regards,
> Kyriacos Sakkas
>
>
> On 04/04/2012 13:58, spameden wrote:
>
> I'm using latest kannel from SVN with sqlbox in scheme:
> Box connections: smsbox:sqlbox, IP 127.0.0.1 (0 queued), (on-line 0d 0h
> 13m 12s)
>
> I'm using multiple connections to the same SMSC with the same login (my
> smsc allows up to 4 concurrent connections under the same login).
>
> I have configured 2 connections for sending SMS and 2 connections for
> receiving DLRs.
>
> I noticed from kannel's status kannel isn't load balancing properly
> between them:
>
>   mysmsc[smsc]SMPP:smpp-provider.com:2775/0:login:NULL (online
> 623s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2559 (4.29,4.21,4.11), sent: sms
> 2559 (4.29,4.21,4.11) / dlr 0
>(0.00,0.00,0.00), failed 0, queued 0 msgs)
>mysmsc[smsc]SMPP:smpp-provider.com:2775/0:login:NULL (online
> 623s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 234 (0.40,0.38,0.38), sent: sms
> 234 (0.40,0.38,0.38) / dlr 0
>(0.00,0.00,0.00), failed 0, queued 0 msgs)
>
> dlr's are here because I'm using dlr_mask=31 to get also state=8.
>
> You can clearly see that number of sent sms are not the same and differs
> in about 10 times or more.
>
> I can't use different smsc_id's because in this case messages won't be
> matched against dlr table.
>
> I can post relevant bits from configuration as well if needed..
>
>


Re: Kannel freelancers needed for occasional work

2012-04-04 Thread preeteesh kakkar
Hi,

I am available for Kannel freelancing jobs. Let me know what you have
for me at the moment...

Thanks,
Preeteesh

On Wed, Apr 4, 2012 at 3:40 AM, Eugene Ohu  wrote:
> Hi all,
>
> Please any Kannel freelancers available for occasional programming jobs?
> Kindly get in touch by email.
>
> Regards,
>
> Gene