Re: dlr-storage using problem
... Hope that helps Thanks for the explanation. Is it possible to get responses with message_id from smsc = at? -- Regards, Eugene Prokopiev
Re: dlr-storage using problem
2012/10/5 Willy Mularto sangpr...@gmail.com: Kannel always delete for any successful DLR :) I tried to run only bearerbox and smsbox without fakesmsc, so delivery can't be successful. I see: 2012-10-05 10:04:05 [18163] [2] DEBUG: HTTP: Creating HTTPClient for `10.7.1.15'. 2012-10-05 10:04:05 [18163] [2] DEBUG: HTTP: Created HTTPClient area 0x9224220. 2012-10-05 10:04:05 [18163] [3] DEBUG: sql: SELECT count(*) FROM `dlr` 2012-10-05 10:04:06 [18163] [3] DEBUG: column=count(*) buffer_type=8 max_length=0 length=21 2012-10-05 10:04:06 [18163] [3] DEBUG: HTTP: Resetting HTTPClient for `10.7.1.15'. 2012-10-05 10:04:06 [18163] [1] DEBUG: HTTP: Destroying HTTPClient area 0x9224220. 2012-10-05 10:04:06 [18163] [1] DEBUG: HTTP: Destroying HTTPClient for `10.7.1.15'. 2012-10-05 10:04:07 [18163] [7] DEBUG: sms_router: gwlist_len = 1 2012-10-05 10:04:07 [18163] [7] DEBUG: sms_router: handling message (0x921f248 vs 0x921f248) 2012-10-05 10:04:07 [18163] [7] DEBUG: Routing failed, re-queued. 2012-10-05 10:04:07 [18163] [7] DEBUG: sms_router: handling message (0x921f248 vs 0x921f248) 2012-10-05 10:04:07 [18163] [7] DEBUG: Routing failed, re-queued. 2012-10-05 10:04:07 [18163] [7] DEBUG: sms_router: time to sleep 30.00 secs. But I see nothing in table `dlr` -- Regards, Eugene Prokopiev
Re: Kannel with two modems
After this error device /dev/ttyUSB1 hungs, so I can't screen it and need to reboot it. Why can it be? It looks like USB bus problems because it works on another server -- Regards, Eugene Prokopiev
Billing/statistics for queued/transfered messages
Hi, How can I see information for tramsfered messages (source, destination, timestamp, content, delivery status: queued, transfered via smsc with name ...)? Is DLRs are temporary storage for delivery purposes and I need to use sqlbox? I tried to use it in this way: opensmppbox - sqlbox - bearerbox - some smsc = at with modems But smsc_id field is empty and no field for current delivery status. Is it possible to see delivery queue in another way? -- Regards, Eugene Prokopiev
dlr-storage using problem
Hi, I tried to start bearerbox with this configuration: group = core admin-port = 13000 admin-password = admin smsbox-port = 13001 dlr-storage = mysql store-type = spool store-location = /var/spool/kannel log-file = /var/log/kannel/bearerbox.log log-level = 0 group = smsbox bearerbox-host = localhost smsbox-id = smsbox-0 sendsms-port = 13013 log-file = /var/log/kannel/smsbox.log log-level = 0 group = smsc smsc = fake smsc-id = smsc-0 port = 1 connect-allow-ip = 127.0.0.1 group = sendsms-user username = password = group = mysql-connection id = mydlr host = localhost username = root password = database = kannel 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 = boxc I see: # bearerbox /etc/kannel/kannel.conf 2012-10-05 09:47:43 [18106] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2012-10-05 09:47:43 [18106] [0] INFO: MYSQL: Connected to server at localhost. 2012-10-05 09:47:43 [18106] [0] INFO: MYSQL: server version 5.1.62, client version 5.1.62. 2012-10-05 09:47:43 [18106] [0] INFO: DLR using storage type: mysql 2012-10-05 09:47:43 [18106] [0] DEBUG: Kannel bearerbox version `svn-r'. Build `Oct 5 2012 04:59:32', compiler `4.5.3 20120403 (ALT Linux 4.5.3-alt1.M60P.1)'. System Linux, release 2.6.32-ovz-el-alt51, version #1 SMP Fri Feb 3 09:05:35 UTC 2012, machine i686. Hostname localhost, IP 10.7.1.128. Libxml version 2.8.0. Using OpenSSL 1.0.0i 19 Apr 2012. Compiled with MySQL 5.1.62, using MySQL 5.1.62. Using native malloc. 2012-10-05 09:47:43 [18106] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. 2012-10-05 09:47:43 [18106] [0] WARNING: Kannel was compiled without WAP support 2012-10-05 09:47:43 [18106] [0] INFO: HTTP: Opening server at port 13000. 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2012-10-05 09:47:43 [18106] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 18106. 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2012-10-05 09:47:43 [18106] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 18106. 2012-10-05 09:47:43 [18106] [2] DEBUG: HTTP: Including port 13000, fd 10 for polling in server thread 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2012-10-05 09:47:43 [18106] [0] DEBUG: starting smsbox connection module 2012-10-05 09:47:43 [18106] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2012-10-05 09:47:43 [18106] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 18106. 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2012-10-05 09:47:43 [18106] [0] INFO: Set SMS resend frequency to 60 seconds. 2012-10-05 09:47:43 [18106] [0] INFO: SMS resend retry set to unlimited. 2012-10-05 09:47:43 [18106] [0] DEBUG: MO concatenated message handling enabled 2012-10-05 09:47:43 [18106] [0] INFO: DLR rerouting for smsc id smsc-0 disabled. 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 6 (gw/smsc/smsc_fake.c:fake_listener) 2012-10-05 09:47:43 [18106] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 18106. 2012-10-05 09:47:43 [18106] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2012-10-05 09:47:43 [18106] [6] DEBUG: Thread 6 (gw/smsc/smsc_fake.c:fake_listener) maps to pid 18106. 2012-10-05 09:47:43 [18106] [0] INFO: 2012-10-05 09:47:43 [18106] [0] INFO: Kannel bearerbox II version svn-r starting 2012-10-05 09:47:43 [18106] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 18106. 2012-10-05 09:47:43 [18106] [0] INFO: Loaded 0 messages from store. 2012-10-05 09:47:43 [18106] [0] INFO: MAIN: Start-up done, entering mainloop 2012-10-05 09:47:43 [18106] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 18106. 2012-10-05 09:47:43 [18106] [0] DEBUG: smsc_fake: start called I can't see any messages about connectiong to mysql and I can't see any records in already created table dlr in mysql database while sending message via smsbox to fakesmsc. Why can it be? -- Regards, Eugene Prokopiev
Kannel with two modems
Hi, I have two GSM/GPRS SprutNet USB modems (Siemens MC35 clones, ATI returns SIM900 R11.0 in screen /dev/ttyUSBN 115200). My configuration is: group = core admin-port = 13000 admin-password = admin smsbox-port = 13001 dlr-storage = internal store-type = spool store-location = /var/spool/kannel log-file = /var/log/kannel/bearerbox.log log-level = 0 group = smsbox bearerbox-host = localhost smsbox-id = smsbox sendsms-port = 13013 log-file = /var/log/kannel/smsbox.log log-level = 0 group = smsc smsc = at smsc-id = smsc-0 device = /dev/ttyUSB0 speed = 115200 group = smsc smsc = at smsc-id = smsc-1 device = /dev/ttyUSB1 speed = 115200 group = modems id = modem detect-string = SIM900 init-string = AT+CNMI=1,2,0,1,1 group = sendsms-user username = password = After starting bearerbox I see AT SMSC successfully opened for two smscs. Next I send two messages via smsbox and see: 2012-10-04 08:25:26 [6080] [9] DEBUG: boxc_receiver: sms received 2012-10-04 08:25:26 [6080] [9] DEBUG: send_msg: sending msg to boxc: smsbox 2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: TP-Validity-Period: 24.0 hours 2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: -- AT+CMGS=19^M 2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: -- 2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: send command status: 1 2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: -- 0011000B819781857474F6A705C8329BFD06 2012-10-04 08:25:26 [6080] [6] DEBUG: AT2[smsc-0]: -- ^Z 2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: -- 2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: -- +CMGS: 15 2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: -- OK 2012-10-04 08:25:29 [6080] [6] DEBUG: AT2[smsc-0]: send command status: 0 and: 2012-10-04 08:25:52 [6080] [9] DEBUG: boxc_receiver: sms received 2012-10-04 08:25:52 [6080] [9] DEBUG: send_msg: sending msg to boxc: smsbox 2012-10-04 08:25:53 [6080] [7] DEBUG: AT2[smsc-1]: TP-Validity-Period: 24.0 hours 2012-10-04 08:25:53 [6080] [7] DEBUG: AT2[smsc-1]: -- AT+CMGS=19^M 2012-10-04 08:26:03 [6080] [7] DEBUG: AT2[smsc-1]: send command status: -1 2012-10-04 08:26:03 [6080] [7] ERROR: AT2[smsc-1]: Error received, notifying failure, sender: 001 receiver: 79185887465 msgdata: Hello udhdata: After this error device /dev/ttyUSB1 hungs, so I can't screen it and need to reboot it. Why can it be? -- Regards, Eugene Prokopiev
Re: PANIC: opensmppbox: DLR: storage type 'internal' don't implement needed functions
2012/9/19 Rene Kluwen rene.klu...@chimit.nl: It's an incompatible version mismatch. Newer opensmppbox versions use box-dlr-storage and older version use dlr-storage in group = core. I have this issue with latest revision 66 from https://svn.kannel.org/opensmppbox/trunk. I use box-dlr-storage option on another host without any problems. So, behavior of one opensmppbox executable file from one rpm custom package (I don't use Fedora or Debian) is different at different hosts and/or with different current directory (see my first message in this thread). Is this a bug? Message about needed functions and compilation errors without any database support looks like a bugs too. -- Regards, Eugene Prokopiev
PANIC: opensmppbox: DLR: storage type 'internal' don't implement needed functions
Hi, I can't run opensmppbox with this configuration: # cat /etc/kannel/opensmppbox.conf group = core group = opensmppbox box-dlr-storage = internal opensmppbox-id = smppbox-0 opensmppbox-port = 13002 bearerbox-host = 127.0.0.1 bearerbox-port = 13005 our-system-id = smppbox-0 smpp-logins = /etc/kannel/clients.conf use-systemid-as-smsboxid = true log-level = 0 log-file = /var/log/kannel/opensmppbox.log Error is strange: # opensmppbox /etc/kannel/opensmppbox.conf 2012-09-17 20:31:40 [4019] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2012-09-17 20:31:40 [4019] [0] DEBUG: Kannel opensmppbox version svn-r gwlib version `svn-r'. Build `Sep 13 2012 04:27:45', compiler `4.5.3 20120403 (ALT Linux 4.5.3-alt1.M60P.1)'. System Linux, release 3.0.8-std-def-alt0.M60P.1, version #1 SMP Wed Nov 2 12:38:08 UTC 2011, machine i686. Hostname smpp, IP 192.168.1.200. Libxml version 2.8.0. Using OpenSSL 1.0.0i 19 Apr 2012. Compiled with MySQL 5.1.62, using MySQL 5.1.62. Using native malloc. 2012-09-17 20:31:40 [4019] [0] INFO: Starting to log to file /var/log/kannel/opensmppbox.log level 0 2012-09-17 20:31:40 [4019] [0] INFO: Added logfile `/var/log/kannel/opensmppbox.log' with level `0'. 2012-09-17 20:31:40 [4019] [0] WARNING: DLR: using default 'internal' for storage type. 2012-09-17 20:31:40 [4019] [0] INFO: DLR using storage type: internal 2012-09-17 20:31:40 [4019] [0] PANIC: opensmppbox: DLR: storage type 'internal' don't implement needed functions 2012-09-17 20:31:40 [4019] [0] PANIC: opensmppbox(gw_backtrace+0xbe) [0x80962ee] 2012-09-17 20:31:40 [4019] [0] PANIC: opensmppbox(gw_panic+0xd3) [0x80963d3] 2012-09-17 20:31:40 [4019] [0] PANIC: opensmppbox(box_dlr_init+0x7ab) [0x805317b] 2012-09-17 20:31:40 [4019] [0] PANIC: opensmppbox(main+0xd7f) [0x8059edf] 2012-09-17 20:31:40 [4019] [0] PANIC: /lib/libc.so.6(__libc_start_main+0xe6) [0xb71d2c96] 2012-09-17 20:31:40 [4019] [0] PANIC: opensmppbox() [0x8051701] But it works with /etc/kannel as current directory: # opensmppbox opensmppbox.conf 2012-09-17 20:35:35 [4022] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2012-09-17 20:35:35 [4022] [0] DEBUG: Kannel opensmppbox version svn-r gwlib version `svn-r'. Build `Sep 13 2012 04:27:45', compiler `4.5.3 20120403 (ALT Linux 4.5.3-alt1.M60P.1)'. System Linux, release 3.0.8-std-def-alt0.M60P.1, version #1 SMP Wed Nov 2 12:38:08 UTC 2011, machine i686. Hostname smpp, IP 192.168.1.200. Libxml version 2.8.0. Using OpenSSL 1.0.0i 19 Apr 2012. Compiled with MySQL 5.1.62, using MySQL 5.1.62. Using native malloc. 2012-09-17 20:35:35 [4022] [0] INFO: Starting to log to file /var/log/kannel/opensmppbox.log level 0 2012-09-17 20:35:35 [4022] [0] INFO: Added logfile `/var/log/kannel/opensmppbox.log' with level `0'. 2012-09-17 20:35:35 [4022] [0] WARNING: DLR: using default 'internal' for storage type. 2012-09-17 20:35:35 [4022] [0] INFO: DLR using storage type: internal 2012-09-17 20:35:35 [4022] [0] INFO: opensmppbox DLR storage using type: internal 2012-09-17 20:35:35 [4022] [0] INFO: Waiting for SMPP connections on port 13002. Why can it be? -- Regards, Eugene Prokopiev
Re: PANIC: opensmppbox: DLR: storage type 'internal' don't implement needed functions
2012/9/17 Amin Mukhaimer ami...@arabmobilecontent.com: Sorry I meant: group = core dlr-storage = internal and remove: box-dlr-storage = internal Thanks, it helps. I use box-dlr-storage due to https://redmine.kannel.org/issues/649 and my previous message about this problem. What is the right way? Which needed functions are not implemented by storage type 'internal'? -- Regards, Eugene Prokopiev
Re: Where do I find a kannel.git repository? [see details]
2012/9/14 Alexander Suraphel alexsurap...@gmail.com: I'm a git user and I can only see CVS mentioned on kannel.org. I've seen some repositories on github but I don't know which one is authorative. Can anyone point me to the recent git repository of kannel? I use git-svn for building kannel+sqlbox+opensmppbox rpm package for ALT Linux - http://git.altlinux.org/people/enp/packages/kannel.git -- Regards, Eugene Prokopiev
Outgoing SMS routing via different SMSC by destination number prefix
Hi, What is the right way to route outgoing SMS routing via different SMSC by destination number prefix + default route for any unknown prefixes? I tried to do it by this configuration: group = core admin-port = 13000 admin-password = admin smsbox-port = 13001 dlr-storage = internal group = smsbox bearerbox-host = localhost smsbox-id = smsbox-0 sendsms-port = 13013 group = smsc smsc = fake smsc-id = smsc-7 port = 10007 connect-allow-ip = 127.0.0.1 allowed-prefix = 007 group = smsc smsc = fake smsc-id = smsc-8 port = 10008 connect-allow-ip = 127.0.0.1 allowed-prefix = 008 group = smsc smsc = fake smsc-id = smsc-0 port = 1 connect-allow-ip = 127.0.0.1 group = sendsms-user username = password = Messages with prefox 007 are routed via smsc-7 but sometimes are routed via smsc-0. Why can it be? What is the best configuration for my use case? -- Regards, Eugene Prokopiev
Re: sms-center and my-number for smsc = at
What is the meaning of parameters sms-center and my-number for smsc = at? I can send sms from phone without them. Why I need to know it for sending sms via kannel from the same sim card? How can I know them? I have found values for this parameters, so my configuration is looks like: group = smsc smsc = at smsc-id = smsc-0 modemtype = huawei device = /dev/ttyUSB1 sms-center = +7123456789 my-number = +7987654321 pin = group = modems id = modem-0 detect-string = huawei init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 I have run bearerbox and see: 2012-09-11 15:34:16 [5608] [6] INFO: AT2[smsc-0]: init device 2012-09-11 15:34:16 [5608] [6] INFO: AT2[smsc-0]: speed set to 115200 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- ATZ^M 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- OK 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- AT^M 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- AT 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- OK 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- ATF^M 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- ATF 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- OK 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- ATE0^M 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- ATE0 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- OK 2012-09-11 15:34:16 [5608] [6] DEBUG: AT2[smsc-0]: -- AT+IFC=2,2^M 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- OK 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- AT+CPIN?^M 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- +CPIN: READY 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- AT+CSCA=+7123456789^M 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- OK 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- AT+CMGF=0^M 2012-09-11 15:34:17 [5608] [6] DEBUG: AT2[smsc-0]: -- ERROR 2012-09-11 15:34:17 [5608] [6] ERROR: AT2[smsc-0]: Generic error: ERROR AT+CMGF=0 is looks like swiching to PDU mode, so why can it be a problem? -- Regards, Eugene Prokopiev
Re: sms-center and my-number for smsc = at
2012/9/11 Rene Kluwen rene.klu...@chimit.nl: My huawei does the same thing. Just after trying a second time, it does succeed. So even when I get this error, it doesn't yield problems. I have the same problem after trying a second time :( -- Regards, Eugene Prokopiev
Re: opensmppbox connection problems
I tried to send SMPP message via jsmpp and all works fine. So, the problem was in mailformed packet, which breaks bearerbox or only smsc_fake. Dumps text representation are attached. Which parameters are mandatory for smsc_fake? -- Regards, Eugene Prokopiev No. TimeSourceDestination Protocol Info 12 2.498996127.0.0.1 127.0.0.1 SMPP SMPP Submit_sm Frame 12: 147 bytes on wire (1176 bits), 147 bytes captured (1176 bits) Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: 35584 (35584), Dst Port: 13002 (13002), Seq: 36, Ack: 27, Len: 93 Short Message Peer to Peer, Command: Submit_sm, Seq: 2, Len: 93 Length: 93 Operation: Submit_sm (0x0004) Sequence #: 2 Service type: CMT Type of number (originator): National (0x02) Numbering plan indicator (originator): ISDN (E163/E164) (0x01) Originator address: +0079185847476 Type of number (recipient): National (0x02) Numbering plan indicator (recipient): ISDN (E163/E164) (0x01) Recipient address: Hello ..00 = Messaging mode: Default SMSC mode (0x00) ..00 00.. = Message type: Default message type (0x00) 00.. = GSM features: No specific features selected (0x00) Protocol id.: 0x00 Priority level: GSM: None ANSI-136: Bulk IS-95: Normal (0x00) Scheduled delivery time: Sep 9, 2012 13:21:33.3 MSK Validity period: SMSC default validity period ..00 = Delivery receipt: No SMSC delivery receipt requested (0x00) 00.. = Message type: No recipient SME acknowledgement requested (0x00) ...0 = Intermediate notif: No intermediate notification requested (0x00) ...0 = Replace: Don't replace (0x00) Data coding: 0x11 SMPP Data Coding Scheme: Unknown (0x11) GSM SMS Data Coding 0001 = DCS Coding Group for SMS: SMS DCS: General Data Coding indication - Uncompressed text (0x01) ..0. = DCS Text compression: Uncompressed text ...1 = DCS Class present: Message class is present 00.. = DCS Character set: GSM 7-bit default alphabet (0x00) ..01 = DCS Message class: Class 1 - ME specific (0x01) GSM CBS Data Coding 0001 = DCS Coding Group for CBS: CBS DCS: Language indication at beginning of message (0x01) ..01 0001 = DCS CBS Message language: UCS-2 (16-bit) - message preceded by language indication (0x11) Predefined message: 0 Message length: 22 Message No. TimeSourceDestination Protocol Info 8 1.005229127.0.0.1 127.0.0.1 SMPP SMPP Submit_sm Frame 8: 111 bytes on wire (888 bits), 111 bytes captured (888 bits) Ethernet II, Src: 00:00:00_00:00:00 (00:00:00:00:00:00), Dst: 00:00:00_00:00:00 (00:00:00:00:00:00) Internet Protocol Version 4, Src: 127.0.0.1 (127.0.0.1), Dst: 127.0.0.1 (127.0.0.1) Transmission Control Protocol, Src Port: 35587 (35587), Dst Port: 13002 (13002), Seq: 32, Ack: 27, Len: 57 Short Message Peer to Peer, Command: Submit_sm, Seq: 2, Len: 57 Length: 57 Operation: Submit_sm (0x0004) Sequence #: 2 Service type: (Default) Type of number (originator): Unknown (0x00) Numbering plan indicator (originator): Unknown (0x00) Type of number (recipient): Unknown (0x00) Numbering plan indicator (recipient): Unknown (0x00) Recipient address: +44206064379 ..00 = Messaging mode: Default SMSC mode (0x00) ..00 00.. = Message type: Default message type (0x00) 00.. = GSM features: No specific features selected (0x00) Protocol id.: 0x00 Priority level: GSM: None ANSI-136: Bulk IS-95: Normal (0x00) Scheduled delivery time: Immediate delivery Validity period: SMSC default validity period ..00 = Delivery receipt: No SMSC delivery receipt requested (0x00) 00.. = Message type: No recipient SME acknowledgement requested (0x00) ...0 = Intermediate notif: No intermediate notification requested (0x00) ...0 = Replace: Don't replace (0x00) Data coding: 0x00 SMPP Data Coding Scheme: SMSC default alphabet (0x00) GSM SMS Data Coding = DCS Coding Group for SMS: SMS DCS: General Data Coding indication - Uncompressed text, no message class (0x00) ..0. = DCS Text compression: Uncompressed text ...0 = DCS Class present: No message class 00.. = DCS Character set: GSM 7-bit default alphabet (0x00) GSM CBS Data Coding = DCS Coding Group for CBS: CBS DCS: Language using the GSM 7-bit default alphabet (0x00) ..00 = DCS CBS Message language: German (0x00) Predefined message: 0 Message length
Re: opensmppbox connection problems
2012/9/9 Eugene Prokopiev: Which parameters are mandatory for smsc_fake? source_addr is mandatory, so minimal SMPP sending example is attached -- Regards, Eugene Prokopiev send.pl Description: Binary data
sqlbox connecting
Hi, I have installed svn trunk versions of kannel gateway and sqlbox with this simple working configuration: group = core admin-port = 13000 admin-password = admin smsbox-port = 13001 dlr-storage = internal group = smsbox bearerbox-host = localhost smsbox-id = smsbox-0 sendsms-port = 13013 group = smsc smsc = fake smsc-id = smsc-0 port = 1 connect-allow-ip = 127.0.0.1 group = sendsms-user username = password = default-sender = +79314114119 After running bearerbox and smsbox with this configuration file and fakesmsc without any params I can send message with HTTP request (http://localhost:13013/cgi-bin/sendsms?username=password=to=+123456789011text=Hello+world) and see results in fakesmsc console. Next I tried to start sqlbox with this configuration: group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13005 sql-log-table = sent_sms sql-insert-table = send_sms group = mysql-connection id = sqlbox-db host = localhost username = root password = database = kannel Tables was created but I can't see any records in them after sending message via HTTP. Need I change main configuration between bearerbox and sqlbox? There are no suitable notes or examples in sqlbox documentation. -- Regards, Eugene Prokopiev
Re: sqlbox connecting
2012/9/8 Rene Kluwen: Also in your group = smsbox, you need to have: bearerbox-port = 13005. Thanks. This is exactly what I needed. Can you see my previous thread about opensmppbox? I have a similar problem: opensmpp can't interact with existing simple configuration. -- Regards, Eugene Prokopiev
Re: opensmppbox connection problems
2012/9/8 Rene Kluwen: Using internal storage for opensmppbox: group = opensmppbox box-dlr-storage = internal Thanks, it works. About your other question: bearerbox-port should be 13001 in group = opensmppbox. I tried to do it and got: 2012-09-08 20:15:53 [15474] [5] INFO: Client connected from 127.0.0.1 2012-09-08 20:15:53 [15474] [5] DEBUG: Started thread 10 (gw/bb_boxc.c:function) 2012-09-08 20:15:53 [15474] [10] DEBUG: Thread 10 (gw/bb_boxc.c:function) maps to pid 15474. 2012-09-08 20:15:53 [15474] [10] DEBUG: Started thread 11 (gw/bb_boxc.c:boxc_sender) 2012-09-08 20:15:53 [15474] [11] DEBUG: Thread 11 (gw/bb_boxc.c:boxc_sender) maps to pid 15474. 2012-09-08 20:15:54 [15474] [10] DEBUG: boxc_receiver: got boxc_id test from 127.0.0.1 2012-09-08 20:15:54 [15474] [10] DEBUG: boxc_receiver: sms received 2012-09-08 20:15:54 [15474] [6] DEBUG: smsc_fake: sending message to client 2012-09-08 20:15:54 [15474] [6] PANIC: /usr/sbin/bearerbox() [0x80ebc8d] 2012-09-08 20:15:54 [15474] [6] PANIC: [0xb778140c] 2012-09-08 20:15:54 [15474] [6] PANIC: /usr/sbin/bearerbox() [0x80945d3] 2012-09-08 20:15:54 [15474] [6] PANIC: /usr/sbin/bearerbox() [0x80d613d] 2012-09-08 20:15:54 [15474] [6] PANIC: /lib/libpthread.so.0(+0x5950) [0xb756b950] 2012-09-08 20:15:54 [15474] [6] PANIC: /lib/libc.so.6(clone+0x5e) [0xb723253e] -- Regards, Eugene Prokopiev
Re: opensmppbox connection problems
2012-09-08 20:15:54 [15474] [6] PANIC: /usr/sbin/bearerbox() [0x80ebc8d] 2012-09-08 20:15:54 [15474] [6] PANIC: [0xb778140c] 2012-09-08 20:15:54 [15474] [6] PANIC: /usr/sbin/bearerbox() [0x80945d3] 2012-09-08 20:15:54 [15474] [6] PANIC: /usr/sbin/bearerbox() [0x80d613d] 2012-09-08 20:15:54 [15474] [6] PANIC: /lib/libpthread.so.0(+0x5950) [0xb756b950] 2012-09-08 20:15:54 [15474] [6] PANIC: /lib/libc.so.6(clone+0x5e) [0xb723253e] More details from core dump and gdb: $ gdb gw/bearerbox ~/core-bearerbox-4429 ... Reading symbols from /usr/src/RPM/BUILD/kannel-gateway/gw/bearerbox...done. ... Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done. Loaded symbols for /lib/ld-linux.so.2 Core was generated by `/usr/sbin/bearerbox kannel.conf'. Program terminated with signal 11, Segmentation fault. #0 0x080e3fb2 in port_put_request (conn=0x0, data=0x20) at gwlib/http.c:2116 2116mutex_unlock(port_mutex); After commenting this line and recompiling bearerbox I have another error: Core was generated by `./bearerbox kannel.conf'. Program terminated with signal 11, Segmentation fault. #0 0x080ed972 in octstr_append_char (ostr=0x0, ch=32) at gwlib/octstr.c:1522 1522octstr_insert_data(ostr, ostr-len, c, 1); -- Regards, Eugene Prokopiev
opensmppbox connection problems
[17276] [2] DEBUG: SMPP PDU dump ends. 2012-09-07 16:28:30 [17276] [2] DEBUG: SMPP[(null)]: Sending PDU: 2012-09-07 16:28:30 [17276] [2] DEBUG: SMPP PDU 0x81fe900 dump: 2012-09-07 16:28:30 [17276] [2] DEBUG: type_name: bind_transmitter_resp 2012-09-07 16:28:30 [17276] [2] DEBUG: command_id: 2147483650 = 0x8002 2012-09-07 16:28:30 [17276] [2] DEBUG: command_status: 13 = 0x000d 2012-09-07 16:28:30 [17276] [2] DEBUG: sequence_number: 1 = 0x0001 2012-09-07 16:28:30 [17276] [2] DEBUG: system_id: NULL 2012-09-07 16:28:30 [17276] [2] DEBUG: SMPP PDU dump ends. 2012-09-07 16:28:31 [17276] [2] DEBUG: SMPP[(null)]: Got PDU: 2012-09-07 16:28:31 [17276] [2] DEBUG: SMPP PDU 0x81fd7f0 dump: 2012-09-07 16:28:31 [17276] [2] DEBUG: type_name: submit_sm 2012-09-07 16:28:31 [17276] [2] DEBUG: command_id: 4 = 0x0004 2012-09-07 16:28:31 [17276] [2] DEBUG: command_status: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: sequence_number: 2 = 0x0002 2012-09-07 16:28:31 [17276] [2] DEBUG: service_type: NULL 2012-09-07 16:28:31 [17276] [2] DEBUG: source_addr_ton: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: source_addr_npi: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: source_addr: NULL 2012-09-07 16:28:31 [17276] [2] DEBUG: dest_addr_ton: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: dest_addr_npi: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: destination_addr: +44206064379 2012-09-07 16:28:31 [17276] [2] DEBUG: esm_class: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: protocol_id: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: priority_flag: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: schedule_delivery_time: NULL 2012-09-07 16:28:31 [17276] [2] DEBUG: validity_period: NULL 2012-09-07 16:28:31 [17276] [2] DEBUG: registered_delivery: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: replace_if_present_flag: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: data_coding: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: sm_default_msg_id: 0 = 0x 2012-09-07 16:28:31 [17276] [2] DEBUG: sm_length: 12 = 0x000c 2012-09-07 16:28:31 [17276] [2] DEBUG: short_message: Test Message 2012-09-07 16:28:31 [17276] [2] DEBUG: SMPP PDU dump ends. 2012-09-07 16:28:31 [17276] [2] DEBUG: SMPP[(null)]: Sending PDU: 2012-09-07 16:28:31 [17276] [2] DEBUG: SMPP PDU 0x8200aa8 dump: 2012-09-07 16:28:31 [17276] [2] DEBUG: type_name: generic_nack 2012-09-07 16:28:31 [17276] [2] DEBUG: command_id: 2147483648 = 0x8000 2012-09-07 16:28:31 [17276] [2] DEBUG: command_status: 14 = 0x000e 2012-09-07 16:28:31 [17276] [2] DEBUG: sequence_number: 2 = 0x0002 2012-09-07 16:28:31 [17276] [2] DEBUG: SMPP PDU dump ends. long wait about 1 minute or more ... 2012-09-07 16:29:34 [17276] [1] ERROR: Connection closed by the bearerbox. 2012-09-07 16:29:34 [17276] [1] ERROR: Connection closed by the bearerbox. 2012-09-07 16:29:34 [17276] [1] ERROR: Connection closed by the bearerbox. ... In bearerbox console I see: 2012-09-07 16:28:30 [17161] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2012-09-07 16:28:30 [17161] [2] DEBUG: HTTP: Created HTTPClient area 0x81b0268. long wait about 1 minute or more 2012-09-07 16:29:30 [17161] [1] DEBUG: Timeout for fd:29 appears. 2012-09-07 16:29:30 [17161] [1] DEBUG: HTTP: Destroying HTTPClient area 0x81b0268. 2012-09-07 16:29:30 [17161] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. In perl console I see: $ ./send.pl long wait about 1 minute or more premature eof reading from socket at /usr/share/perl5/Net/SMPP.pm line 2398. Died at ./send.pl line 14. What's wrong with my configuration or code? -- Regards, Eugene Prokopiev
Re: opensmppbox connection problems
2012/9/7 spameden spame...@gmail.com: What's the version of kannel you're using? I'm using svn trunk versions of kannel and opensmppbox You can use internal, MySQL, PostgreSQL and bunch of other database storages to store DLR's inside the kannel What is the right way to use internal storage for opensmppbox? I can't find example in opensmppbox docs. Can you give me example? For processing the message you can either use sqlbox or smsbox with your custom programmed scripts. For sqlbox you just need to insert the record into send_sms table. For smsbox use url like this: http://localhost:13005/cgi-bin/sendsms?username=foopassword=barto=+123456789011text=Hello+world There is very detailed user guide you can compile fresh version of it from SVN. Thanks. I don't need sqlbox now. I know how to send message from one smsbox to some smsc. But I can't find a way to send message from one opensmppbox to some smsc. I even tried to use route-to-smsc but message don't arrived to smsc. My configuration is shown in first mail message. What is wrong in it? -- Regards, Eugene Prokopiev
Kannel freelancers needed for occasional work
Hi all, Please any Kannel freelancers available for occasional programming jobs? Kindly get in touch by email. Regards, Gene
Re: Help to test Kannel Server speed
Hi Dipo, Thanks for your reply. Yes, I did test using fake smsc and got good results. I wanted a second opinion and from distinct setups. Eugene On 15 November 2011 09:00, Dipo Kolawole dipok...@yahoo.co.uk wrote: I am willing. I believe you can test by using fake smsc. You may not have to go as far as using real credits though am not sure. ** ** ** ** *From:* users-boun...@kannel.org [mailto:users-boun...@kannel.org] *On Behalf Of *Eugene Ohu *Sent:* Wednesday, November 02, 2011 8:27 PM *To:* users@kannel.org *Subject:* Help to test Kannel Server speed ** ** Hello all, ** ** Please, any volunteers to help me test the speed of my Kannel server? I will provide you smpp connection parameters and you can do fake sms sending. If need be and the only way to do this type of tests is to send actual sms, I will bear the cost of this. ** ** I will appreciate any help please, ** ** Thank you, ** ** Eugene
Re: Help to test Kannel Server speed
Hi BC, My major clients are banks who have proprietary custom servers in most cases. Thanks, Eugene On 3 November 2011 06:09, Big Crunch bigcrunc...@hotmail.com wrote: Hi Eugene, How do your external clients connect to you ? smppbox ? or proprietary custom server ? Thanks, BC. -- To: sangpr...@gmail.com Subject: Re: Help to test Kannel Server speed From: eug...@writingpad.org Date: Thu, 3 Nov 2011 04:57:06 + CC: users@kannel.org Thank you Willy, It's a kannel server for sms aggregation running on ubuntu. There are commercial clients sending on it already. Earlier I had some big bulk senders complains of slow speed // latency issues with my server // very low mps... We moved to a new server, changed some codes and basically solved all those problems...or so it seems. Before my next big client I will like to put the installation through some stress from 'outside'. I don't know how best this can be done. Thanks, Eugene -- *From: * Willy Mularto sangpr...@gmail.com *Date: *Thu, 3 Nov 2011 09:16:53 +0700 *To: *Eugene Ohueug...@writingpad.org *Cc: *users@kannel.org *Subject: *Re: Help to test Kannel Server speed What is your scenario and goal? Maybe I can help you. On Nov 3, 2011, at 2:26 AM, Eugene Ohu wrote: Hello all, Please, any volunteers to help me test the speed of my Kannel server? I will provide you smpp connection parameters and you can do fake sms sending. If need be and the only way to do this type of tests is to send actual sms, I will bear the cost of this. I will appreciate any help please, Thank you, Eugene Willy Mularto F300HD+MR18DE (NLC1725)
Re: Help to test Kannel Server speed
Hi. Sorry I misunderstand. Clients connect via smpp. I'll be grateful for your help. Eugene -Original Message- From: alok vaidya geta...@gmail.com Date: Thu, 3 Nov 2011 13:44:48 To: Eugene Ohueug...@writingpad.org Cc: Big Crunchbigcrunc...@hotmail.com; Kannel Usersusers@kannel.org Subject: Re: Help to test Kannel Server speed Hi Eugene, No, I mean to say how do the clients connect to the server to send the sms messages are they using smpp or http or some other protocol to send sms messages to your server. If you are accepting messages over smpp may be I can help you in the submit test. Regards, BC. On Thu, Nov 3, 2011 at 1:07 PM, Eugene Ohu eug...@writingpad.org wrote: Hi BC, My major clients are banks who have proprietary custom servers in most cases. Thanks, Eugene On 3 November 2011 06:09, Big Crunch bigcrunc...@hotmail.com wrote: Hi Eugene, How do your external clients connect to you ? smppbox ? or proprietary custom server ? Thanks, BC. -- To: sangpr...@gmail.com Subject: Re: Help to test Kannel Server speed From: eug...@writingpad.org Date: Thu, 3 Nov 2011 04:57:06 + CC: users@kannel.org Thank you Willy, It's a kannel server for sms aggregation running on ubuntu. There are commercial clients sending on it already. Earlier I had some big bulk senders complains of slow speed // latency issues with my server // very low mps... We moved to a new server, changed some codes and basically solved all those problems...or so it seems. Before my next big client I will like to put the installation through some stress from 'outside'. I don't know how best this can be done. Thanks, Eugene -- *From: * Willy Mularto sangpr...@gmail.com *Date: *Thu, 3 Nov 2011 09:16:53 +0700 *To: *Eugene Ohueug...@writingpad.org *Cc: *users@kannel.org *Subject: *Re: Help to test Kannel Server speed What is your scenario and goal? Maybe I can help you. On Nov 3, 2011, at 2:26 AM, Eugene Ohu wrote: Hello all, Please, any volunteers to help me test the speed of my Kannel server? I will provide you smpp connection parameters and you can do fake sms sending. If need be and the only way to do this type of tests is to send actual sms, I will bear the cost of this. I will appreciate any help please, Thank you, Eugene Willy Mularto F300HD+MR18DE (NLC1725)
Help to test Kannel Server speed
Hello all, Please, any volunteers to help me test the speed of my Kannel server? I will provide you smpp connection parameters and you can do fake sms sending. If need be and the only way to do this type of tests is to send actual sms, I will bear the cost of this. I will appreciate any help please, Thank you, Eugene
Re: Help to test Kannel Server speed
Thank you Willy, It's a kannel server for sms aggregation running on ubuntu. There are commercial clients sending on it already. Earlier I had some big bulk senders complains of slow speed // latency issues with my server // very low mps... We moved to a new server, changed some codes and basically solved all those problems...or so it seems. Before my next big client I will like to put the installation through some stress from 'outside'. I don't know how best this can be done. Thanks, Eugene -Original Message- From: Willy Mularto sangpr...@gmail.com Date: Thu, 3 Nov 2011 09:16:53 To: Eugene Ohueug...@writingpad.org Cc: users@kannel.org Subject: Re: Help to test Kannel Server speed What is your scenario and goal? Maybe I can help you. On Nov 3, 2011, at 2:26 AM, Eugene Ohu wrote: Hello all, Please, any volunteers to help me test the speed of my Kannel server? I will provide you smpp connection parameters and you can do fake sms sending. If need be and the only way to do this type of tests is to send actual sms, I will bear the cost of this. I will appreciate any help please, Thank you, Eugene Willy Mularto F300HD+MR18DE (NLC1725)
Re: SMPP connection speed
Hi all, I think we found a solution to this. I post it here in case it will be helpful to someone else in future. There was a missing parameter in the Kannel configuration. Somebody I spoke to talked about increasing the Windows size which led the developer working with me to check further and in this post: http://www.nowsms.com/smpp-async-mode he found this discussion where people were discussing why most smscs don't hit above 20mps or on average 10. That led the developer to look more closely at the parameter max-submit-requests which seems to default to 10. It seems to set the max limit of messages one can sent before getting a reply. Increasing it has given us 25 mps and above. All's well now. Eugene PS. Thanks to Otandeka Simon Peter, Victor Miclovich who helped point the way and my patient developer Thomas Mapesa On 14 October 2011 16:23, Eugene Ohu eug...@writingpad.org wrote: Hello, Thanks for your help. First my config file: # # CONFIGURATION FOR SMS KANNEL # #- # CORE # group = core admin-port = 13000 smsbox-port = 13001 admin-password = trunkkannel #status-password = foo admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 log-file = logs/kc-13000.log log-level = 2 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = logs/kc-13000-access.log dlr-storage = internal #- # SMSC CONNECTIONS # #- RECEIVING SMSC - #All incoming traffic is routed to apps through these #Multiple instances of the same connection group = smsc smsc = http system-type = generic smsc-id = rhttp1 port = 13015 send-url = http://localhost/fastlogger.php?usr=%nfrom=%Pto=%ptext=%asmsc=%idlrmask=%dsmsid=%I status-success-regex = OK status-permfail-regex = failure status-tempfail-regex = retry later log-file = logs/smsc-rhttp-1.log log-level = 2 reroute-dlr = true denied-smsc-id = #- SENDING SMSCs - # [removed] #- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery group = smsbox bearerbox-host = 127.0.0.1 smsbox-id = bsend13 #sendsms-interface = 127.0.0.1 sendsms-port = 13013 sendsms-url = /sendsms sms-length = 160 log-file = logs/sb-13000.log log-level = 2 # #Inbound routing - mainly DLRs # #group = smsbox-route #smsbox-id = #smsc-id = # #- # SEND-SMS USERS # # These users are used when Kannel smsbox sendsms interface is used to # send PUSH sms messages, i.e. calling URL like # http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar. .. #Default user group = sendsms-user username = defuser password = tester default-smsc = rhttp1 user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 #group = sendsms-user #username = user #password = pass #- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. #Can accept the following variables: #user,pass,from=%p,to=%P,text=%r,smsc(smsc id of origin)=%i,dlr-mask[dlrvalue=%d],dlr-url,[account eg usrname:passwd?]=%o #=OTHERS: internalSMSID=%I,metadata=%D,dlrreply=%A,foreignmid4dlr=%F,usr/srvcname=%n group = sms-service keyword = default catch-all = true get-url = http://localhost/fastlogger.php?usr=%nfrom=%pto=%Ptext=%asmsc=%idlrmask=%dsmsid=%I max-messages = 0 #- # DLRs to DB # # These are delivery receipts for messages sent. #group = mysql-connection #id = mydlr #host = localhost #username = kanneluser #password = kanneluser #database = kannel_dlr #max-connections = 1 #group = dlr-db #id = mydlr #table = dlr #field-smsc = smsc #field-timestamp = timereceived #field-destination = destination #field-source = source #field-service = service #field-url = arrivalurl #field-mask = mask #field-status = status #field-boxc-id = boxc_id Here are some of the logs. Bearerbox logs: 2011-10-11 15:06:20 [28005] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 13:37:02 [30567] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 18:16:12 [7328] [339] ERROR: Couldn't fetch http://localhost/fastlogger.php?usr=userfrom=senderidto=%2B[gsmnumber]text=messagesmsc=dlrmask=0smsid=eacf217e-57bd-433a-8c5d-f8fa8fc7a023 2011-10-12 18:37:25 [7328] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 21:15:54 [11861] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 21:54:03 [2592] [0] WARNING: Killing signal
Re: users Digest, Vol 62, Issue 25
Hi Bino, Many thanks. That's certainly a thought I will look into now. Eugene On 15 October 2011 11:00, users-requ...@kannel.org wrote: Send users mailing list submissions to users@kannel.org To subscribe or unsubscribe via the World Wide Web, visit http://www.kannel.org/mailman/listinfo/users or, via email, send a message with subject or body 'help' to users-requ...@kannel.org You can reach the person managing the list at users-ow...@kannel.org When replying, please edit your Subject line so it is more specific than Re: Contents of users digest... Today's Topics: 1. Re: SMPP connection speed (bino oetomo) -- Message: 1 Date: Sat, 15 Oct 2011 09:03:06 +0700 From: bino oetomo b...@indoakses-online.com To: users@kannel.org Subject: Re: SMPP connection speed Message-ID: 4e98e9da.6000...@indoakses-online.com Content-Type: text/plain; charset=ISO-8859-1; format=flowed On 10/13/2011 11:41 PM, Eugene Ohu wrote: Hi all, My client is located in Africa while my server is located in the US. Might anyone know what other issues I should look out for that could be causing this long delays? On my local test server, I get to sent 700+ messages per second but not on the live one. Do you mean that all the kannel (BearerBox,SMSBox/SQLBox) is in US and your Africa Client just use their application to post to your SMSBox ? If So, I think it's a matter of your client's Internet Bandwidth. If you want to make a local test, you will need : 2x PC 1x Bandwidth limiter (You can use PC with Linux, or Mikrotik) PC-A will emulate your client server/app PC-B will be your kannel box. Connect one ethernet of Bandwidth limiter directly to PC-A and another one to PC-B For extreme benchmark, set the limiter to limit connection betwen PC-A and PC-B down to 32 kbps (kilo bits per sec) Start to abuse your kannelbox from PC-A .. and look what it got. Oh BTW what carier your client will use ? is it FiberOptic ? or is it Satellite ? If It is Satellite ... you need Kannel Developer to talk here ... since satellite will need 600 ms delay for one way ... cmiiw -bino- -- ___ users mailing list users@kannel.org http://www.kannel.org/mailman/listinfo/users End of users Digest, Vol 62, Issue 25 *
Re: SMPP connection speed
Hello, Thanks for your help. First my config file: # # CONFIGURATION FOR SMS KANNEL # #- # CORE # group = core admin-port = 13000 smsbox-port = 13001 admin-password = trunkkannel #status-password = foo admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1 log-file = logs/kc-13000.log log-level = 2 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = logs/kc-13000-access.log dlr-storage = internal #- # SMSC CONNECTIONS # #- RECEIVING SMSC - #All incoming traffic is routed to apps through these #Multiple instances of the same connection group = smsc smsc = http system-type = generic smsc-id = rhttp1 port = 13015 send-url = http://localhost/fastlogger.php?usr=%nfrom=%Pto=%ptext=%asmsc=%idlrmask=%dsmsid=%I; status-success-regex = OK status-permfail-regex = failure status-tempfail-regex = retry later log-file = logs/smsc-rhttp-1.log log-level = 2 reroute-dlr = true denied-smsc-id = #- SENDING SMSCs - # [removed] #- # SMSBOX SETUP # # Smsbox(es) do higher-level SMS handling after they have been received from # SMS centers by bearerbox, or before they are given to bearerbox for delivery group = smsbox bearerbox-host = 127.0.0.1 smsbox-id = bsend13 #sendsms-interface = 127.0.0.1 sendsms-port = 13013 sendsms-url = /sendsms sms-length = 160 log-file = logs/sb-13000.log log-level = 2 # #Inbound routing - mainly DLRs # #group = smsbox-route #smsbox-id = #smsc-id = # #- # SEND-SMS USERS # # These users are used when Kannel smsbox sendsms interface is used to # send PUSH sms messages, i.e. calling URL like # http://kannel.machine:13013/cgi-bin/sendsms?username=testerpassword=foobar... #Default user group = sendsms-user username = defuser password = tester default-smsc = rhttp1 user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 #group = sendsms-user #username = user #password = pass #- # SERVICES # # These are 'responses' to sms PULL messages, i.e. messages arriving from # handsets. The response is based on message content. Only one sms-service is # applied, using the first one to match. #Can accept the following variables: #user,pass,from=%p,to=%P,text=%r,smsc(smsc id of origin)=%i,dlr-mask[dlrvalue=%d],dlr-url,[account eg usrname:passwd?]=%o #=OTHERS: internalSMSID=%I,metadata=%D,dlrreply=%A,foreignmid4dlr=%F,usr/srvcname=%n group = sms-service keyword = default catch-all = true get-url = http://localhost/fastlogger.php?usr=%nfrom=%pto=%Ptext=%asmsc=%idlrmask=%dsmsid=%I; max-messages = 0 #- # DLRs to DB # # These are delivery receipts for messages sent. #group = mysql-connection #id = mydlr #host = localhost #username = kanneluser #password = kanneluser #database = kannel_dlr #max-connections = 1 #group = dlr-db #id = mydlr #table = dlr #field-smsc = smsc #field-timestamp = timereceived #field-destination = destination #field-source = source #field-service = service #field-url = arrivalurl #field-mask = mask #field-status = status #field-boxc-id = boxc_id Here are some of the logs. Bearerbox logs: 2011-10-11 15:06:20 [28005] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 13:37:02 [30567] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 18:16:12 [7328] [339] ERROR: Couldn't fetch http://localhost/fastlogger.php?usr=userfrom=senderidto=%2B[gsmnumber]text=messagesmsc=dlrmask=0smsid=eacf217e-57bd-433a-8c5d-f8fa8fc7a023 2011-10-12 18:37:25 [7328] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 21:15:54 [11861] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 21:54:03 [2592] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2011-10-12 21:54:18 [2704] [0] PANIC: HTTP[rhttp6]: Sending not allowed. No 'send-url' specified. 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(gw_panic+0x17b) [0x4893db] 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(smsc_http_create+0x632) [0x44cc82] 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(smscconn_create+0xcec) [0x42192c] 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(smsc2_start+0x39f) [0x41529f] 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox(main+0x1029) [0x40eff9] 2011-10-12 21:54:18 [2704] [0] PANIC: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xff) [0x7fa534f5feff] 2011-10-12 21:54:18 [2704] [0] PANIC: bearerbox() [0x40da99] 2011-10-12 22:22:40 [2807] [0] WARNING: Killing signal or HTTP admin command received, shutting down... - Thanks, Eugene On 14 October 2011 06:57, Victor Miclovich vicmiclov...@gmail.com wrote: Eugene, I agree with Simon that your application can also be made to send a number of messages per second (I'm testing up to 100sms/s on my dev machine
SMPP connection speed
Hi all, My client is located in Africa while my server is located in the US. Messages are being delivered at a rate of 3 sms/second. My server has at least 1GB RAM; 600GB bandwidth and enough HDD. It is running on Ubuntu (hosted by Rackspace Slicehost). Might anyone know what other issues I should look out for that could be causing this long delays? On my local test server, I get to sent 700+ messages per second but not on the live one. Any help will be appreciated. Gene