Re: Fakesmsc
That blog is fine, please do exactly what it say. The inbound SMS that you sent will be serve by this group group = sms-service keyword = default text = “hi how are you” Check the smsbox log (in debug mode) to see the message come or not, then check the bearerbox-access log to see how kannel reply (that is the echo you are expecting). On Wed, Apr 22, 2020 at 10:47 AM Arun wrote: > hi > > I mean I mean the Message is not Echoed Back > > I am following this blog > <https://medium.com/@SudeepParajuli/quickstart-with-kannel-7005684bffb9> > > > > On Wed, Apr 22, 2020 at 9:11 AM Minh Tuan wrote: > >> Hello Arun, >> What do you mean it is not working? The fake SMS is straight forward in >> user documents. For testing purpose you should involve smsc loopback >> function also. >> >> Brs, >> Tuan. >> >> On Tue, Apr 21, 2020 at 7:39 PM Arun wrote: >> >>> hello all >>> >>> I am trying to send SMS using FAKE smsc >>> not not working , >>> kindly check the attached Image >>> any resolution will be highly appreciated >>> [image: image.png] >>> >>> >>> -- >>> *- Thanks* >>> * Arun* >>> * Mobile : 9448420662* >>> >>> >> >> -- >> <((=o-( ',_,' )-o=))=> >> >> Bản chất tốt nhưng cuộc đời xô đẩy! >> > > > -- > *- Thanks* > * Arun* > * Mobile : 9448420662* > > -- <((=o-( ',_,' )-o=))=> Bản chất tốt nhưng cuộc đời xô đẩy!
Re: Kannel DLR with Redis Storage
Hi Filippo, After received DLR from upstream SMSC, bearerbox will remove the DLR record which is queued in redis storage, then nothing left to see after that. On Fri, Apr 17, 2020 at 7:14 AM Filippo Durão wrote: > Dears, > > I have a huge difficulty to make the DLR work, because I don't have an > example script for use with networks. > > Could someone provide me with an example script for dlr-url using redis > storage? > > My log says I received it, but the status does not appear in the redis > database. > > Logs: > > 2020-04-16 23:52:16 [1] [3] INFO: sendsms sender: () > to: msg: > 2020-04-16 23:52:16 send-SMS request added - sender:tester:X > target:XXX request: 'TesteDLREngenhariaAkross' > 2020-04-16 23:52:16 Sent SMS [SMSC:17004-TX] [SVC:tester] [ACT:] [BINF:] > [FID:209462832] [META:?smpp_resp?] [from:X] [to:XXX] > [flags:-1:0:-1:-1:31] [msg:24:TesteDLREngenhariaAkross] [udh:0:] > 2020-04-16 23:52:16 *Receive DLR* [SMSC:17004-TX] [SVC:tester] [ACT:] > [BINF:] [FID:209462832] [META:?smpp_resp??orig_msg?dlr_mask=31&] > [from:53714] [to:XX] [flags:-1:-1:-1:-1:8] [msg:4:ACK/] [udh:0:] > > Redis Database: > > [image: image.png] > > Help me? > -- <((=o-( ',_,' )-o=))=> Bản chất tốt nhưng cuộc đời xô đẩy!
Re: HI I need help for this error
It is not an error as far as i known. The client TCP connection has been released after calling http api. On Tue, Apr 21, 2020 at 9:16 PM abod ahameed wrote: > 2020-04-20 17:46:23 [4592] [1] DEBUG: HTTP: Destroying HTTPClient area > 0x7fe7e8000ad0. > 2020-04-20 17:46:23 [4592] [1] DEBUG: HTTP: Destroying HTTPClient for > `188.240.98.40 > > this is my kannel.conf > group = core > admin-port = 13000 > smsbox-port = 13003 > admin-password = * > status-password = ** > #admin-deny-ip = "" > admin-allow-ip = "127.0.0.1;*.*.*.*;X.X.X.X;Y.Y.Y.Y" > log-file = "/tmp/kannel.log" > log-level = 0 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1;*.*.*.*;X.X.X.X;Y.Y.Y.Y" > #unified-prefix = "+358,00358,0;+,00" > access-log = "/tmp/access.log" > > group = smsc > smsc = smpp > smsc-id = unsi5499 > host = 35.230.140.209 > port = 2775 > receive-port = 0 > #transceiver-mode = 1 > #interface-version=34 > #transceiver-mode = false > #throughput = 10 > smsc-username = > smsc-password = ** > system-type = SMPP > transceiver-mode=true > > > group = smsbox > smsbox-id = "**" > bearerbox-host= "my server IP" > sendsms-port = 13013 > global-sender = 13013 > sendsms-chars = "0123456789 +-" > log-file = "/tmp/smsbox.log" > #log-level = 0 > access-log = "/tmp/access.log" > > > group = sendsms-user > username = unsi5499 > password = *** > default-sender=+1234567890 > #forced-smsc = smpp-nexmo > #name = users > user-deny-ip = "*.*.*.*" > user-allow-ip = "127.0.0.1;server my ip;X.X.X.X;Y.Y.Y.Y" > max-messages = 10 > #concatenation = 1 > > group = sms-service > keyword = nop > text = "You asked nothing and I did it!" > catch-all = yes > > -- <((=o-( ',_,' )-o=))=> Bản chất tốt nhưng cuộc đời xô đẩy!
Re: Fakesmsc
Hello Arun, What do you mean it is not working? The fake SMS is straight forward in user documents. For testing purpose you should involve smsc loopback function also. Brs, Tuan. On Tue, Apr 21, 2020 at 7:39 PM Arun wrote: > hello all > > I am trying to send SMS using FAKE smsc > not not working , > kindly check the attached Image > any resolution will be highly appreciated > [image: image.png] > > > -- > *- Thanks* > * Arun* > * Mobile : 9448420662* > > -- <((=o-( ',_,' )-o=))=> Bản chất tốt nhưng cuộc đời xô đẩy!
Re: Do I need to restart Kannel after included file change
Hi Ruben, What content inside your MNP.txt? On Wed, 23 Jan 2019, 13:43 Ruben Melikyan Hello, > > > > I am using Kannel 1.4.4. > > In my gateway, I am handling MNP with files, which are included in SMSC > config. > > > > Example: > > group = smsc > > smsc = smpp > > smsc-id = XXX > > system-type = "" > > host = X.X.X.X > > port = > > transceiver-mode = true > > smsc-username = * > > smsc-password = * > > system-type = "" > > enquire-link-interval = 60 > > source-addr-ton = 5 > > source-addr-npi = 1 > > dest-addr-ton = 0 > > dest-addr-npi = 0 > > alt-charset = "UTF-8" > > reconnect-delay = 60 > > connection-timeout = 120 > > reroute-dlr = true > > #msg-id-type = 0x03 > > validityperiod = 2880 > > log-file = "/var/log/kannel/XXX.log" > > log-level = 3 > > alt-dcs = no > > include = "/etc/kannel/MNP/ MNP.txt" > > > > Actually MNP DB is updating once a day. This means that MNP.txt must be > updated too. > > > > The question is - should I restart kannel after replacing old MNP.txt file > with updated one, or kannel will handle updated file without restart. > > > > Thanks > > > > *Best regards,* > > *Ruben Melikyan* > > >
External DLR storage inside database schema
I'm trying to configure brearerbox DLR using Postgresql. It is no problem if i have a kannel database and a dlr table inside (actually dlr table is inside public schema by Postgresql default). But in case i want to use other schema, such as myDB (database) -> mySchema (schema) -> dlr (table), i don't know how to configure as user manual does not tell me how to configure dlr table inside a specific schema. Appreciate for any idea. Thanks.
Re: send new line character
Ammar, Use Line1\r\nLine2\r\nLine3... with url encoded, of course. On May 6, 2015 5:07 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for the reply. I'm submitting message with url encode to the Kannel. But I'm not getting real message on cell phone. It shown in single line message. Thanks Ammar Ali Pune (M.H.) On Wed, May 6, 2015 at 2:21 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hello Ammar, New line character is \n without quotes and should be encoded before submitting it to kannel send-sms url. How are you submitting sms to kannel? Regards Tapan Thapa On Wed, May 6, 2015 at 12:31 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello All, I'm sending new line character using kannel but I'm not getting this on cell phone. I'm also google about his issue but I'm not getting proper solution for this. So, Please suggest me that how to resolve this issue. Thanks Ammar Ali Pune (M.H.)
Re: send new line character
Sorry, pls try Line1%0ALine2%0ALine3 On May 6, 2015 5:14 PM, Minh Tuan handsam...@gmail.com wrote: Ammar, Use Line1\r\nLine2\r\nLine3... with url encoded, of course. On May 6, 2015 5:07 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for the reply. I'm submitting message with url encode to the Kannel. But I'm not getting real message on cell phone. It shown in single line message. Thanks Ammar Ali Pune (M.H.) On Wed, May 6, 2015 at 2:21 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hello Ammar, New line character is \n without quotes and should be encoded before submitting it to kannel send-sms url. How are you submitting sms to kannel? Regards Tapan Thapa On Wed, May 6, 2015 at 12:31 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello All, I'm sending new line character using kannel but I'm not getting this on cell phone. I'm also google about his issue but I'm not getting proper solution for this. So, Please suggest me that how to resolve this issue. Thanks Ammar Ali Pune (M.H.)
Regarding: Start up Configuration of Kannel
Hi Fakirchand, Refer to ur log, seem bearerbox is shutting down immediately after starting, it mean your kannel.conf if lack of smsbox group even you may use it or not. So in ur kannel.conf, you have to config at least 2 group are core and smsbox. People say right, you must read the manual, it's good enough, try a lot of testing as you can then you'll find the way (even you are a dummy like me :)) Tuan. On Wed, Jun 25, 2014 at 5:00 PM, 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: Regarding: Start up Configuration of Kannel (Fakirchand Patidar) 2. Re: Regarding: Start up Configuration of Kannel (spameden) -- Message: 1 Date: Tue, 24 Jun 2014 18:45:34 +0530 From: Fakirchand Patidar bulk24sms.fcpati...@gmail.com To: users@kannel.org Subject: Re: Regarding: Start up Configuration of Kannel Message-ID: camvgjjotnh_ddx_nviwse4ucnzfrouc0fbqvswwzyasqpjf...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi, I'm new with Kannel, so please help me. When I'm configuring initial setup of Kannel (Bearerbox, smsbox) then I'm not getting values of there group variables from user guide. Can you explain this in details and send me some dummy application for sending short message. I'm waiting for your valuable response. On Tue, Jun 24, 2014 at 11:37 AM, MOSES KARIUKI kariuk...@gmail.com wrote: If it shows no error, it should be running fine. Moses On Tue, Jun 24, 2014 at 8:52 AM, Fakirchand Patidar bulk24sms.fcpati...@gmail.com wrote: Hello, When I'm configuring *kannel.conf* file for Core group and start bearerbox then I'm getting this below output: $ ./bearerbox -v 0 kannel.conf 2014-06-24 11:13:37 [5784] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2014-06-24 11:13:37 [5784] [0] INFO: DLR using storage type: internal 2014-06-24 11:13:37 [5784] [0] DEBUG: Kannel bearerbox version `1.4.3'. Build `Jun 21 2014 20:01:15', compiler `4.8.3'. System CYGWIN_NT-6.1, release 1.7.30(0.272/5/3), version 2014-05-23 10:36, machine i686. Hostname Patidar.it.bulk24sms.net, IP 192.168.1.2. Libxml version 2.9.1. Using OpenSSL 1.0.1h 5 Jun 2014. Using native malloc. 2014-06-24 11:13:37 [5784] [0] INFO: Added logfile `kannel.log' with level `1'. 2014-06-24 11:13:37 [5784] [0] INFO: HTTP: Opening server at port 14000. 2014-06-24 11:13:37 [5784] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2014-06-24 11:13:37 [5784] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 5784. 2014-06-24 11:13:37 [5784] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2014-06-24 11:13:37 [5784] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 5784. 2014-06-24 11:13:37 [5784] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 5784. 2014-06-24 11:13:37 [5784] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2014-06-24 11:13:37 [5784] [0] INFO: 2014-06-24 11:13:37 [5784] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2014-06-24 11:13:42 [5784] [0] INFO: MAIN: Start-up done, entering mainloop 2014-06-24 11:13:42 [5784] [0] DEBUG: Shutting down Kannel... 2014-06-24 11:13:42 [5784] [0] DEBUG: shutting down smsc 2014-06-24 11:13:42 [5784] [0] DEBUG: shutting down udp 2014-06-24 11:13:42 [5784] [0] INFO: All flow threads have died, killing core 2014-06-24 11:13:42 [5784] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2014-06-24 11:13:42 [5784] [3] DEBUG: HTTP: No clients with requests, quitting. 2014-06-24 11:13:42 [5784] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates. 2014-06-24 11:13:42 [5784] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2014-06-24 11:13:42 [5784] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2014-06-24 11:13:42 [5784] [0] INFO: Total WDP messages: received 0, sent 0 2014-06-24 11:13:42 [5784] [0] INFO: Total SMS messages: received 0, sent 0 2014-06-24 11:13:42 [5784] [0] DEBUG: Immutable octet strings: 129. Is this correct that bearerbox has been start or not? Please suggest me as soon as possible. - *Thanks Regards, * *Fakirchand Patidar* Software Developer Bulk24SMS Networks Cell: +919754178790 -- - *Thanks Regards,* *Fakirchand Patidar* Software
SMPP Port Error
Hi Faizan, In smsc group, only need: port = x transceiver-mode = true Brs, Tuan. -- Message: 1 Date: Tue, 10 Jun 2014 23:43:40 +0500 From: Faizan Mirza efuz...@gmail.com To: Kannel Users users@kannel.org Subject: SMPP Port Error Message-ID: CAK_nhNdCjWn-faK2BC+VvzXXAhHfu4-0yPLQmK51O= x-qs7...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hello, I was using kannel 1.4.3 it was working fine, now when i updated from svn it is working fine but giving me error regarding ports of SMPP.. Error: Configuration file can only have port or receive-port. Usage of both in one group is deprecated! how do i add both port and receive-port to receive delivery report.. Please help. -- next part -- An HTML attachment was scrubbed... URL: http://www.kannel.org/pipermail/users/attachments/20140610/1b5d7bf3/attachment-0001.html
Length of Concatenated SMS
Hello, I'm using the native kannel concatenated sms. Just question for the length of each part. In theory, each part should has 153 characters long (134 octet), but i always observe 2nd part has 151 characters only ( in case my message is spitted to 3 or 4 parts). Why? Brs, Tuan. -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!
Re: opensmppbox consume a lot of MEM
Yes, other boxs and processes stood still for weeks. Only opensmppbox increase mem usage by time, even can monitor by eyes. Now it's reaching to 41.2% of server memory from 0.2% as previous mail. The increasing speed along with traffic volume as my observation. I used some commands to check actual mem usage such as top, htop,... also few scripts found on google :) minhtuan@han-vasplatform-02:~$ ps aux | awk '{print $2, $4, $11}' | sort -k2r | head -n 10 PID %MEM COMMAND 13733 41.2 /usr/local/sbin/opensmppbox 31511 18.0 /usr/sbin/mysqld 16573 0.1 /usr/sbin/apache2 16580 0.1 /usr/sbin/apache2 16583 0.1 /usr/sbin/apache2 16614 0.1 /usr/sbin/apache2 16629 0.1 /usr/sbin/apache2 16650 0.1 /usr/sbin/apache2 16651 0.1 /usr/sbin/apache2 Thank you. Tuan. On Sat, Nov 16, 2013 at 4:06 AM, Rene Kluwen rene.klu...@chimit.nl wrote: And you verified that it is opensmppbox that is eating memory? And not sqlbox? Just checking. == Rene *From:* Minh Tuan [mailto:handsam...@gmail.com] *Sent:* vrijdag 15 november 2013 20:24 *To:* Rene Kluwen *Cc:* users@kannel.org *Subject:* Re: opensmppbox consume a lot of MEM I don't know where to find the opensmppbox version but i downloaded the lastest SVN with changelog: *2013-09-01 Rene Kluwen rene.kluwen at chimit.nl http://chimit.nl Fixed a small bug in the routing-upon-receiver number where opensmppbox would crash at boot-timeif the particular config section is not defined.* I attached log and config files. Just post here some things to high light: Here is the 'top' when Kannel starting, opensmppbox only occupied 0.2% mem, it'll reach to 80% in 1 day: [image: Image removed by sender.] *opensmppbox log:* 2013-11-16 00:59:23 [13219] [2] DEBUG: SMPP PDU 0x83c9288 dump: 2013-11-16 00:59:23 [13219] [2] DEBUG: type_name: submit_sm 2013-11-16 00:59:23 [13219] [2] DEBUG: command_id: 4 = 0x0004 2013-11-16 00:59:23 [13219] [2] DEBUG: command_status: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: sequence_number: 7 = 0x0007 2013-11-16 00:59:23 [13219] [2] DEBUG: service_type: NULL 2013-11-16 00:59:23 [13219] [2] DEBUG: source_addr_ton: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: source_addr_npi: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: source_addr: 32665 2013-11-16 00:59:23 [13219] [2] DEBUG: dest_addr_ton: 1 = 0x0001 2013-11-16 00:59:23 [13219] [2] DEBUG: dest_addr_npi: 1 = 0x0001 2013-11-16 00:59:23 [13219] [2] DEBUG: destination_addr: 841869066432 2013-11-16 00:59:23 [13219] [2] DEBUG: esm_class: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: protocol_id: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: priority_flag: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: schedule_delivery_time: NULL 2013-11-16 00:59:23 [13219] [2] DEBUG: validity_period: NULL 2013-11-16 00:59:23 [13219] [2] DEBUG: registered_delivery: 1 = 0x0001 2013-11-16 00:59:23 [13219] [2] DEBUG: replace_if_present_flag: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: data_coding: 8 = 0x0008 2013-11-16 00:59:23 [13219] [2] DEBUG: sm_default_msg_id: 0 = 0x 2013-11-16 00:59:23 [13219] [2] DEBUG: sm_length: 72 = 0x0048 2013-11-16 00:59:23 [13219] [2] DEBUG: short_message: 2013-11-16 00:59:23 [13219] [2] DEBUG:Octet string at 0x83cc098: 2013-11-16 00:59:23 [13219] [2] DEBUG: len: 72 2013-11-16 00:59:23 [13219] [2] DEBUG: size: 73 2013-11-16 00:59:23 [13219] [2] DEBUG: immutable: 0 2013-11-16 00:59:23 [13219] [2] DEBUG: data: 00 34 00 31 00 36 00 36 00 20 00 6c 00 e0 00 20 .4.1.6.6. .l... 2013-11-16 00:59:23 [13219] [2] DEBUG: data: 00 6d 00 e3 00 20 00 78 00 e1 00 63 00 20 00 6e .m... .x...c. .n 2013-11-16 00:59:23 [13219] [2] DEBUG: data: 00 68 1e ad 00 6e 00 20 00 46 00 61 00 63 00 65 .h...n. .F.a.c.e 2013-11-16 00:59:23 [13219] [2] DEBUG: data: 00 62 00 6f 00 6f 00 6b 00 20 00 63 1e e7 00 61 .b.o.o.k. .c...a 2013-11-16 00:59:23 [13219] [2] DEBUG: data: 00 20 00 62 1e a1 00 6e . .b...n 2013-11-16 00:59:23 [13219] [2] DEBUG:Octet string dump ends. 2013-11-16 00:59:23 [13219] [2] DEBUG: SMPP PDU dump ends. 2013-11-16 00:59:23 [13219] [2] DEBUG: routed msg '32665:abcdefgh' to smsc 'hnlive' 2013-11-16 00:59:23 [13219] [2] DEBUG: Msg object at 0x83c90d8: 2013-11-16 00:59:23 [13219] [2] DEBUG: type: sms 2013-11-16 00:59:23 [13219] [2] DEBUG: sms.sender: 2013-11-16 00:59:23 [13219] [2] DEBUG: Octet string at 0x83cc398: 2013-11-16 00:59:23 [13219] [2] DEBUG:len: 5 2013-11-16 00:59:23 [13219] [2] DEBUG:size: 6 2013-11-16 00:59:23 [13219] [2] DEBUG:immutable: 0 2013-11-16 00:59:23 [13219] [2] DEBUG:data: 33 32 36 36 3532665 2013-11-16 00:59:23 [13219] [2] DEBUG: Octet string dump ends. 2013-11-16 00:59:23 [13219] [2] DEBUG: sms.receiver: 2013-11-16 00:59:23
Re: opensmppbox consume a lot of MEM
Thanks Rene Stipe, I'll internal discuss with my boss and officially contact with you for the detail. I'm using the lastest version opensmppbox, by the way. Thanks again. Brs, Tuan. On Thu, Nov 14, 2013 at 5:27 AM, Rene Kluwen rene.klu...@chimit.nl wrote: Lol... even though I think this post belongs to the commercial mailing list, I can -if you are doing that amount of messages- recommend Stipe's solution. Having said that. Obviously there's something wrong in the opensmppbox code that needs to be fixed. I will try to free some time to see where I can free the memory (pun intended :P). Which version of opensmppbox are you using? =+= Rene -Original Message- From: users [mailto:users-boun...@kannel.org] On Behalf Of Stipe Tolj Sent: woensdag 13 november 2013 21:38 To: Minh Tuan Cc: users@kannel.org Subject: Re: opensmppbox consume a lot of MEM Am 13.11.2013 11:54, schrieb Minh Tuan: By the way, always a lot of the smpp logs say that: 2013-11-13 17:50:49 [18506] [21] ERROR: SMPP: Unknown TLV `dlr_err', don't send. nop, that's not an issue for the increase of memory. If your OS layer (kernel) is really killing the process at some time (indicated by the syslog statement), then it is really a memory leak which increases by the time the traffic is flowing through the box. valgrind can provide details if you run it under production environment conditions for some time. Though, it reduces performance of the IO throughput for the messages drastically. Since you seem to be a professional user (Vietnamobile), I would strongly suggest to move for the commercial Kannel SMPP v5.0 server (smppbox), which is save against such memory leaking, and performs on several hundred sites around the globe, including for mobile network operators. Please let me know if I can assist you any further in this regards if you are interest in more details. Bes Regards, Stipe -- --- Kölner Landstrasse 419 40589 Düsseldorf, NRW, Germany tolj.org system architecture Kannel Software Foundation (KSF) http://www.tolj.org/ http://www.kannel.org/ mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org --- -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!
Re: opensmppbox consume a lot of MEM
From the beginning, opensmppbox consumes ~0.7% of my mem only and grow up quickly. Until it reachs to ~80% for both RAM and Swap, it is restarted automatically (before, syslog said OS killed the PID opensmmppbox due to memory exceeded, but now i observe that opensmppbox just restarted after i plug more RAM sticks). Then system back to very low mem usage and grow up about 1MB/3 seconds, so on. MT from client to opensmppbox now is 40 TPS. Brs, Tuan. On Wed, Nov 13, 2013 at 4:24 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Yes, this is the idea. But I meant that I want an overview like that whenever the memory problems occur (memory starts growing). == Rene *From:* Minh Tuan [mailto:handsam...@gmail.com] *Sent:* woensdag 13 november 2013 6:26 *To:* Rene Kluwen *Cc:* users@kannel.org *Subject:* Re: opensmppbox consume a lot of MEM Thanks Rene for the reply. Here is the valgrind running result. Actully i blind with this . minhtuan@han-vasplatform-02:/etc/kannel$ sudo valgrind --tool=memcheck --leak-check=full opensmppbox ==29801== Memcheck, a memory error detector ==29801== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==29801== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==29801== Command: opensmppbox ==29801== 2013-11-13 12:18:02 [29801] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/smsc_fake.conf' (on line 55 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/smsc_hn_live.conf' (on line 59 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_ota.conf' (on line 63 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_sms_survey.conf' (on line 65 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_route.conf' (on line 67 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Kannel opensmppbox version svn-runknown gwlib version `svn-runknown'. Build `Aug 1 2013 14:11:45', compiler `4.7.2'. System Linux, release 3.2.0-4-686-pae, version #1 SMP Debian 3.2.46-1, machine i686. Hostname han-vasplatform-02, IP 127.0.1.1. Libxml version 2.8.0. Using OpenSSL 1.0.1e 11 Feb 2013. Compiled with MySQL 5.5.31, using MySQL 5.5.31. Using native malloc. 2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: Connected to server at localhost. 2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: server version 5.5.31-0+wheezy1, client version 5.5.31. 2013-11-13 12:18:04 [29801] [0] INFO: DLR using storage type: mysql 2013-11-13 12:18:04 [29801] [0] PANIC: No 'opensmppbox' group in configuration 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_backtrace+0xb1) [0x80a2411] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_panic+0xc3) [0x80a24e3] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(main+0x1230) [0x8053270] 2013-11-13 12:18:04 [29801] [0] PANIC: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x476fe46] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox() [0x8053335] ==29801== ==29801== HEAP SUMMARY: ==29801== in use at exit: 226,184 bytes in 4,478 blocks ==29801== total heap usage: 7,662 allocs, 3,184 frees, 560,035 bytes allocated ==29801== ==29801== LEAK SUMMARY: ==29801==definitely lost: 0 bytes in 0 blocks ==29801==indirectly lost: 0 bytes in 0 blocks ==29801== possibly lost: 0 bytes in 0 blocks ==29801==still reachable: 226,184 bytes in 4,478 blocks ==29801== suppressed: 0 bytes in 0 blocks ==29801== Reachable blocks (those to which a pointer was found) are not shown. ==29801== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==29801== ==29801== For counts of detected and suppressed errors, rerun with: -v ==29801== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 45 from 10) minhtuan@han-vasplatform-02:/etc/kannel$ Brs, Tuan. On Tue, Nov 12, 2013 at 9:17 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Sounds like a memory leak somewhere to me. And/or maybe a race condition. Maybe you can run one time with valgrind running? == Rene *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Minh Tuan *Sent:* zaterdag 28 september 2013 5:22 *To:* users@kannel.org *Subject:* opensmppbox consume a lot of MEM Dear all, I need help as opensmppbox is consuming a lot of my server's memory. After occupied 80% of RAM (total RAM is 2G), it's also eating 50% of swap memory (total 3G) and increasing. My configuration is: Client - opensmppbox(mysql dlr) - sqlbox - bearerbox(mysql dlr) - operator SMSC Opensmppbox has 1 Client only, but he is binding 6 connections (via Internet), with 50 short codes and ~30 TPS of throughput, connections are lost few times per day (automatic re-connect). Of course, i'm going to plug
Re: opensmppbox consume a lot of MEM
By the way, always a lot of the smpp logs say that: 2013-11-13 17:50:49 [18506] [21] ERROR: SMPP: Unknown TLV `dlr_err', don't send. Somehow opensmppbox keeps this failed one and increase the mem usage? client bind with transceiver mode. Brs, Tuan. On Wed, Nov 13, 2013 at 5:50 PM, Minh Tuan handsam...@gmail.com wrote: From the beginning, opensmppbox consumes ~0.7% of my mem only and grow up quickly. Until it reachs to ~80% for both RAM and Swap, it is restarted automatically (before, syslog said OS killed the PID opensmmppbox due to memory exceeded, but now i observe that opensmppbox just restarted after i plug more RAM sticks). Then system back to very low mem usage and grow up about 1MB/3 seconds, so on. MT from client to opensmppbox now is 40 TPS. Brs, Tuan. On Wed, Nov 13, 2013 at 4:24 PM, Rene Kluwen rene.klu...@chimit.nlwrote: Yes, this is the idea. But I meant that I want an overview like that whenever the memory problems occur (memory starts growing). == Rene *From:* Minh Tuan [mailto:handsam...@gmail.com] *Sent:* woensdag 13 november 2013 6:26 *To:* Rene Kluwen *Cc:* users@kannel.org *Subject:* Re: opensmppbox consume a lot of MEM Thanks Rene for the reply. Here is the valgrind running result. Actully i blind with this . minhtuan@han-vasplatform-02:/etc/kannel$ sudo valgrind --tool=memcheck --leak-check=full opensmppbox ==29801== Memcheck, a memory error detector ==29801== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==29801== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==29801== Command: opensmppbox ==29801== 2013-11-13 12:18:02 [29801] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/smsc_fake.conf' (on line 55 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/smsc_hn_live.conf' (on line 59 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_ota.conf' (on line 63 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_sms_survey.conf' (on line 65 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_route.conf' (on line 67 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Kannel opensmppbox version svn-runknown gwlib version `svn-runknown'. Build `Aug 1 2013 14:11:45', compiler `4.7.2'. System Linux, release 3.2.0-4-686-pae, version #1 SMP Debian 3.2.46-1, machine i686. Hostname han-vasplatform-02, IP 127.0.1.1. Libxml version 2.8.0. Using OpenSSL 1.0.1e 11 Feb 2013. Compiled with MySQL 5.5.31, using MySQL 5.5.31. Using native malloc. 2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: Connected to server at localhost. 2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: server version 5.5.31-0+wheezy1, client version 5.5.31. 2013-11-13 12:18:04 [29801] [0] INFO: DLR using storage type: mysql 2013-11-13 12:18:04 [29801] [0] PANIC: No 'opensmppbox' group in configuration 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_backtrace+0xb1) [0x80a2411] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_panic+0xc3) [0x80a24e3] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(main+0x1230) [0x8053270] 2013-11-13 12:18:04 [29801] [0] PANIC: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x476fe46] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox() [0x8053335] ==29801== ==29801== HEAP SUMMARY: ==29801== in use at exit: 226,184 bytes in 4,478 blocks ==29801== total heap usage: 7,662 allocs, 3,184 frees, 560,035 bytes allocated ==29801== ==29801== LEAK SUMMARY: ==29801==definitely lost: 0 bytes in 0 blocks ==29801==indirectly lost: 0 bytes in 0 blocks ==29801== possibly lost: 0 bytes in 0 blocks ==29801==still reachable: 226,184 bytes in 4,478 blocks ==29801== suppressed: 0 bytes in 0 blocks ==29801== Reachable blocks (those to which a pointer was found) are not shown. ==29801== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==29801== ==29801== For counts of detected and suppressed errors, rerun with: -v ==29801== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 45 from 10) minhtuan@han-vasplatform-02:/etc/kannel$ Brs, Tuan. On Tue, Nov 12, 2013 at 9:17 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Sounds like a memory leak somewhere to me. And/or maybe a race condition. Maybe you can run one time with valgrind running? == Rene *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Minh Tuan *Sent:* zaterdag 28 september 2013 5:22 *To:* users@kannel.org *Subject:* opensmppbox consume a lot of MEM Dear all, I need help as opensmppbox is consuming a lot of my server's memory. After occupied 80% of RAM (total RAM is 2G), it's also eating 50% of swap memory (total 3G
Re: opensmppbox consume a lot of MEM
Thanks Rene for the reply. Here is the valgrind running result. Actully i blind with this . minhtuan@han-vasplatform-02:/etc/kannel$ sudo valgrind --tool=memcheck --leak-check=full opensmppbox ==29801== Memcheck, a memory error detector ==29801== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al. ==29801== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info ==29801== Command: opensmppbox ==29801== 2013-11-13 12:18:02 [29801] [0] INFO: Debug_lvl = -1, log_file = none, log_lvl = 0 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/smsc_fake.conf' (on line 55 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/smsc_hn_live.conf' (on line 59 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_ota.conf' (on line 63 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_sms_survey.conf' (on line 65 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Loading include file `/etc/kannel/service_route.conf' (on line 67 of file kannel.conf). 2013-11-13 12:18:03 [29801] [0] DEBUG: Kannel opensmppbox version svn-runknown gwlib version `svn-runknown'. Build `Aug 1 2013 14:11:45', compiler `4.7.2'. System Linux, release 3.2.0-4-686-pae, version #1 SMP Debian 3.2.46-1, machine i686. Hostname han-vasplatform-02, IP 127.0.1.1. Libxml version 2.8.0. Using OpenSSL 1.0.1e 11 Feb 2013. Compiled with MySQL 5.5.31, using MySQL 5.5.31. Using native malloc. 2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: Connected to server at localhost. 2013-11-13 12:18:04 [29801] [0] INFO: MYSQL: server version 5.5.31-0+wheezy1, client version 5.5.31. 2013-11-13 12:18:04 [29801] [0] INFO: DLR using storage type: mysql 2013-11-13 12:18:04 [29801] [0] PANIC: No 'opensmppbox' group in configuration 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_backtrace+0xb1) [0x80a2411] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(gw_panic+0xc3) [0x80a24e3] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox(main+0x1230) [0x8053270] 2013-11-13 12:18:04 [29801] [0] PANIC: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0x476fe46] 2013-11-13 12:18:04 [29801] [0] PANIC: opensmppbox() [0x8053335] ==29801== ==29801== HEAP SUMMARY: ==29801== in use at exit: 226,184 bytes in 4,478 blocks ==29801== total heap usage: 7,662 allocs, 3,184 frees, 560,035 bytes allocated ==29801== ==29801== LEAK SUMMARY: ==29801==definitely lost: 0 bytes in 0 blocks ==29801==indirectly lost: 0 bytes in 0 blocks ==29801== possibly lost: 0 bytes in 0 blocks ==29801==still reachable: 226,184 bytes in 4,478 blocks ==29801== suppressed: 0 bytes in 0 blocks ==29801== Reachable blocks (those to which a pointer was found) are not shown. ==29801== To see them, rerun with: --leak-check=full --show-leak-kinds=all ==29801== ==29801== For counts of detected and suppressed errors, rerun with: -v ==29801== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 45 from 10) minhtuan@han-vasplatform-02:/etc/kannel$ Brs, Tuan. On Tue, Nov 12, 2013 at 9:17 PM, Rene Kluwen rene.klu...@chimit.nl wrote: Sounds like a memory leak somewhere to me. And/or maybe a race condition. Maybe you can run one time with valgrind running? == Rene *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Minh Tuan *Sent:* zaterdag 28 september 2013 5:22 *To:* users@kannel.org *Subject:* opensmppbox consume a lot of MEM Dear all, I need help as opensmppbox is consuming a lot of my server's memory. After occupied 80% of RAM (total RAM is 2G), it's also eating 50% of swap memory (total 3G) and increasing. My configuration is: Client - opensmppbox(mysql dlr) - sqlbox - bearerbox(mysql dlr) - operator SMSC Opensmppbox has 1 Client only, but he is binding 6 connections (via Internet), with 50 short codes and ~30 TPS of throughput, connections are lost few times per day (automatic re-connect). Of course, i'm going to plug more RAM sticks in to server but i'm afraid of it will not help in this situation. Appreciate you guy can give me some advise and experience. Many thanks. Nguyen Minh Tuan from Vietnamobile. -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!
Opensmppbox issue: NACK/No SMSC
You should add into your Opensmppbox.conf on Kannel server: route-to-smsc = Promotional Try to submit another message and paste the bearerbox-asscess.log of Kannel server here for more information. Thank you. Brs, Tuan. -- Message: 2 Date: Sat, 28 Sep 2013 12:49:47 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: users@kannel.org Subject: Opensmppbox issue: NACK/No SMSC Message-ID: cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, I am submitting SMS from Kannel based SMPP client to a different server having kannel based setup+opensmppbox+sqlbox stack. The SMS is always getting REJECTED. The issuea are: 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC and then rejecting it 2.) SQLBOX shows no activity except an error: sql_id cannot be null I have this setup SMSC--- BB --- SQLBOX Opensmppbox --- SMPP client // HERE ARE THE CONFIG FILES-// //Kannel.conf group=core admin-port = 14000 smsbox-port = 13001 admin-password = sam status-password = log-file = /var/log/kannel/kannel.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = kannel.store dlr-storage = mysql #- # SMSC CONNECTIONS group=smsc smsc = smpp smsc-id = Promotional host = xxx.xx.xxx.xxx port = smsc-username = x smsc-password = x system-type = VMA source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 0 dest-addr-npi = 0 allowed-smsc-id = Promotional transceiver-mode = true receive-port = #- # SMSBOX SETUP group=smsbox smsbox-id = main-box bearerbox-host = 127.0.0.1 sendsms-port = 14014 global-sender = 14014 log-file = /tmp/smsbox.log access-log = /tmp/access.log group=smsbox-route smsbox-id = smppclient smsc-id = Promotional #- # SEND-SMS USERS group=sendsms-user username = sam password = sam max-messages = 5 concatenation = true #- # SERVICES group=sms-service keyword = nop text = You asked nothing and I did it! group=sms-service keyword = default get-url = http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i; max-messages = 0 group = mysql-connection id = mydlr host = localhost username = _sam password = database = _xxx max-connections = 5 group = dlr-db id = mydlr table = sc_kannel_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 // Opensmppbox.conf group = core dlr-storage = mysql group = opensmppbox opensmppbox-id = nvsmpp opensmppbox-port = 2345 bearerbox-host = localhost bearerbox-port = 13014 use-systemid-as-smsboxid = true log-file = /var/log/smpp/smppbox.log our-system-id = VSMSC smpp-logins = smpplogins.txt group = mysql-connection id = mydlr host = localhost username = _xxx password = database = _xxx #DLR Table Structure group = dlr-db id = mydlr table = sc_smpp_dlr field-smsc = smsc field-timestamp = timestamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id // SQLbox.conf group = sqlbox id = sqlbox-db smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 smsbox-port = 13014 smsbox-port-ssl = false sql-log-table = sc_sqlbox_log sql-insert-table = sc_smpp_incoming log-file = /var/log/nvsmpp/test_smpp/sqlbox.log log-level = 0 group = mysql-connection id = sqlbox-db host = localhost username = x_xxx password = xxx database = _ # you can increase this upon a higher load max-connections = 5 // SMPPlogins.txt file smppclient goodsmpp testsmpp *.*.*.* Now I've done everything as directed but still, its not working. Here is what I got from SMPPBOXLOG file //---SMPP PDU DUMP- 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP[smppclient]: Got PDU: 2013-09-28 02:14:17 [2578] [11] DEBUG: SMPP PDU 0x7f9874001380 dump: 2013-09-28 02:14:17 [2578] [11] DEBUG: type_name: submit_sm 2013-09-28 02:14:17 [2578] [11] DEBUG: command_id: 4 = 0x0004 2013-09-28 02:14:17 [2578] [11] DEBUG: command_status: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: sequence_number: 2377 = 0x0949 2013-09-28 02:14:17 [2578] [11] DEBUG: service_type: NULL 2013-09-28 02:14:17 [2578] [11] DEBUG: source_addr_ton: 5 = 0x0005 2013-09-28 02:14:17 [2578] [11] DEBUG: source_addr_npi: 0 = 0x 2013-09-28 02:14:17 [2578] [11] DEBUG: source_addr: OPAUTO 2013-09-28 02:14:17 [2578]
Re: users Digest, Vol 85, Issue 39
This is another question that is very clear in opensmppbox manual. Refer to it, you absolutely have to use smsc-route to route clients to particular SMSC. Back to your original question, cause you are using allowed-smsc-id = Promotional in your smsc configuration, so if you don't specify smsc in your submissions, BB will not route to this SMSC automatically. On Sat, Sep 28, 2013 at 4:11 PM, 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: Opensmppbox issue: NACK/No SMSC (Saurabh Pandey) -- Message: 1 Date: Sat, 28 Sep 2013 14:41:21 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: Minh Tuan handsam...@gmail.com Cc: users@kannel.org Subject: Re: Opensmppbox issue: NACK/No SMSC Message-ID: CAHiPY2UYBPgUPNnmziwbpeJq= ywnlgqy+qulr7scet-z1a0...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi, thanks for the reply. But I want different smsc routing for different smpp clients. If i add route-to-smsc, wouldn't that direct all traffic to a single smsc? On Sat, Sep 28, 2013 at 1:50 PM, Minh Tuan handsam...@gmail.com wrote: You should add into your Opensmppbox.conf on Kannel server: route-to-smsc = Promotional Try to submit another message and paste the bearerbox-asscess.log of Kannel server here for more information. Thank you. Brs, Tuan. -- Message: 2 Date: Sat, 28 Sep 2013 12:49:47 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: users@kannel.org Subject: Opensmppbox issue: NACK/No SMSC Message-ID: cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, I am submitting SMS from Kannel based SMPP client to a different server having kannel based setup+opensmppbox+sqlbox stack. The SMS is always getting REJECTED. The issuea are: 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC and then rejecting it 2.) SQLBOX shows no activity except an error: sql_id cannot be null I have this setup SMSC--- BB --- SQLBOX Opensmppbox --- SMPP client // HERE ARE THE CONFIG FILES-// //Kannel.conf group=core admin-port = 14000 smsbox-port = 13001 admin-password = sam status-password = log-file = /var/log/kannel/kannel.log box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access.log store-file = kannel.store dlr-storage = mysql #- # SMSC CONNECTIONS group=smsc smsc = smpp smsc-id = Promotional host = xxx.xx.xxx.xxx port = smsc-username = x smsc-password = x system-type = VMA source-addr-ton = 0 source-addr-npi = 0 dest-addr-ton = 0 dest-addr-npi = 0 allowed-smsc-id = Promotional transceiver-mode = true receive-port = #- # SMSBOX SETUP group=smsbox smsbox-id = main-box bearerbox-host = 127.0.0.1 sendsms-port = 14014 global-sender = 14014 log-file = /tmp/smsbox.log access-log = /tmp/access.log group=smsbox-route smsbox-id = smppclient smsc-id = Promotional #- # SEND-SMS USERS group=sendsms-user username = sam password = sam max-messages = 5 concatenation = true #- # SERVICES group=sms-service keyword = nop text = You asked nothing and I did it! group=sms-service keyword = default get-url = http://domain.com/index.php?senderid=%Pphone=%preply=%asmscid=%i; max-messages = 0 group = mysql-connection id = mydlr host = localhost username = _sam password = database = _xxx max-connections = 5 group = dlr-db id = mydlr table = sc_kannel_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 // Opensmppbox.conf group = core dlr-storage = mysql group = opensmppbox opensmppbox-id = nvsmpp opensmppbox-port = 2345 bearerbox-host = localhost bearerbox-port = 13014 use-systemid-as-smsboxid = true log-file = /var/log/smpp/smppbox.log our-system-id = VSMSC smpp-logins = smpplogins.txt group = mysql-connection id = mydlr host = localhost
Re: users Digest, Vol 85, Issue 41
Okay, sorry for missing your second trouble. I can say your sqlbox configuration is fine, so have you checked the DB tables? Also paste the sqlbox log here for more information? Cause you having 2 issues, my advised is better choosing a workaround solution in case we are don't know it well enough. First, bypass the sqlbox and submit somethings, since it works (mysql dlr also works), then come back to the sqlbox. Brs, Minh Tuan. On Sat, Sep 28, 2013 at 7:15 PM, 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: users Digest, Vol 85, Issue 39 (Saurabh Pandey) -- Message: 1 Date: Sat, 28 Sep 2013 17:45:17 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: Minh Tuan handsam...@gmail.com Cc: users@kannel.org Subject: Re: users Digest, Vol 85, Issue 39 Message-ID: cahipy2uw4g1p+hfrenrsvpse_2k4tptyq4egw9df5mwsq9k...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Ok, i see what your point. But I wanted this flow: 1. Client submits SMS to opensmppbox 2. Opensmppbox stores that SMS in mysql db (using sqlbox) 3. Now Sqlbox submits these SMS to bearerbox. So I don't want BB to interact directly with opensmppbox. So all I want is that whenever SMS is received, it should be pushed in MySQL table. I've read many config examples in this mailing list and based on that I've done the aforementioned configuration. But I don't understand why opensmppbox is not passing anything to sqlbox. I am pretty new to opensmppbox and after trying hard for past few days I've come to you guys as last resort. I'd really appreciate if anyone can brief me how to store the SMS in mysql received by opensmppbox. On Sat, Sep 28, 2013 at 3:31 PM, Minh Tuan handsam...@gmail.com wrote: This is another question that is very clear in opensmppbox manual. Refer to it, you absolutely have to use smsc-route to route clients to particular SMSC. Back to your original question, cause you are using allowed-smsc-id = Promotional in your smsc configuration, so if you don't specify smsc in your submissions, BB will not route to this SMSC automatically. On Sat, Sep 28, 2013 at 4:11 PM, 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: Opensmppbox issue: NACK/No SMSC (Saurabh Pandey) -- Message: 1 Date: Sat, 28 Sep 2013 14:41:21 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: Minh Tuan handsam...@gmail.com Cc: users@kannel.org Subject: Re: Opensmppbox issue: NACK/No SMSC Message-ID: CAHiPY2UYBPgUPNnmziwbpeJq= ywnlgqy+qulr7scet-z1a0...@mail.gmail.com Content-Type: text/plain; charset=utf-8 Hi, thanks for the reply. But I want different smsc routing for different smpp clients. If i add route-to-smsc, wouldn't that direct all traffic to a single smsc? On Sat, Sep 28, 2013 at 1:50 PM, Minh Tuan handsam...@gmail.com wrote: You should add into your Opensmppbox.conf on Kannel server: route-to-smsc = Promotional Try to submit another message and paste the bearerbox-asscess.log of Kannel server here for more information. Thank you. Brs, Tuan. -- Message: 2 Date: Sat, 28 Sep 2013 12:49:47 +0530 From: Saurabh Pandey sam.it.develo...@gmail.com To: users@kannel.org Subject: Opensmppbox issue: NACK/No SMSC Message-ID: cahipy2xp1-upxqd_0bt-y4efsv3xqqu2hvg9ro7-lu6qzav...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hi, I am submitting SMS from Kannel based SMPP client to a different server having kannel based setup+opensmppbox+sqlbox stack. The SMS is always getting REJECTED. The issuea are: 1.) Opemsmppbox is taking system-id (username in smpplogins.txt) as SMSC and then rejecting it 2.) SQLBOX shows no activity except an error: sql_id cannot be null I have this setup SMSC--- BB
opensmppbox consume a lot of MEM
Dear all, I need help as opensmppbox is consuming a lot of my server's memory. After occupied 80% of RAM (total RAM is 2G), it's also eating 50% of swap memory (total 3G) and increasing. My configuration is: Client - opensmppbox(mysql dlr) - sqlbox - bearerbox(mysql dlr) - operator SMSC Opensmppbox has 1 Client only, but he is binding 6 connections (via Internet), with 50 short codes and ~30 TPS of throughput, connections are lost few times per day (automatic re-connect). Of course, i'm going to plug more RAM sticks in to server but i'm afraid of it will not help in this situation. Appreciate you guy can give me some advise and experience. Many thanks. Nguyen Minh Tuan from Vietnamobile.
Re: users Digest, Vol 85, Issue 23
Sound strange but please post the bearerbox-access log when you push the message. Btw, remove + at received number and try again. -- Message: 2 Date: Wed, 18 Sep 2013 15:16:35 -0700 (PDT) From: michael osakede ire...@yahoo.com To: users@kannel.org users@kannel.org Subject: Cannot find SMSCConn for message Message-ID: 1379542595.71841.yahoomail...@web161504.mail.bf1.yahoo.com Content-Type: text/plain; charset=iso-8859-1 Hi All, I have this error recently when i try to send an sms from sqlbox: 2013-09-18 15:17:27 [10664] [13] WARNING: Cannot find SMSCConn for message to +2348071498782, rejected. 2013-09-18 15:17:27 [10664] [13] WARNING: Message rejected by bearerbox, no router! 2013-09-18 15:17:27 [10664] [13] DEBUG: send_msg: sending msg to boxc: mysqlbox mysql insert code ?insert into send_sms (momt,sender,receiver,msgdata,smsc_id) values('MT','31114','+2348071498782','Test Message from server','glo'); my kannel config for the smscgw is # SMSC SMPP group = smsc smsc-id = glo smsc = smpp host = 41.203.65.76 port = 2008 receive-port = 2008 smsc-username = x smsc-password = x system-type =xx system-id = x #interface-version = 0x34 connect-allow-ip = *.*.*.* keepalive = 50 address-range = allowed-smsc-id = glo transceiver-mode = true #msg-id-type = ?0x00 bind-addr-ton = 1 bind-addr-npi = 1 alt-charset = utf-8 what am I doing wrong? -- next part -- An HTML attachment was scrubbed... URL: http://www.kannel.org/pipermail/users/attachments/20130918/0831ee19/attachment-0001.html ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!
Re: users Digest, Vol 85, Issue 4
- Please check your smsc connection. - Please check your command that submit message, it may mistake in smsc parameter. On Wed, Sep 4, 2013 at 5:00 PM, 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. Routing failed, re-queued (Qqblog Qqblog) -- Message: 1 Date: Wed, 4 Sep 2013 16:37:14 +0800 (SGT) From: Qqblog Qqblog qqb...@ymail.com To: users@kannel.org users@kannel.org Subject: Routing failed, re-queued Message-ID: 1378283834.34382.yahoomail...@web190903.mail.sg3.yahoo.com Content-Type: text/plain; charset=iso-8859-1 bearerbox log show Routing failed, re-queued.? this lead? to store-size become high when we continue to submit message. ? smpp smsc status is online and binding is success. why routing failure occurred?? Kannel takes long time running and normal. this is suddenly happened and not resumed automatically. -- next part -- An HTML attachment was scrubbed... URL: http://www.kannel.org/pipermail/users/attachments/20130904/056d9574/attachment-0001.html -- Subject: Digest Footer ___ users mailing list users@kannel.org http://www.kannel.org/mailman/listinfo/users -- End of users Digest, Vol 85, Issue 4 -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!
Re: [Bug] opensmppbox bug at daily snap-shot 2013-08-31
Dear Rene, I've test the lasted snapshot and the bus is fix. God bless you and all. Many thanks. 2013-09-01 Rene Kluwen rene.kluwen at chimit.nl Fixed a small bug in the routing-upon-receiver number where opensmppbox would crash at boot-time if the particular config section is not defined. 2013-09-02 17:42:03 [385] [0] INFO: Debug_lvl = 0, log_file = none, log_lvl = 0 2013-09-02 17:42:03 [385] [0] DEBUG: Kannel opensmppbox version svn-runknown gwlib version `svn-runknown'. Build `Jul 29 2013 09:22:23', compiler `4.7.2'. System Linux, release 3.5.0-17-generic, version #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012, machine i686. Hostname minhtuan-Vostro-V131, IP 127.0.1.1. Libxml version 2.8.0. Using OpenSSL 1.0.1c 10 May 2012. Compiled with MySQL 5.5.31, using MySQL 5.5.31. Using native malloc. 2013-09-02 17:42:03 [385] [0] WARNING: DLR: using default 'internal' for storage type. 2013-09-02 17:42:03 [385] [0] INFO: DLR using storage type: internal 2013-09-02 17:42:03 [385] [0] INFO: Starting to log to file /home/log/kannel/smppbox.log level 0 2013-09-02 17:42:03 [385] [0] INFO: Added logfile `/home/log/kannel/smppbox.log' with level `0'. 2013-09-02 17:42:03 [385] [0] DEBUG: Adding smsc routing to id hw for sender no and smsbox id localbox 2013-09-02 17:42:03 [385] [0] INFO: Waiting for SMPP connections on port 2775. Nguyen Minh Tuan from Vietnamobile. On Mon, Sep 2, 2013 at 1:49 AM, Rene Kluwen rene.klu...@chimit.nl wrote: This should be fixed in current svn trunk (revision 75). Could you please check this version out and confirm if the bug has been solved? ** ** Thanks for testing. ** ** == Rene. ** ** ** ** *From:* Minh Tuan [mailto:handsam...@gmail.com] *Sent:* zondag 1 september 2013 8:41 *To:* users@kannel.org *Cc:* rene.klu...@chimit.nl *Subject:* Fwd: [Bug] opensmppbox bug at daily snap-shot 2013-08-31 ** ** ** ** Hi Misters and Rene Kluwen, I've found that opensmppbox getting error with smsc routing by shortcode (the rule by receiver-shortcode still ok), the log of opensmppbox says: 2013-09-01 10:45:14 [25028] [0] WARNING: DLR: using default 'internal' for storage type. 2013-09-01 10:45:14 [25028] [0] INFO: DLR using storage type: internal 2013-09-01 10:45:14 [25028] [0] INFO: Starting to log to file /home/log/kannel/smppbox.log level 0 2013-09-01 10:45:14 [25028] [0] INFO: Added logfile `/home/log/kannel/smppbox.log' with level `0'. *2013-09-01 10:45:14 [25028] [0] PANIC: gwlib/octstr.c:2549: seems_valid_real: Assertion `ostr != NULL' failed. (Called from gwlib/octstr.c:1073:octstr_search.)* 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(gw_backtrace+0xb1) [0x80a2631] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(gw_panic+0xdb) [0x80a271b] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox() [0x80a3708] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(octstr_search+ 0x2b) [0x80a572b] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(octstr_split+0x8a) [0x80a765a] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(main+0x7ce) [0x805153e] 2013-09-01 10:45:14 [25028] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6f084d3] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox() [0x8052061] If i turn back to the previous version before this change log, opensmppbox will working fine: 2013-07-10 Rene Kluwen rene.kluwen at chimit.nl Patch provided by Kelvin Porter Kelvin.Porterat h3net.com. Allows routing to smsc based upon receiver number. My opensmppbox configuration: group = core #dlr-storage = internal group = opensmppbox opensmppbox-id = SMPP opensmppbox-port = 2775 bearerbox-host = 127.0.0.1 bearerbox-port = 13001 our-system-id = testname smpp-logins = /etc/kannel/smpplogins.txt use-systemid-as-smsboxid = 1 #route-to-smsc = hw log-file = /home/log/kannel/smppbox.log log-level = 0 #enable-pam = 1 #pam-acl = kannel group = smsc-route smsc-id = hw smsbox-id = localbox shortcode = Please help to fix. Many thanks. Nguyen Minh Tuan from Vietnamobile. ** ** -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy! -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!
Fwd: [Bug] opensmppbox bug at daily snap-shot 2013-08-31
Hi Misters and Rene Kluwen, I've found that opensmppbox getting error with smsc routing by shortcode (the rule by receiver-shortcode still ok), the log of opensmppbox says: 2013-09-01 10:45:14 [25028] [0] WARNING: DLR: using default 'internal' for storage type. 2013-09-01 10:45:14 [25028] [0] INFO: DLR using storage type: internal 2013-09-01 10:45:14 [25028] [0] INFO: Starting to log to file /home/log/kannel/smppbox.log level 0 2013-09-01 10:45:14 [25028] [0] INFO: Added logfile `/home/log/kannel/smppbox.log' with level `0'. *2013-09-01 10:45:14 [25028] [0] PANIC: gwlib/octstr.c:2549: seems_valid_real: Assertion `ostr != NULL' failed. (Called from gwlib/octstr.c:1073:octstr_search.)* 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(gw_backtrace+0xb1) [0x80a2631] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(gw_panic+0xdb) [0x80a271b] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox() [0x80a3708] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(octstr_search+ 0x2b) [0x80a572b] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(octstr_split+0x8a) [0x80a765a] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox(main+0x7ce) [0x805153e] 2013-09-01 10:45:14 [25028] [0] PANIC: /lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0xb6f084d3] 2013-09-01 10:45:14 [25028] [0] PANIC: opensmppbox() [0x8052061] If i turn back to the previous version before this change log, opensmppbox will working fine: 2013-07-10 Rene Kluwen rene.kluwen at chimit.nl Patch provided by Kelvin Porter Kelvin.Porterat h3net.com. Allows routing to smsc based upon receiver number. My opensmppbox configuration: group = core #dlr-storage = internal group = opensmppbox opensmppbox-id = SMPP opensmppbox-port = 2775 bearerbox-host = 127.0.0.1 bearerbox-port = 13001 our-system-id = testname smpp-logins = /etc/kannel/smpplogins.txt use-systemid-as-smsboxid = 1 #route-to-smsc = hw log-file = /home/log/kannel/smppbox.log log-level = 0 #enable-pam = 1 #pam-acl = kannel group = smsc-route smsc-id = hw smsbox-id = localbox shortcode = Please help to fix. Many thanks. Nguyen Minh Tuan from Vietnamobile. -- ((=o-( ',_,' )-o=))= Bản chất tốt nhưng cuộc đời xô đẩy!