Re: Can multiple kannels share a mysql instance?
You can also enable MySQL general logging to see exact query fired by kannel. BR Tapan Thapa On Fri, Jun 26, 2015 at 7:32 PM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi If I do remember well, kannel uses a combination of ts, destination and smsc to search for the dlr. You might want to check code to be sure. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Thu, Jun 25, 2015 at 4:48 PM, Michael Epstein mepst...@callfire.com wrote: Hi Alvaro, Thanks for the quick informative reply. this is the table in question: KANNEL [kannel] ON kannel describe dlr; +-+--+--+-+---+-+ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+---+-+ | dt | timestamp| NO | MUL | CURRENT_TIMESTAMP | on update CURRENT_TIMESTAMP | | smsc| varchar(40) | YES | MUL | NULL | | | ts | varchar(40) | YES | | NULL | | | destination | varchar(40) | YES | | NULL | | | source | varchar(40) | YES | | NULL | | | service | varchar(40) | YES | | NULL | | | url | varchar(255) | YES | | NULL | | | mask| int(10) | YES | | NULL | | | status | int(10) | YES | | NULL | | | boxc| varchar(40) | YES | | NULL | | +-+--+--+-+---+-+ 10 rows in set (0.01 sec) the insert is logged as: sql: INSERT INTO `dlr` (`smsc`, `ts`, `source`, `destination`, `service`, `url`, `mask`, `boxc`, `status`) VALUES (?, ?, ?, ?, ?, ?, ?, ?, 0) I don't see an explicit key. is there some sort compound key based on the smsc, ts, source and destination? We actually have two dbs one for each instance now but it is causing problems when a DLRs are sent back from a particular carrier to the wrong bind. So this is a work around. I am thinking it will be ok as long as the clocks are in sync since the ts is needed. Thanks again, Mike On 6/25/15 2:27 PM, Alvaro Cornejo wrote: Hi Yes as long as you have enough connections and HW capacity. Entries on each record will have it own key id set therefore it is pretty unlikely you will have different kannel instance share the same id set keys. The drown back will be that both instances will need to read all the table for checking dlrs. You can however use same database but different tables for each kannel instance. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Thu, Jun 25, 2015 at 3:12 PM, Michael Epstein mepst...@callfire.com wrote: Hi Everyone, I was wondering if multiple kannel instances on different hosts can share a mysql database for DLR storage? Any help would be greatly appreciated. Thanks, Mike
RE: How to Send Special Characters Like @,#,!,$,%,^,,* etc.
Dear Ammar, Don't use charset and coding parameters till you are not using Unicode messages. Special characters mentioned by you are common so encode the same with other English message and send. BR Tapan Thapa -- From: Ammar Ali ammarali3...@gmail.com Sent: 5/30/2015 5:58 PM To: users@kannel.org Cc: Tapan Kumar Thapa tapan.thapa2...@gmail.com; Ammar Ali ammarali3...@gmail.com Subject: How to Send Special Characters Like @,#,!,$,%,^,,* etc. Hello Team, Tapan Sir, When I'm sending message with special characters like @,#,!,$,%,^,,* etc. and setting *charset=UTF-8 *and *coding=2, *then I'm getting exact message on cell phone. but there is an issue SMSC understand this unicode message and deducted sms credit twice. So please suggest me that how to resolve this problem as soon as possible. Thanks in advance *Regards* *Ammar Ali* *Pune (M.H.)*
RE: How to Send Special Characters Like @,#,!,$,%,^,,* etc.
Can u paste your app code here? Sent from my Windows Phone -- From: Ammar Ali ammarali3...@gmail.com Sent: 5/30/2015 7:21 PM To: Tapan Kumar Thapa tapan.thapa2...@gmail.com; users@kannel.org; Ammar Ali ammarali3...@gmail.com Subject: Re: How to Send Special Characters Like @,#,!,$,%,^,,* etc. Hello Tapan Sir, I did this but I'm not getting exact message on my cell phone. Actual Message: em...@domain.com Receiving Message on Cell Phone emaildomain.com *Regards Thanks* *Ammar Ali* *Pune (M.H.)* On Sat, May 30, 2015 at 7:06 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, Don't use charset and coding parameters till you are not using Unicode messages. Special characters mentioned by you are common so encode the same with other English message and send. BR Tapan Thapa -- From: Ammar Ali ammarali3...@gmail.com Sent: 5/30/2015 5:58 PM To: users@kannel.org Cc: Tapan Kumar Thapa tapan.thapa2...@gmail.com; Ammar Ali ammarali3...@gmail.com Subject: How to Send Special Characters Like @,#,!,$,%,^,,* etc. Hello Team, Tapan Sir, When I'm sending message with special characters like @,#,!,$,%,^,,* etc. and setting *charset=UTF-8 *and *coding=2, *then I'm getting exact message on cell phone. but there is an issue SMSC understand this unicode message and deducted sms credit twice. So please suggest me that how to resolve this problem as soon as possible. Thanks in advance *Regards* *Ammar Ali* *Pune (M.H.)*
Re: Delivery Report Issues
Dear Ammar, Try below. [core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Source: http://comments.gmane.org/gmane.comp.mobile.kannel.user/30991 Thanks Regards Tapan Thapa On Thu, May 28, 2015 at 11:41 AM, Ammar Ali ammarali3...@gmail.com wrote: Hello To Everyone, Can anybody describe me in detail below variables regarding smsc: wait-ack wait-ack-expire validityperiod I have some confusion. So please suggest me that as soon as possible. I am facing some serious problem that are describe in above thread. Thanks Ammar Ali Pune (M.H.) On Wed, May 27, 2015 at 4:06 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, I'm sending sms from my application. Due to some connection issue I have a queue on connected SMSC. So I'm getting single message multiple times on single number (5-6 times approx.). According to your guidelines I have already sets *wait-ack-expire=0x02* in SMSC configuration. Below is my kannel and smsc configuration: group = core admin-port = 13000 admin-port-ssl=no admin-password = x status-password = x admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = var/logs1/kannel.log log-level = 0 access-log = var/logs1/access.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 1000 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsc smsc = smpp smsc-id = PR_SMSC3 log-file = /var/logs/PR_SMSC3_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = #receive-port= smsc-username = x smsc-password = x allowed-smsc-id = PR_SMSC3 preferred-smsc-id = PR_SMSC3 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=ASCII bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 0 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=true Is there any issue in above configuration? Please suggest me what to do? How to resolve this issue as soon as possible? Thanks Ammar Ali Pune (M.H.) On Fri, May 15, 2015 at 2:11 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, I have seen this issue in past where in if upstream smsc is not giving proper response of kannel's submit_sm then kannel keep submitting message again and again to upstream smsc. Enable debug logs under kannel and check what is the response of submit_sm. Thanks Regards Tapan Thapa On Fri, May 15, 2015 at 1:51 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Everyone, When I'm sending message from my application using Kannel SMS Gateway. I'm getting multiple time message on single number. My operator told me that your kannel submits multiple request automatically. Can you suggest me where the actual issue and how to resolve this as soon as possible. Thanks Ammar Ali Pune (M.H.) On Thu, Apr 30, 2015 at 11:50 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: That is the issue which i had faced too. What i did was, 1. first check current queue at kannel via kannel admin interface (XML Output) and if queue is more than 5K than hold for few seconds and than again invoke kannel admin interface. If queue is less than 5K this time, then insert into SQLBOX. Thanks Regards Tapan Thapa On Thu, Apr 30, 2015 at 10:33 AM, Ammar Ali ammarali3...@gmail.com wrote: Thanks for the reply. When I'm connecting multiple sqlboxes with single bearerbox, everything is fine but When request is too large then bearerbox works slowly. So that I'm using this multiple instances of kannel. Thanks Ammar Ali Pune (M.H.) On Wed, Apr 29, 2015 at 5:52 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Why are you installing multiple instance of bearerbox? You can install single instance of bearerbox which will connect as TX/RX/TRX with your smpp provider and then multiple sqlbox can connect to the same bearerbox. Regards Tapan Thapa On Wed, Apr 29, 2015 at 5:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, I'm configuring multiple kannel instance on my machine with different port each. But now the problem is that When I'm sending messages then I'm receiving each message on ESME but I'm not getting delivery reports from smsc. My whole architecture is given below: Kannel Instance 1: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME*Kannel Instance 2: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Kannel Instance 3: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Please suggest me what is the exact issue in this configuration. Thanks Ammar Ali Pune (M.H.) On Fri, Apr 24, 2015 at 3:53 PM, Tapan
Re: howto add delay between sending sms
Dear Syed, This has been answered many times in past. You should check on google before posting here. In your smsc configuration, you can set below directive to achieve desired result. *throughput=1 #60 messages will be sent in one minute.* Kannel docs says: float (messages/sec) If SMSC requires that Kannel limits the number of messages per second, use this variable. This is considered as active throttling. (optional) denied-smsc-id id-list SMS messages with SMSC Thanks Regards Tapan Thapa On Thu, May 28, 2015 at 2:51 PM, JAHANZAIB SYED aaca...@hotmail.com wrote: Is there any method I can add delay between sending each messages? Example If 50 messages need to be send, there should be delay of 10 seconds in between each sms. Reason is that some mobile companies blocks SIM if specific number of SMS sent rapidly fast via any number (to detect commercial usage) *Regards, * *SYED JAHANZAIB*
Re: How to retry sending only once upon failure?
Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 764 queued, using mysql storage Box connections: smsbox:sqlbox1, IP 127.0.0.1 (*0 queued*), (on-line 0d 18h 40m 35s) SMSC connections: *SMSC*[SMSC]SMPP:XXX.XXX.XXX.XXX:/:XXX:VMA (online, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please check my configuration and let me know what should be my setting for this required setup. One more thing I'm facing this problem because of queue shows on SMSC connection. *Thanks* *Amaar Ali* *Pune (M.H.)*
Re: How to retry sending only once upon failure?
make this entry to sms-resend-retry = 1 and let us know the result. BR Tapan Thapa On Thu, May 28, 2015 at 3:16 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for your reply. Before I month my setup was: [group=core] sms-resend-freq = 60 sms-resend-retry = -1 [group=smsc] wait-ack = 60 wait-ack-expire = 0x01 But some days ago I have updated this setup with below values: [group=core] #sms-resend-freq = 120 #sms-resend-retry = 5 [group=smsc] wait-ack-expire = 0x02 I have noticed that this problem is occured when queue on smsc connection. *SMSC*[SMSC] SMPP:XXX.XXX.XXX.XXX:/:X:SMPP (online 7698s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2092 (0.59,0.47,0.03), sent: sms 1055 (1.01,0.30,0.02) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please suggest me what to do. *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:05 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 764 queued, using mysql storage Box connections: smsbox:sqlbox1, IP 127.0.0.1 (*0 queued*), (on-line 0d 18h 40m 35s) SMSC connections: *SMSC*[SMSC]SMPP:XXX.XXX.XXX.XXX:/:XXX:VMA (online, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please check my configuration and let me know what should be my setting for this required setup. One more thing I'm facing this problem because of queue shows on SMSC connection. *Thanks* *Amaar Ali* *Pune (M.H.)*
Re: How to retry sending only once upon failure?
By the way, kannel restart is required after changing this value. BR Tapan Thapa On Thu, May 28, 2015 at 3:18 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: make this entry to sms-resend-retry = 1 and let us know the result. BR Tapan Thapa On Thu, May 28, 2015 at 3:16 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for your reply. Before I month my setup was: [group=core] sms-resend-freq = 60 sms-resend-retry = -1 [group=smsc] wait-ack = 60 wait-ack-expire = 0x01 But some days ago I have updated this setup with below values: [group=core] #sms-resend-freq = 120 #sms-resend-retry = 5 [group=smsc] wait-ack-expire = 0x02 I have noticed that this problem is occured when queue on smsc connection. *SMSC*[SMSC] SMPP:XXX.XXX.XXX.XXX:/:X:SMPP (online 7698s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2092 (0.59,0.47,0.03), sent: sms 1055 (1.01,0.30,0.02) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please suggest me what to do. *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:05 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 764 queued, using mysql storage Box connections: smsbox:sqlbox1, IP 127.0.0.1 (*0 queued*), (on-line 0d 18h 40m 35s) SMSC connections: *SMSC*[SMSC]SMPP:XXX.XXX.XXX.XXX:/:XXX:VMA (online, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please check my configuration and let me know what should be my setting for this required setup. One more thing I'm facing this problem because of queue shows on SMSC connection. *Thanks* *Amaar Ali* *Pune (M.H.)*
Re: How to retry sending only once upon failure?
Dear Ammar, After setting up sms-resend-retry = 1, you should not face spool/queue issue. If still facing than may be some senior dev can answer on this. BR Tapan Thapa On Thu, May 28, 2015 at 4:18 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, I have update my configuration and restart kannel. Currently its working fine. But I'm facing this problem when smsc connection are re-connecting. Some SMS stored for an unlimited amount of time in the Kannel spool. Besides of this, they would have been sent on a reconnect of the SMSC (that could happen several days after the submit, sometimes voiding the purpose of the sms itself). Can you describe above lines. What is Kannel Spool and which type of sms are stored in this. But I had not used this in kannel configuration. Is this default storage for sms? Please suggest me what to do. *Thanks * *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:19 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: By the way, kannel restart is required after changing this value. BR Tapan Thapa On Thu, May 28, 2015 at 3:18 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: make this entry to sms-resend-retry = 1 and let us know the result. BR Tapan Thapa On Thu, May 28, 2015 at 3:16 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for your reply. Before I month my setup was: [group=core] sms-resend-freq = 60 sms-resend-retry = -1 [group=smsc] wait-ack = 60 wait-ack-expire = 0x01 But some days ago I have updated this setup with below values: [group=core] #sms-resend-freq = 120 #sms-resend-retry = 5 [group=smsc] wait-ack-expire = 0x02 I have noticed that this problem is occured when queue on smsc connection. *SMSC*[SMSC] SMPP:XXX.XXX.XXX.XXX:/:X:SMPP (online 7698s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2092 (0.59,0.47,0.03), sent: sms 1055 (1.01,0.30,0.02) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please suggest me what to do. *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:05 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 764 queued, using mysql storage Box connections: smsbox:sqlbox1, IP 127.0.0.1 (*0 queued*), (on-line 0d 18h 40m 35s) SMSC connections: *SMSC*[SMSC]SMPP:XXX.XXX.XXX.XXX:/:XXX:VMA (online, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please check my configuration and let me know what should be my setting for this required setup. One more thing I'm facing this problem because of queue shows on SMSC connection. *Thanks* *Amaar Ali* *Pune (M.H.)*
Re: How to retry sending only once upon failure?
Dear Ammar, Re-Connecting means that if SMSC connection is down due to any reason Like internet connectivity issue at your end or your service provider end or any other reason than kannel system should reconnect again. It should be turned on always. BR Tapan Thapa On Thu, May 28, 2015 at 4:20 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan and List, What is the reason of re-connecting of particular SMSC? And how to disable this from our side that SMSC never reconnect? *Thanks * *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 4:18 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, I have update my configuration and restart kannel. Currently its working fine. But I'm facing this problem when smsc connection are re-connecting. Some SMS stored for an unlimited amount of time in the Kannel spool. Besides of this, they would have been sent on a reconnect of the SMSC (that could happen several days after the submit, sometimes voiding the purpose of the sms itself). Can you describe above lines. What is Kannel Spool and which type of sms are stored in this. But I had not used this in kannel configuration. Is this default storage for sms? Please suggest me what to do. *Thanks * *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:19 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: By the way, kannel restart is required after changing this value. BR Tapan Thapa On Thu, May 28, 2015 at 3:18 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: make this entry to sms-resend-retry = 1 and let us know the result. BR Tapan Thapa On Thu, May 28, 2015 at 3:16 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for your reply. Before I month my setup was: [group=core] sms-resend-freq = 60 sms-resend-retry = -1 [group=smsc] wait-ack = 60 wait-ack-expire = 0x01 But some days ago I have updated this setup with below values: [group=core] #sms-resend-freq = 120 #sms-resend-retry = 5 [group=smsc] wait-ack-expire = 0x02 I have noticed that this problem is occured when queue on smsc connection. *SMSC*[SMSC] SMPP:XXX.XXX.XXX.XXX:/:X:SMPP (online 7698s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2092 (0.59,0.47,0.03), sent: sms 1055 (1.01,0.30,0.02) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please suggest me what to do. *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:05 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 764 queued, using mysql storage Box connections: smsbox:sqlbox1, IP 127.0.0.1 (*0 queued*), (on-line 0d 18h 40m 35s) SMSC connections: *SMSC*[SMSC]SMPP:XXX.XXX.XXX.XXX:/:XXX:VMA (online, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs* ) So please check my configuration and let me know what should be my setting for this required setup. One more thing I'm facing this problem because of queue shows on SMSC connection. *Thanks* *Amaar Ali* *Pune (M.H.)*
Re: How to retry sending only once upon failure?
Dear Ammar, Kindlk check the kannel documentation for *store-type*. BR Tapan Thapa On Thu, May 28, 2015 at 4:52 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, Thanks your reply is very helpful. Can you give me info about kannel spool/queue? *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 4:50 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, After setting up sms-resend-retry = 1, you should not face spool/queue issue. If still facing than may be some senior dev can answer on this. BR Tapan Thapa On Thu, May 28, 2015 at 4:18 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, I have update my configuration and restart kannel. Currently its working fine. But I'm facing this problem when smsc connection are re-connecting. Some SMS stored for an unlimited amount of time in the Kannel spool. Besides of this, they would have been sent on a reconnect of the SMSC (that could happen several days after the submit, sometimes voiding the purpose of the sms itself). Can you describe above lines. What is Kannel Spool and which type of sms are stored in this. But I had not used this in kannel configuration. Is this default storage for sms? Please suggest me what to do. *Thanks * *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:19 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: By the way, kannel restart is required after changing this value. BR Tapan Thapa On Thu, May 28, 2015 at 3:18 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: make this entry to sms-resend-retry = 1 and let us know the result. BR Tapan Thapa On Thu, May 28, 2015 at 3:16 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for your reply. Before I month my setup was: [group=core] sms-resend-freq = 60 sms-resend-retry = -1 [group=smsc] wait-ack = 60 wait-ack-expire = 0x01 But some days ago I have updated this setup with below values: [group=core] #sms-resend-freq = 120 #sms-resend-retry = 5 [group=smsc] wait-ack-expire = 0x02 I have noticed that this problem is occured when queue on smsc connection. *SMSC*[SMSC] SMPP:XXX.XXX.XXX.XXX:/:X:SMPP (online 7698s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2092 (0.59,0.47,0.03), sent: sms 1055 (1.01,0.30,0.02) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please suggest me what to do. *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:05 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 764 queued, using mysql storage Box connections: smsbox:sqlbox1, IP 127.0.0.1 (*0 queued*), (on-line 0d 18h 40m 35s) SMSC connections: *SMSC*[SMSC]SMPP:XXX.XXX.XXX.XXX:/:XXX:VMA (online, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please check my configuration and let me know what should be my setting for this required setup. One more thing I'm facing this problem because of queue shows on SMSC connection
Re: How to retry sending only once upon failure?
Dear Ammar, After putting this line sms-resend-retry = 1, i am expecting message will not be submit more than once. If still facing same issue, let us know. BR Tapan Thapa On Thu, May 28, 2015 at 5:26 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, Can we stop this queue building when particular SMSC connection re-connect? Because I'm facing this multiple messages delivered on particular number when building this queue on smsc. Thank Ammar Ali Pune (M.H.) On Thu, May 28, 2015 at 4:54 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, Kindlk check the kannel documentation for *store-type*. BR Tapan Thapa On Thu, May 28, 2015 at 4:52 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, Thanks your reply is very helpful. Can you give me info about kannel spool/queue? *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 4:50 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, After setting up sms-resend-retry = 1, you should not face spool/queue issue. If still facing than may be some senior dev can answer on this. BR Tapan Thapa On Thu, May 28, 2015 at 4:18 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, I have update my configuration and restart kannel. Currently its working fine. But I'm facing this problem when smsc connection are re-connecting. Some SMS stored for an unlimited amount of time in the Kannel spool. Besides of this, they would have been sent on a reconnect of the SMSC (that could happen several days after the submit, sometimes voiding the purpose of the sms itself). Can you describe above lines. What is Kannel Spool and which type of sms are stored in this. But I had not used this in kannel configuration. Is this default storage for sms? Please suggest me what to do. *Thanks * *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:19 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: By the way, kannel restart is required after changing this value. BR Tapan Thapa On Thu, May 28, 2015 at 3:18 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: make this entry to sms-resend-retry = 1 and let us know the result. BR Tapan Thapa On Thu, May 28, 2015 at 3:16 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, First of all thanks for your reply. Before I month my setup was: [group=core] sms-resend-freq = 60 sms-resend-retry = -1 [group=smsc] wait-ack = 60 wait-ack-expire = 0x01 But some days ago I have updated this setup with below values: [group=core] #sms-resend-freq = 120 #sms-resend-retry = 5 [group=smsc] wait-ack-expire = 0x02 I have noticed that this problem is occured when queue on smsc connection. *SMSC*[SMSC] SMPP:XXX.XXX.XXX.XXX:/:X:SMPP (online 7698s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 2092 (0.59,0.47,0.03), sent: sms 1055 (1.01,0.30,0.02) / dlr 0 (0.00,0.00,0.00), failed 0, *queued 0 msgs*) So please suggest me what to do. *Thanks* *Ammar Ali* *Pune (M.H.)* On Thu, May 28, 2015 at 3:05 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Amar, In the morning, i suggested to try below. Have you tried this? [group=core] sms-resend-freq = 60 #(default) sms-resend-retry = 1 # Send sms only once. No retry [group=smsc] wait-ack = 60 #(default) wait-ack-expire = 0x01 #(default) Regards Tapan Thapa On Thu, May 28, 2015 at 3:01 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Team, I am sending sms through http application using kannel. But I'm getting multiple messages on particular number. This is my setup: *bearerbox.conf* group = core admin-port = 13000 admin-port-ssl=no admin-password = status-password = admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/logs/kannel1.log log-level = 0 access-log = /var/logs/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 10 smsbox-max-pending = 100 sms-resend-freq = 120 sms-resend-retry = 5 *smsc.conf* group = smsc smsc = smpp smsc-id = SMSC log-file = /var/SMSC_LOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = xxx smsc-username = xxx smsc-password = xxx allowed-smsc-id = SMSC preferred-smsc-id = SMSC source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = SMPP alt-charset=UTF-8 alt-addr-charset = GSM bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 10 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 wait-ack-expire=0x02 reroute-dlr=1 *Kannel Monitor:* SMS: received 0 (0 queued), sent 1055 (*0 queued*), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (1.01,0.30,0.02) msg/sec DLR: received 2092, sent 0 DLR: inbound (0.59,0.47,0.03) msg/sec, outbound
RE: respond once if it receives multiple messages
No..kannel does not offer this feature. You have to handle this in your script/code. BR Tapan Thapa Sent from my Windows Phone -- From: Arya Farzan arya6...@gmail.com Sent: 5/28/2015 9:59 PM To: users@kannel.org Subject: respond once if it receives multiple messages I have setup an autoresponder with Kannel 1.5, but if it receives more than one message from a phone number in a short amount of time (10-15 seconds) it replies to it the same number of times that the person sent the message to the sms server. I want Kannel to only respond once if it receives multiple messages from the same number in a short amount of time. Is there anyway to control how Kannel works when it receives multiple messages from the same number in a given time period?
Re: Delivery Report Issues
Dear Ammar, I have seen this issue in past where in if upstream smsc is not giving proper response of kannel's submit_sm then kannel keep submitting message again and again to upstream smsc. Enable debug logs under kannel and check what is the response of submit_sm. Thanks Regards Tapan Thapa On Fri, May 15, 2015 at 1:51 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Everyone, When I'm sending message from my application using Kannel SMS Gateway. I'm getting multiple time message on single number. My operator told me that your kannel submits multiple request automatically. Can you suggest me where the actual issue and how to resolve this as soon as possible. Thanks Ammar Ali Pune (M.H.) On Thu, Apr 30, 2015 at 11:50 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: That is the issue which i had faced too. What i did was, 1. first check current queue at kannel via kannel admin interface (XML Output) and if queue is more than 5K than hold for few seconds and than again invoke kannel admin interface. If queue is less than 5K this time, then insert into SQLBOX. Thanks Regards Tapan Thapa On Thu, Apr 30, 2015 at 10:33 AM, Ammar Ali ammarali3...@gmail.com wrote: Thanks for the reply. When I'm connecting multiple sqlboxes with single bearerbox, everything is fine but When request is too large then bearerbox works slowly. So that I'm using this multiple instances of kannel. Thanks Ammar Ali Pune (M.H.) On Wed, Apr 29, 2015 at 5:52 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Why are you installing multiple instance of bearerbox? You can install single instance of bearerbox which will connect as TX/RX/TRX with your smpp provider and then multiple sqlbox can connect to the same bearerbox. Regards Tapan Thapa On Wed, Apr 29, 2015 at 5:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, I'm configuring multiple kannel instance on my machine with different port each. But now the problem is that When I'm sending messages then I'm receiving each message on ESME but I'm not getting delivery reports from smsc. My whole architecture is given below: Kannel Instance 1: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME*Kannel Instance 2: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Kannel Instance 3: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Please suggest me what is the exact issue in this configuration. Thanks Ammar Ali Pune (M.H.) On Fri, Apr 24, 2015 at 3:53 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hi, As far as i know, this line DLR: 29 queued, using mysql storage says, that we have sent 29 messages and waiting for their delivery report. As soon as we get delivery report from upstream smsc, this number will come down. Thanks Regards Tapan Thapa On Fri, Apr 24, 2015 at 3:51 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, When I'm sending messages on multiple numbers, then I'm not getting all delivery reports. *This is my kannel monitor log:* Kannel bearerbox version `1.4.4'. Build `Feb 20 2015 13:58:20', compiler `4.4.7 20120313 (Red Hat 4.4.7-11)'. System Linux, release 2.6.32-042stab094.7, version #1 SMP Wed Oct 22 12:43:21 MSK 2014, machine x86_64. Hostname 192-168-1-101, IP 192.168.1.101. Libxml version 2.7.6. Using OpenSSL 1.0.1e-fips 11 Feb 2013. Compiled with MySQL 5.6.22, using MySQL 5.6.23. Using native malloc. Status: running, uptime 2d 0h 57m 5s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 64 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.24,0.03,0.00) msg/sec DLR: received 105, sent 0 DLR: inbound (0.33,0.04,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 29 queued, using mysql storage Box connections: smsbox:smsbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 56m 34s) smsbox:sqlbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 55m 56s) SMSC connections: *TR_SMSC1*[TR_SMSC1]SMPP:10.10.10.10:5775/5775::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 87 (0.33,0.04,0.00), sent: sms 58 (0.24,0.03,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs) *PR_SMSC1*[PR_SMSC1]SMPP:10.10.10.10:5776/5776::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 11 (0.00,0.00,0.00), sent: sms 5 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 1, queued 0 msgs) This log shows me *DLR: 29 queued, using mysql storage. *Can you describe me what is the mean of that? I'm not getting any type error in my log and access files. So please suggest me that this problem is from my side or Operator side. Thanks Ammar Ali On Wed, Apr 22, 2015 at 1:34 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, 4TX and 4RX connections are provided by SMPP provider. Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:51 PM, Tapan Kumar Thapa tapan.thapa2
Re: Urgent help required to connect SMPP client softwere with Kannel
Dear Muhammad, I am glad that you understood what i was trying to explain. Thanks Regards Tapan Thapa On Sat, May 16, 2015 at 10:50 AM, Muhammad Danish danish_cs...@yahoo.com wrote: Dear Tapan Kumar sahib, My reply was specifically related to following comment .I am totally agreed that I mistakenly added additional groups . Nobody is going to do that work for you for FREE. So you either google a bit and read manual or hire someone to set it up for you for money. On Saturday, May 16, 2015 10:15 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: As per my observation, Spameden has not said any wrong word here. He has just informed that announce@ and devel@ mailing list are for different jobs and should not be marked for question like this. If any query related questions, we should always mark to @users. Thanks Regards Tapan Thapa On Sat, May 16, 2015 at 10:37 AM, Muhammad Danish danish_cs...@yahoo.com wrote: Dear Spameden, Thanks for your suggestion , I guess I have the right to ask anything related to Kannel in this form and their are enough people who are willing to assist . I am primary associated with Core Telecom and Data N/w for the last 12 years , If you ever need help related to these domains , I am just one email away and for sure I wont change anything . Once again thanks replying my earlier email On Saturday, May 16, 2015 1:06 AM, spameden spame...@gmail.com wrote: First of all no need to add irrelevant mailing lists such as announce@ and devel@. They are not for questions like this. Second, there is a thing called opensmppbox which suit your needs, read the manual and configure it. Nobody is going to do that work for you for FREE. So you either google a bit and read manual or hire someone to set it up for you for money. 2015-05-15 22:56 GMT+03:00 Muhammad Danish danish_cs...@yahoo.com: Dear All, I am already manage a Kannel SMS Gateway having Multiple connection with different Telco , however I have received a required from a customer that they wanted to use SMPP client software ( NOW SMS/MMS Gateway) through which they can connect to our SMSC GW ( which is running on Kannel). Would appreciate if you could send me the required configuration file so that I can update the configuration . I did the below configuration however my client is unable to connect to port . roup = smsc smsc = smpp smsc-id=ABC host=x.x.x.74 port=2221 receive-port = smsc-username = danish smsc-password = danish12 #service-type = 612 system-type=default interface-version = 34 preferred-smsc-id=ABC throughput = 10 keepalive = 50 sender-prefix= idle-timeout = 30
Re: Urgent help required to connect SMPP client softwere with Kannel
As per my observation, Spameden has not said any wrong word here. He has just informed that announce@ and devel@ mailing list are for different jobs and should not be marked for question like this. If any query related questions, we should always mark to @users. Thanks Regards Tapan Thapa On Sat, May 16, 2015 at 10:37 AM, Muhammad Danish danish_cs...@yahoo.com wrote: Dear Spameden, Thanks for your suggestion , I guess I have the right to ask anything related to Kannel in this form and their are enough people who are willing to assist . I am primary associated with Core Telecom and Data N/w for the last 12 years , If you ever need help related to these domains , I am just one email away and for sure I wont change anything . Once again thanks replying my earlier email On Saturday, May 16, 2015 1:06 AM, spameden spame...@gmail.com wrote: First of all no need to add irrelevant mailing lists such as announce@ and devel@. They are not for questions like this. Second, there is a thing called opensmppbox which suit your needs, read the manual and configure it. Nobody is going to do that work for you for FREE. So you either google a bit and read manual or hire someone to set it up for you for money. 2015-05-15 22:56 GMT+03:00 Muhammad Danish danish_cs...@yahoo.com: Dear All, I am already manage a Kannel SMS Gateway having Multiple connection with different Telco , however I have received a required from a customer that they wanted to use SMPP client software ( NOW SMS/MMS Gateway) through which they can connect to our SMSC GW ( which is running on Kannel). Would appreciate if you could send me the required configuration file so that I can update the configuration . I did the below configuration however my client is unable to connect to port . roup = smsc smsc = smpp smsc-id=ABC host=x.x.x.74 port=2221 receive-port = smsc-username = danish smsc-password = danish12 #service-type = 612 system-type=default interface-version = 34 preferred-smsc-id=ABC throughput = 10 keepalive = 50 sender-prefix= idle-timeout = 30
Re: send new line character
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
Can you please paste complete sendsms url here which you are invoking? BR Tapan Thapa On Wed, May 6, 2015 at 3:35 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: Delivery Report Issues
That is the issue which i had faced too. What i did was, 1. first check current queue at kannel via kannel admin interface (XML Output) and if queue is more than 5K than hold for few seconds and than again invoke kannel admin interface. If queue is less than 5K this time, then insert into SQLBOX. Thanks Regards Tapan Thapa On Thu, Apr 30, 2015 at 10:33 AM, Ammar Ali ammarali3...@gmail.com wrote: Thanks for the reply. When I'm connecting multiple sqlboxes with single bearerbox, everything is fine but When request is too large then bearerbox works slowly. So that I'm using this multiple instances of kannel. Thanks Ammar Ali Pune (M.H.) On Wed, Apr 29, 2015 at 5:52 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Why are you installing multiple instance of bearerbox? You can install single instance of bearerbox which will connect as TX/RX/TRX with your smpp provider and then multiple sqlbox can connect to the same bearerbox. Regards Tapan Thapa On Wed, Apr 29, 2015 at 5:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, I'm configuring multiple kannel instance on my machine with different port each. But now the problem is that When I'm sending messages then I'm receiving each message on ESME but I'm not getting delivery reports from smsc. My whole architecture is given below: Kannel Instance 1: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME*Kannel Instance 2: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Kannel Instance 3: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Please suggest me what is the exact issue in this configuration. Thanks Ammar Ali Pune (M.H.) On Fri, Apr 24, 2015 at 3:53 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hi, As far as i know, this line DLR: 29 queued, using mysql storage says, that we have sent 29 messages and waiting for their delivery report. As soon as we get delivery report from upstream smsc, this number will come down. Thanks Regards Tapan Thapa On Fri, Apr 24, 2015 at 3:51 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, When I'm sending messages on multiple numbers, then I'm not getting all delivery reports. *This is my kannel monitor log:* Kannel bearerbox version `1.4.4'. Build `Feb 20 2015 13:58:20', compiler `4.4.7 20120313 (Red Hat 4.4.7-11)'. System Linux, release 2.6.32-042stab094.7, version #1 SMP Wed Oct 22 12:43:21 MSK 2014, machine x86_64. Hostname 192-168-1-101, IP 192.168.1.101. Libxml version 2.7.6. Using OpenSSL 1.0.1e-fips 11 Feb 2013. Compiled with MySQL 5.6.22, using MySQL 5.6.23. Using native malloc. Status: running, uptime 2d 0h 57m 5s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 64 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.24,0.03,0.00) msg/sec DLR: received 105, sent 0 DLR: inbound (0.33,0.04,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 29 queued, using mysql storage Box connections: smsbox:smsbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 56m 34s) smsbox:sqlbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 55m 56s) SMSC connections: *TR_SMSC1*[TR_SMSC1]SMPP:10.10.10.10:5775/5775::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 87 (0.33,0.04,0.00), sent: sms 58 (0.24,0.03,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs) *PR_SMSC1*[PR_SMSC1]SMPP:10.10.10.10:5776/5776::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 11 (0.00,0.00,0.00), sent: sms 5 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 1, queued 0 msgs) This log shows me *DLR: 29 queued, using mysql storage. *Can you describe me what is the mean of that? I'm not getting any type error in my log and access files. So please suggest me that this problem is from my side or Operator side. Thanks Ammar Ali On Wed, Apr 22, 2015 at 1:34 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, 4TX and 4RX connections are provided by SMPP provider. Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:51 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, Configuration seems ok. How many TX and RX or TRX connection is allowed by your smpp provider? Regards Tapan Thapa On Wed, Apr 22, 2015 at 12:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, This is SMSC configuration for each instances: group = smsc smsc = smpp smsc-id = TR_SMSC1 log-file = /var/log/TR_SMSC1_lOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = #receive-port= smsc-username = smsc-password = x allowed-smsc-id = TR_SMSC1 preferred-smsc-id = TR_SMSC1 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = VMA #address-range = ^$ #bind-addr-ton = 0 #bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 0 transceiver-mode = true interface-version
Re: Delivery Report Issues
Why are you installing multiple instance of bearerbox? You can install single instance of bearerbox which will connect as TX/RX/TRX with your smpp provider and then multiple sqlbox can connect to the same bearerbox. Regards Tapan Thapa On Wed, Apr 29, 2015 at 5:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, I'm configuring multiple kannel instance on my machine with different port each. But now the problem is that When I'm sending messages then I'm receiving each message on ESME but I'm not getting delivery reports from smsc. My whole architecture is given below: Kannel Instance 1: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME*Kannel Instance 2: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Kannel Instance 3: *APP == SQLBOX == BEARERBOX == SMPP Connections == ESME* Please suggest me what is the exact issue in this configuration. Thanks Ammar Ali Pune (M.H.) On Fri, Apr 24, 2015 at 3:53 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hi, As far as i know, this line DLR: 29 queued, using mysql storage says, that we have sent 29 messages and waiting for their delivery report. As soon as we get delivery report from upstream smsc, this number will come down. Thanks Regards Tapan Thapa On Fri, Apr 24, 2015 at 3:51 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, When I'm sending messages on multiple numbers, then I'm not getting all delivery reports. *This is my kannel monitor log:* Kannel bearerbox version `1.4.4'. Build `Feb 20 2015 13:58:20', compiler `4.4.7 20120313 (Red Hat 4.4.7-11)'. System Linux, release 2.6.32-042stab094.7, version #1 SMP Wed Oct 22 12:43:21 MSK 2014, machine x86_64. Hostname 192-168-1-101, IP 192.168.1.101. Libxml version 2.7.6. Using OpenSSL 1.0.1e-fips 11 Feb 2013. Compiled with MySQL 5.6.22, using MySQL 5.6.23. Using native malloc. Status: running, uptime 2d 0h 57m 5s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 64 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.24,0.03,0.00) msg/sec DLR: received 105, sent 0 DLR: inbound (0.33,0.04,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 29 queued, using mysql storage Box connections: smsbox:smsbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 56m 34s) smsbox:sqlbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 55m 56s) SMSC connections: *TR_SMSC1*[TR_SMSC1]SMPP:10.10.10.10:5775/5775::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 87 (0.33,0.04,0.00), sent: sms 58 (0.24,0.03,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs) *PR_SMSC1*[PR_SMSC1]SMPP:10.10.10.10:5776/5776::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 11 (0.00,0.00,0.00), sent: sms 5 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 1, queued 0 msgs) This log shows me *DLR: 29 queued, using mysql storage. *Can you describe me what is the mean of that? I'm not getting any type error in my log and access files. So please suggest me that this problem is from my side or Operator side. Thanks Ammar Ali On Wed, Apr 22, 2015 at 1:34 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, 4TX and 4RX connections are provided by SMPP provider. Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:51 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, Configuration seems ok. How many TX and RX or TRX connection is allowed by your smpp provider? Regards Tapan Thapa On Wed, Apr 22, 2015 at 12:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, This is SMSC configuration for each instances: group = smsc smsc = smpp smsc-id = TR_SMSC1 log-file = /var/log/TR_SMSC1_lOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = #receive-port= smsc-username = smsc-password = x allowed-smsc-id = TR_SMSC1 preferred-smsc-id = TR_SMSC1 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = VMA #address-range = ^$ #bind-addr-ton = 0 #bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 0 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 reroute-dlr=true Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:39 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello This is my configurations for each instances: *Kannel1* group = core admin-port = 13000 admin-port-ssl=no admin-password = xxx status-password = xxx admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/log/kannel1.log log-level = 0 access-log = /var/log/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsbox smsbox-id = smsbox1 bearerbox-host = 127.0.0.1 bearerbox
Re: Delivery Report Issues
Hi, As far as i know, this line DLR: 29 queued, using mysql storage says, that we have sent 29 messages and waiting for their delivery report. As soon as we get delivery report from upstream smsc, this number will come down. Thanks Regards Tapan Thapa On Fri, Apr 24, 2015 at 3:51 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello To All, When I'm sending messages on multiple numbers, then I'm not getting all delivery reports. *This is my kannel monitor log:* Kannel bearerbox version `1.4.4'. Build `Feb 20 2015 13:58:20', compiler `4.4.7 20120313 (Red Hat 4.4.7-11)'. System Linux, release 2.6.32-042stab094.7, version #1 SMP Wed Oct 22 12:43:21 MSK 2014, machine x86_64. Hostname 192-168-1-101, IP 192.168.1.101. Libxml version 2.7.6. Using OpenSSL 1.0.1e-fips 11 Feb 2013. Compiled with MySQL 5.6.22, using MySQL 5.6.23. Using native malloc. Status: running, uptime 2d 0h 57m 5s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 64 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.24,0.03,0.00) msg/sec DLR: received 105, sent 0 DLR: inbound (0.33,0.04,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 29 queued, using mysql storage Box connections: smsbox:smsbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 56m 34s) smsbox:sqlbox1, IP 127.0.0.1 (0 queued), (on-line 2d 0h 55m 56s) SMSC connections: *TR_SMSC1*[TR_SMSC1]SMPP:10.10.10.10:5775/5775::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 87 (0.33,0.04,0.00), sent: sms 58 (0.24,0.03,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs) *PR_SMSC1*[PR_SMSC1]SMPP:10.10.10.10:5776/5776::VMA (online 176224s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 11 (0.00,0.00,0.00), sent: sms 5 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 1, queued 0 msgs) This log shows me *DLR: 29 queued, using mysql storage. *Can you describe me what is the mean of that? I'm not getting any type error in my log and access files. So please suggest me that this problem is from my side or Operator side. Thanks Ammar Ali On Wed, Apr 22, 2015 at 1:34 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, 4TX and 4RX connections are provided by SMPP provider. Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:51 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Dear Ammar, Configuration seems ok. How many TX and RX or TRX connection is allowed by your smpp provider? Regards Tapan Thapa On Wed, Apr 22, 2015 at 12:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, This is SMSC configuration for each instances: group = smsc smsc = smpp smsc-id = TR_SMSC1 log-file = /var/log/TR_SMSC1_lOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = #receive-port= smsc-username = smsc-password = x allowed-smsc-id = TR_SMSC1 preferred-smsc-id = TR_SMSC1 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = VMA #address-range = ^$ #bind-addr-ton = 0 #bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 0 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 reroute-dlr=true Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:39 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello This is my configurations for each instances: *Kannel1* group = core admin-port = 13000 admin-port-ssl=no admin-password = xxx status-password = xxx admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/log/kannel1.log log-level = 0 access-log = /var/log/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsbox smsbox-id = smsbox1 bearerbox-host = 127.0.0.1 bearerbox-port = 13001 sendsms-port = 13010 log-file = /var/log/smsbox1.log log-level = 0 access-log=/var/log/smsaccess1.access sendsms-chars = 0123456789+ #max-pending-requests = 512 sendsms-url=/cgi-bin/sendsms #global-sender = 123456 #ms-length = 140 #http-request-retry=5 mo-recode='1' *Kannel2* group = core admin-port = 13100 admin-port-ssl=no admin-password = xxx status-password = xxx admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.2 smsbox-port = 13101 log-file = /var/log/kannel2.log log-level = 0 access-log = /var/log/access2.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsbox smsbox-id = smsbox2 bearerbox-host = 127.0.0.2 bearerbox-port = 13101 sendsms-port = 13110 log-file = /var/log/smsbox2.log log-level = 0 access-log=/var/log/smsaccess2.access sendsms-chars = 0123456789+ #max-pending-requests = 512 sendsms-url=/cgi-bin/sendsms
Re: Delivery Report Issues
Dear Ammar, Configuration seems ok. How many TX and RX or TRX connection is allowed by your smpp provider? Regards Tapan Thapa On Wed, Apr 22, 2015 at 12:46 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, This is SMSC configuration for each instances: group = smsc smsc = smpp smsc-id = TR_SMSC1 log-file = /var/log/TR_SMSC1_lOG1.log log-level = 0 host = xxx.xxx.xxx.xxx port = #receive-port= smsc-username = smsc-password = x allowed-smsc-id = TR_SMSC1 preferred-smsc-id = TR_SMSC1 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT system-type = VMA #address-range = ^$ #bind-addr-ton = 0 #bind-addr-npi = 0 enquire-link-interval = 120 reconnect-delay = 0 transceiver-mode = true interface-version = 34 connection-timeout = 0 throughput = 100 reroute-dlr=true Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:39 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello This is my configurations for each instances: *Kannel1* group = core admin-port = 13000 admin-port-ssl=no admin-password = xxx status-password = xxx admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.1 smsbox-port = 13001 log-file = /var/log/kannel1.log log-level = 0 access-log = /var/log/access1.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsbox smsbox-id = smsbox1 bearerbox-host = 127.0.0.1 bearerbox-port = 13001 sendsms-port = 13010 log-file = /var/log/smsbox1.log log-level = 0 access-log=/var/log/smsaccess1.access sendsms-chars = 0123456789+ #max-pending-requests = 512 sendsms-url=/cgi-bin/sendsms #global-sender = 123456 #ms-length = 140 #http-request-retry=5 mo-recode='1' *Kannel2* group = core admin-port = 13100 admin-port-ssl=no admin-password = xxx status-password = xxx admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.2 smsbox-port = 13101 log-file = /var/log/kannel2.log log-level = 0 access-log = /var/log/access2.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsbox smsbox-id = smsbox2 bearerbox-host = 127.0.0.2 bearerbox-port = 13101 sendsms-port = 13110 log-file = /var/log/smsbox2.log log-level = 0 access-log=/var/log/smsaccess2.access sendsms-chars = 0123456789+ #max-pending-requests = 512 sendsms-url=/cgi-bin/sendsms #global-sender = 123456 #ms-length = 140 #http-request-retry=5 mo-recode='1' *Kannel3* group = core admin-port = 13200 admin-port-ssl=no admin-password = xxx status-password = xxx admin-deny-ip=*.*.*.* admin-allow-ip=*.*.*.* smsbox-interface =127.0.0.3 smsbox-port = 13201 log-file = /var/log/kannel3.log log-level = 0 access-log = /var/log/access3.access dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 smsbox-max-pending = 100 sms-resend-freq = 60 sms-resend-retry = -1 group = smsbox smsbox-id = smsbox3 bearerbox-host = 127.0.0.3 bearerbox-port = 13201 sendsms-port = 13210 log-file = /var/log/smsbox3.log log-level = 0 access-log=/var/log/smsaccess3.access sendsms-chars = 0123456789+ #max-pending-requests = 512 sendsms-url=/cgi-bin/sendsms #global-sender = 123456 #ms-length = 140 #http-request-retry=5 mo-recode='1' Thanks Ammar Ali On Wed, Apr 22, 2015 at 12:32 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, When I'm configuring multiple instances of kannel on single machine with different ports then I'm not getting delivery reports. But When I'm using only single instance of kannel then I'm getting delivery reports. So please suggest me. Thanks Ammar Ali On Tue, Apr 21, 2015 at 7:24 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, My SMPP connections are on transceiver mode, i.e. I'm just only configure port. I'm getting delivery reports partially. I;m getting some reports. Thanks Ammar Ali
Re: Delivery Report Issues
You can paste your config here to review. Regards Tapan Thapa On Wed, Apr 22, 2015 at 12:32 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, When I'm configuring multiple instances of kannel on single machine with different ports then I'm not getting delivery reports. But When I'm using only single instance of kannel then I'm getting delivery reports. So please suggest me. Thanks Ammar Ali On Tue, Apr 21, 2015 at 7:24 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello, My SMPP connections are on transceiver mode, i.e. I'm just only configure port. I'm getting delivery reports partially. I;m getting some reports. Thanks Ammar Ali
Re: Fastest method to insert a million MT messages to Kannel
If you are sending One-To-Many kind of messages than you can also add multiple mobile number in single HTTP get request. On Tue, Apr 21, 2015 at 1:41 PM, Cliff Court cco...@telkomsa.net wrote: Hi All I have set up Kannel with bearerbox and smsbox, which is working and I am writing dlr's to a mysql db. Currently I am submitting messages using a sendsms GET or xml-based POST, as per the Kannel documentation. However, using individual http GET or POSTs for each message is relatively slow when needing to send a large volume of messages. Let's assume I have a 100 msgs/sec connection to an external SMSC using SMPP from bearerbox, which will take ~3 hours to send 1 million MT messages. So my question is what is the fastest method to submit messages to bearerbox to send a million MT messages? I have seen that SQLbox is available and that one can insert messages into the send_sms table for faster submission, but I'm wondering what is the fastest method of submission to bearerbox? Thanks Cliff
Re: Fastest method to insert a million MT messages to Kannel
Also while sqlbox is doing its operations with DB like select from send_sms,submit to bearerbox and than inserting the same to sent_sms table and doing delete from send_sms, it will add some time lag and will put load on server too. On Wed, Apr 22, 2015 at 11:10 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: My 2 cents: Adding messages to send_sms table is not an issue. We can add messages to send_sms table very quickly however once sqlbox is submitting those messages to bearerbox, and if beaerebox is unable to submit the same to upstream smsc at desired speed (because upstream smsc is not taking messages at provided speed, (Many factor involves here like hardware capacity, internet bandwidth)) then we will have huge queue at beaerebox level, which actually slow down the overall performance of kannel. On Wed, Apr 22, 2015 at 11:00 AM, Alberto Mijares amijar...@gmail.com wrote: I'd say: with the propper DB and DBI (PostgrSQL + Perl DBI, ie), using PREPARE and COMMIT, SQLBox is your best bet by far. Regards, Alberto Mijares On Wed, Apr 22, 2015 at 12:50 AM, Makhanu Sinja jeysi...@gmail.com wrote: Well last week The same issue was raised on another thread in this mailing list. Let us consider the amount of time sqlbox has to do database CRUD for 1M messages compared to using spool or files. Is there anyone who has worked with both? On 4/21/15, Rene Kluwen rene.klu...@chimit.nl wrote: 1. I think Kannel does support Keep-Alive connections. Not sure about the server side, but I think it does. Just make sure your client also supports it. 2. Yes, probably SQL Box does insert 1,000,000 a lot faster than you can do by http. Question is if your upstream providers handle such a rate. You will end up with a lot of pending messages in the bearerbox queue. == Rene -Original Message- From: users [mailto:users-boun...@kannel.org] On Behalf Of Cliff Court Sent: dinsdag 21 april 2015 10:11 To: users@kannel.org Subject: Fastest method to insert a million MT messages to Kannel Hi All I have set up Kannel with bearerbox and smsbox, which is working and I am writing dlr's to a mysql db. Currently I am submitting messages using a sendsms GET or xml-based POST, as per the Kannel documentation. However, using individual http GET or POSTs for each message is relatively slow when needing to send a large volume of messages. Let's assume I have a 100 msgs/sec connection to an external SMSC using SMPP from bearerbox, which will take ~3 hours to send 1 million MT messages. So my question is what is the fastest method to submit messages to bearerbox to send a million MT messages? I have seen that SQLbox is available and that one can insert messages into the send_sms table for faster submission, but I'm wondering what is the fastest method of submission to bearerbox? Thanks Cliff
Re: Fastest method to insert a million MT messages to Kannel
My 2 cents: Adding messages to send_sms table is not an issue. We can add messages to send_sms table very quickly however once sqlbox is submitting those messages to bearerbox, and if beaerebox is unable to submit the same to upstream smsc at desired speed (because upstream smsc is not taking messages at provided speed, (Many factor involves here like hardware capacity, internet bandwidth)) then we will have huge queue at beaerebox level, which actually slow down the overall performance of kannel. On Wed, Apr 22, 2015 at 11:00 AM, Alberto Mijares amijar...@gmail.com wrote: I'd say: with the propper DB and DBI (PostgrSQL + Perl DBI, ie), using PREPARE and COMMIT, SQLBox is your best bet by far. Regards, Alberto Mijares On Wed, Apr 22, 2015 at 12:50 AM, Makhanu Sinja jeysi...@gmail.com wrote: Well last week The same issue was raised on another thread in this mailing list. Let us consider the amount of time sqlbox has to do database CRUD for 1M messages compared to using spool or files. Is there anyone who has worked with both? On 4/21/15, Rene Kluwen rene.klu...@chimit.nl wrote: 1. I think Kannel does support Keep-Alive connections. Not sure about the server side, but I think it does. Just make sure your client also supports it. 2. Yes, probably SQL Box does insert 1,000,000 a lot faster than you can do by http. Question is if your upstream providers handle such a rate. You will end up with a lot of pending messages in the bearerbox queue. == Rene -Original Message- From: users [mailto:users-boun...@kannel.org] On Behalf Of Cliff Court Sent: dinsdag 21 april 2015 10:11 To: users@kannel.org Subject: Fastest method to insert a million MT messages to Kannel Hi All I have set up Kannel with bearerbox and smsbox, which is working and I am writing dlr's to a mysql db. Currently I am submitting messages using a sendsms GET or xml-based POST, as per the Kannel documentation. However, using individual http GET or POSTs for each message is relatively slow when needing to send a large volume of messages. Let's assume I have a 100 msgs/sec connection to an external SMSC using SMPP from bearerbox, which will take ~3 hours to send 1 million MT messages. So my question is what is the fastest method to submit messages to bearerbox to send a million MT messages? I have seen that SQLbox is available and that one can insert messages into the send_sms table for faster submission, but I'm wondering what is the fastest method of submission to bearerbox? Thanks Cliff
Re: Bearerbox Access Log to MySQL
I do not want any fight here however here is my comments. If we use SQLBOX, below are the extra operations which happened. 1. Select from send_sms table 2. Delete from send_sms table 3. Insert into sent_sms table 4. Update sent_sms table once DLR received FOR EVERY SMS. As per my experience, if we connect any DB with kannel, it actually slow down the overall performance of kannel. In your case if you don't have MySQL in-between you might have achieved 500 TPS with same hardware. Regards Tapan Thapa On Wed, Apr 15, 2015 at 3:37 PM, spameden spame...@gmail.com wrote: 2015-04-15 7:13 GMT+03:00 Tapan Kumar Thapa tapan.thapa2...@gmail.com: If application is going to send huge number of messages via kannel than i think we should not configure kannel anyhow with MySQL (Or Any other database) as All databases actually slow the performance of kannel due to select/insert/update/delete operations. I do not agree with you on this. We've been using sqlbox for quite some time without any problems with huge load some time ago (about 200-300 MT/sec real speed with multiple uplinks). We didn't log DLR reports tho, just updated MT records with relevant fresh information from DLR. In most cases speed issue is SMSC issue not kannel at all if you do everything right. We should make our own application in front of kannel for logging and any other operations. On Wed, Apr 15, 2015 at 3:54 AM, Alberto Mijares amijar...@gmail.com wrote: Hi guys, I'd like to send bearerbox access logs directly to a MySQL table. I think I could try group = core ... access-log = /path/to/any/socket ... and have a script reading the socket, etc... Have anyone done this before? Any advise before I put my hands on would be appretiated. Thanks in advance, Alberto Mijares
Re: Bearerbox Access Log to MySQL
I am using GET (CGI-BIN/SENDSMS) to inject sms at kannel and the performance of kannel is just gr8 as i am not using any SQL operations at Kannel level so that it can work at full speed without any dependency. On Wed, Apr 15, 2015 at 4:56 PM, Makhanu Sinja jeysi...@gmail.com wrote: Tapan By using curl to send post to kannel, would the performance equal to what you stated? On 4/15/15, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: I do not want any fight here however here is my comments. If we use SQLBOX, below are the extra operations which happened. 1. Select from send_sms table 2. Delete from send_sms table 3. Insert into sent_sms table 4. Update sent_sms table once DLR received FOR EVERY SMS. As per my experience, if we connect any DB with kannel, it actually slow down the overall performance of kannel. In your case if you don't have MySQL in-between you might have achieved 500 TPS with same hardware. Regards Tapan Thapa On Wed, Apr 15, 2015 at 3:37 PM, spameden spame...@gmail.com wrote: 2015-04-15 7:13 GMT+03:00 Tapan Kumar Thapa tapan.thapa2...@gmail.com : If application is going to send huge number of messages via kannel than i think we should not configure kannel anyhow with MySQL (Or Any other database) as All databases actually slow the performance of kannel due to select/insert/update/delete operations. I do not agree with you on this. We've been using sqlbox for quite some time without any problems with huge load some time ago (about 200-300 MT/sec real speed with multiple uplinks). We didn't log DLR reports tho, just updated MT records with relevant fresh information from DLR. In most cases speed issue is SMSC issue not kannel at all if you do everything right. We should make our own application in front of kannel for logging and any other operations. On Wed, Apr 15, 2015 at 3:54 AM, Alberto Mijares amijar...@gmail.com wrote: Hi guys, I'd like to send bearerbox access logs directly to a MySQL table. I think I could try group = core ... access-log = /path/to/any/socket ... and have a script reading the socket, etc... Have anyone done this before? Any advise before I put my hands on would be appretiated. Thanks in advance, Alberto Mijares -- -- Kind Regards. *Makhanu Sinja.* +254 (0) 72168 0868 *I do know everything, just not all at once. It's a virtual memory problem.*
Re: Bearerbox Access Log to MySQL
If application is going to send huge number of messages via kannel than i think we should not configure kannel anyhow with MySQL (Or Any other database) as All databases actually slow the performance of kannel due to select/insert/update/delete operations. We should make our own application in front of kannel for logging and any other operations. On Wed, Apr 15, 2015 at 3:54 AM, Alberto Mijares amijar...@gmail.com wrote: Hi guys, I'd like to send bearerbox access logs directly to a MySQL table. I think I could try group = core ... access-log = /path/to/any/socket ... and have a script reading the socket, etc... Have anyone done this before? Any advise before I put my hands on would be appretiated. Thanks in advance, Alberto Mijares
Re: send bulk sms using kannel
Check http://playsms.org/ On Mon, Mar 30, 2015 at 6:14 PM, Salma BARKAOUI salma.barka...@supcom.tn wrote: Hi, I would like to develop a php application that send bulk sms using kannel , I though it will be possible if I use for but It takes so many time so there is any other alternative (still looking for ideas ) ? Thanks. Salma
Re: Routing failed, re-queued and 3: Queued for later delivery
Hi Nilubon, Can you use Fakesmsc as simulation provided by Kannel itself? On Wed, Mar 18, 2015 at 12:34 PM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi, I tried it, but I still have the same errors. Sometimes I think the problems are caused by configuration of SMPPSim (My SMSC simulation). Is that possible? Thanks Regards Nilubon Soonthon *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] *Sent:* Thursday, March 12, 2015 11:43 AM *To:* Nilubon Soonthon *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery Although url seems ok but can you try below and see if its resolves your issue. http://localhost:13013/cgi-bin/sendsms?username=adminpassword=kannelto=0123456789from=text=testmessage smsc=SMPPSim On Thu, Mar 12, 2015 at 9:51 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: This my URL that I use to send sms. http://localhost:13013/cgi-bin/sendsms?username=adminpassword=kannelto=0123456789from=text=testmessage *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] *Sent:* Thursday, March 12, 2015 11:06 AM *To:* Nilubon Soonthon *Cc:* Alvaro Cornejo; users@kannel.org *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery Can you post here the complete sendsms url being invoked by playsms? On Thu, Mar 12, 2015 at 8:49 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi Alvano, Sure, This is my smsc logs when I started bearerbox. 2015.03.11 19:59:48 672 INFO16 : BIND_RECEIVER: 2015.03.11 19:59:48 672 INFO16 Hex dump (44) bytes: 2015.03.11 19:59:48 672 INFO16 002C:0001::0001: 2015.03.11 19:59:48 673 INFO16 736D7070:636C6965:6E743100:31323334: 2015.03.11 19:59:48 673 INFO16 35002756:4D412700:3400: 2015.03.11 19:59:48 673 INFO16 cmd_len=44,cmd_id=1,cmd_status=0,seq_no=1,system_id=smppclient1,password=12345 2015.03.11 19:59:48 673 INFO16 system_type='VMA',interface_version=52,addr_ton=0,addr_npi=0,address_range= 2015.03.11 19:59:48 674 INFO16 2015.03.11 19:59:48 674 INFO16 StandardProtocolHandler: setting address range to 2015.03.11 19:59:48 674 INFO16 New receiver session bound to SMPPSim 2015.03.11 19:59:48 674 INFO16 : BIND_RECEIVER_RESP: 2015.03.11 19:59:48 674 INFO16 Hex dump (24) bytes: 2015.03.11 19:59:48 675 INFO16 0018:8001::0001: 2015.03.11 19:59:48 675 INFO16 534D5050:53696D00: 2015.03.11 19:59:48 675 INFO16 cmd_len=0,cmd_id=-2147483647,cmd_status=0,seq_no=1,system_id=SMPPSim 2015.03.11 19:59:48 675 INFO16 2015.03.11 19:59:48 676 INFO16 2 receivers connected and bound 2015.03.11 19:59:48 676 INFO20 InboundQueue: empty - waiting 2015.03.11 20:00:17 59 INFO17 : ENQUIRE_LINK: 2015.03.11 20:00:17 60 INFO17 Hex dump (16) bytes: 2015.03.11 20:00:17 60 INFO17 0010:0015::000E: 2015.03.11 20:00:17 60 INFO17 2015.03.11 20:00:17 60 INFO17 cmd_len=16,cmd_id=21,cmd_status=0,seq_no=14 2015.03.11 20:00:17 60 INFO17 2015.03.11 20:00:17 60 INFO17 :ENQUIRE_LINK_RESP: 2015.03.11 20:00:17 61 INFO17 Hex dump (16) bytes: 2015.03.11 20:00:17 64 INFO17 0010:8015::000E: 2015.03.11 20:00:17 64 INFO17 2015.03.11 20:00:17 65 INFO17 cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=14 2015.03.11 20:00:17 65 INFO17 2015.03.11 20:00:17 214 INFO18 : ENQUIRE_LINK: 2015.03.11 20:00:17 215 INFO18 Hex dump (16) bytes: 2015.03.11 20:00:17 215 INFO18 0010:0015::000E: 2015.03.11 20:00:17 215 INFO18 2015.03.11 20:00:17 215 INFO18 cmd_len=16,cmd_id=21,cmd_status=0,seq_no=14 2015.03.11 20:00:17 216 INFO18 2015.03.11 20:00:17 216 INFO18 :ENQUIRE_LINK_RESP: 2015.03.11 20:00:17 216 INFO18 Hex dump (16) bytes: 2015.03.11 20:00:17 216 INFO18 0010:8015::000E: 2015.03.11 20:00:17 216 INFO18 2015.03.11 20:00:17 216 INFO18 cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=14 And this is my smsbox logs when I send SMS via URL. 2015-03-12 17:12:56 [3907] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2015-03-12 17:12:56 [3907] [2] DEBUG: HTTP: Created HTTPClient area 0x7fea28000ad0. 2015-03-12 17:12:56 [3907] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 127.0.0.1 2015-03-12 17:12:56 [3907] [3] INFO: sendsms used by admin 2015-03-12 17:12:56 [3907] [3] INFO: sendsms sender:admin: (127.0.0.1) to:0123456789 msg:testmessage 2015-03-12 17:12:56 [3907] [3] DEBUG: Stored UUID 71659f2c-a479-4c07-a56f-5e9db4293ad8 2015-03-12 17:12:56 [3907] [3] DEBUG: message length 11, sending 1 messages 2015-03-12 17:12:56 [3907] [3] DEBUG: Status: 202 Answer: Sent. 2015-03-12 17:12:56 [3907] [3] DEBUG: Delayed reply - wait for bearerbox 2015-03-12 17:12:56 [3907] [0] DEBUG: Got ACK (3) of 71659f2c
RE: Kannel configuration without wait ack
U should use max-pending-submits. Put its value to 100, means bearerbox will send 100 messages first and will not wait for submit response. After sending 100, it will check for sumit response. Regards Tapan Thapa Sent from my Windows Phone -- From: Sebastián Insausti sinsau...@binbit.com Sent: 3/14/2015 12:36 AM To: Tapan Kumar Thapa tapan.thapa2...@gmail.com Cc: users@kannel.org Subject: Re: Kannel configuration without wait ack Hi Tapan Thapa, Thanks for the reply. I can see two max-pending: smsbox-max-pending number of messages Maximum number of pending messages on the line to smsbox compatible boxes. max-pending-submits number Optional the maximum number of outstanding (i.e. acknowledged) SMPP operations between an ESME and SMSC. This number is not specified explicitly in the SMPP Protocol Specification and will be governed by the SMPP implementation on the SMSC. As a guideline it is recommended that no more than 10 (default) SMPP messages are outstanding at any time. Which one should I set up and which parameter am I supposed to use? If we configure the max pending parameter, can we send all the sms without having to wait for the ack response? Thanks. 2015-03-13 13:48 GMT-03:00 Tapan Kumar Thapa tapan.thapa2...@gmail.com: Check kannel documentation for max pending under smsc=smpp group. Regards Tapan Thapa Sent from my Windows Phone -- From: Sebastián Insausti sinsau...@binbit.com Sent: 3/13/2015 10:07 PM To: users@kannel.org Subject: Kannel configuration without wait ack Hi, I need to configure a kannel for sending all the sms that are stored without waiting for the ack and without send retry. Can anyone help me to configure this? I am not sure about the parameters needed for this. Thanks, Regards.
RE: Kannel configuration without wait ack
Check kannel documentation for max pending under smsc=smpp group. Regards Tapan Thapa Sent from my Windows Phone -- From: Sebastián Insausti sinsau...@binbit.com Sent: 3/13/2015 10:07 PM To: users@kannel.org Subject: Kannel configuration without wait ack Hi, I need to configure a kannel for sending all the sms that are stored without waiting for the ack and without send retry. Can anyone help me to configure this? I am not sure about the parameters needed for this. Thanks, Regards.
Re: Routing failed, re-queued and 3: Queued for later delivery
Can you post here the complete sendsms url being invoked by playsms? On Thu, Mar 12, 2015 at 8:49 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi Alvano, Sure, This is my smsc logs when I started bearerbox. 2015.03.11 19:59:48 672 INFO16 : BIND_RECEIVER: 2015.03.11 19:59:48 672 INFO16 Hex dump (44) bytes: 2015.03.11 19:59:48 672 INFO16 002C:0001::0001: 2015.03.11 19:59:48 673 INFO16 736D7070:636C6965:6E743100:31323334: 2015.03.11 19:59:48 673 INFO16 35002756:4D412700:3400: 2015.03.11 19:59:48 673 INFO16 cmd_len=44,cmd_id=1,cmd_status=0,seq_no=1,system_id=smppclient1,password=12345 2015.03.11 19:59:48 673 INFO16 system_type='VMA',interface_version=52,addr_ton=0,addr_npi=0,address_range= 2015.03.11 19:59:48 674 INFO16 2015.03.11 19:59:48 674 INFO16 StandardProtocolHandler: setting address range to 2015.03.11 19:59:48 674 INFO16 New receiver session bound to SMPPSim 2015.03.11 19:59:48 674 INFO16 : BIND_RECEIVER_RESP: 2015.03.11 19:59:48 674 INFO16 Hex dump (24) bytes: 2015.03.11 19:59:48 675 INFO16 0018:8001::0001: 2015.03.11 19:59:48 675 INFO16 534D5050:53696D00: 2015.03.11 19:59:48 675 INFO16 cmd_len=0,cmd_id=-2147483647,cmd_status=0,seq_no=1,system_id=SMPPSim 2015.03.11 19:59:48 675 INFO16 2015.03.11 19:59:48 676 INFO16 2 receivers connected and bound 2015.03.11 19:59:48 676 INFO20 InboundQueue: empty - waiting 2015.03.11 20:00:17 59 INFO17 : ENQUIRE_LINK: 2015.03.11 20:00:17 60 INFO17 Hex dump (16) bytes: 2015.03.11 20:00:17 60 INFO17 0010:0015::000E: 2015.03.11 20:00:17 60 INFO17 2015.03.11 20:00:17 60 INFO17 cmd_len=16,cmd_id=21,cmd_status=0,seq_no=14 2015.03.11 20:00:17 60 INFO17 2015.03.11 20:00:17 60 INFO17 :ENQUIRE_LINK_RESP: 2015.03.11 20:00:17 61 INFO17 Hex dump (16) bytes: 2015.03.11 20:00:17 64 INFO17 0010:8015::000E: 2015.03.11 20:00:17 64 INFO17 2015.03.11 20:00:17 65 INFO17 cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=14 2015.03.11 20:00:17 65 INFO17 2015.03.11 20:00:17 214 INFO18 : ENQUIRE_LINK: 2015.03.11 20:00:17 215 INFO18 Hex dump (16) bytes: 2015.03.11 20:00:17 215 INFO18 0010:0015::000E: 2015.03.11 20:00:17 215 INFO18 2015.03.11 20:00:17 215 INFO18 cmd_len=16,cmd_id=21,cmd_status=0,seq_no=14 2015.03.11 20:00:17 216 INFO18 2015.03.11 20:00:17 216 INFO18 :ENQUIRE_LINK_RESP: 2015.03.11 20:00:17 216 INFO18 Hex dump (16) bytes: 2015.03.11 20:00:17 216 INFO18 0010:8015::000E: 2015.03.11 20:00:17 216 INFO18 2015.03.11 20:00:17 216 INFO18 cmd_len=0,cmd_id=-2147483627,cmd_status=0,seq_no=14 And this is my smsbox logs when I send SMS via URL. 2015-03-12 17:12:56 [3907] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2015-03-12 17:12:56 [3907] [2] DEBUG: HTTP: Created HTTPClient area 0x7fea28000ad0. 2015-03-12 17:12:56 [3907] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 127.0.0.1 2015-03-12 17:12:56 [3907] [3] INFO: sendsms used by admin 2015-03-12 17:12:56 [3907] [3] INFO: sendsms sender:admin: (127.0.0.1) to:0123456789 msg:testmessage 2015-03-12 17:12:56 [3907] [3] DEBUG: Stored UUID 71659f2c-a479-4c07-a56f-5e9db4293ad8 2015-03-12 17:12:56 [3907] [3] DEBUG: message length 11, sending 1 messages 2015-03-12 17:12:56 [3907] [3] DEBUG: Status: 202 Answer: Sent. 2015-03-12 17:12:56 [3907] [3] DEBUG: Delayed reply - wait for bearerbox 2015-03-12 17:12:56 [3907] [0] DEBUG: Got ACK (3) of 71659f2c-a479-4c07-a56f-5e9db4293ad8 2015-03-12 17:12:56 [3907] [0] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2015-03-12 17:12:56 [3907] [3] INFO: smsbox: Got HTTP request /favicon.ico from 127.0.0.1 2015-03-12 17:12:56 [3907] [3] DEBUG: Status: 404 Answer: Unknown request. 2015-03-12 17:12:56 [3907] [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2015-03-12 17:13:56 [3907] [1] DEBUG: Timeout for fd:25 appears. 2015-03-12 17:13:56 [3907] [1] DEBUG: HTTP: Destroying HTTPClient area 0x7fea28000ad0. 2015-03-12 17:13:56 [3907] [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. Thanks Regards, Nilubon Soonthon *From:* Alvaro Cornejo [mailto:cornejo.alv...@gmail.com] *Sent:* Wednesday, March 11, 2015 8:56 PM *To:* Tapan Kumar Thapa *Cc:* Nilubon Soonthon; users@kannel.org *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery Hi Can you post relevant parts of your smsbox and smsc logs? Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2
Re: Routing failed, re-queued and 3: Queued for later delivery
Dear Nilubon, Can you please give us the output of below url? http://10.11.21.248:13000/status?password=kannel Regards Tapan Thapa On Wed, Mar 11, 2015 at 8:32 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Dear Tapan, Thanks for Answer but I think my SMSC isn’t down because I use Wireshark to capture packet between my simutation SMSC (SMPPSim 10.11.21.78) and Kannel (10.11.21.248) and I think I found packet that connected between it.(Details of Packet in attached file.) If my SMSC isn’t down .Do you have any idea for me to solve this problem? Thanks regards Nilubon Soonthon *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] *Sent:* Monday, March 9, 2015 3:20 PM *To:* Nilubon Soonthon *Cc:* users@kannel.org *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery Check kannel admin interface for SMSC status. It seems SMSC is down. On Mon, Mar 9, 2015 at 1:47 PM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi, My kannel configuration has been working both for sending and receiving SMS but all of a sudden both sending and receiving is not working. When sending all messages are queued Below are the debug logs of bearerbox: 2014-03-19 19:24:21 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs. [root at hosta http://www.kannel.org/mailman/listinfo/users]# tail -20 bearerbox.log 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x971e120 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9720aa8 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0xb3100dc0 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x971e290 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9722c20 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9722f50 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0xb3101598 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9723e58 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9724248 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs. Below is the whole configuration of kannel: #kannel.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = kannel status-password = kannel log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log dlr-storage = internal #--- mysql connection group = mysql-connection id = mydlr host = 10.11.21.136 username = kannel password = kannel database = kannelDb max-connections = 1 # DLR table structure group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = timstamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id group = smsbox smsbox-id = smsbox1 bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 #global-sender = 1000 log-file = /var/log/kannel/smsbox.log log-level = 0 mo-recode = true group = smsbox-route smsbox-id = smsbox1 smsc-id = SMPPSim group = smsc smsc = smpp smsc-id = SMPPSim host = 10.11.21.78 #port = 2775 transceiver-mode = 0 receive-port = 2775 smsc-username = smppclient1 smsc-password = 12345 system-type = 'VMA' #service-type = 'test' interface-version = 34 system-id = smppclient1 preferred-smsc-id = SMPPSim allowed-smsc-id=SMPPSim log-file = /var/log/kannel/smppsim.log group = sendsms-user username = playsms password = playsms user-allow-ip = 10.11.21.* user-deny-ip = *.*.*.* default-smsc = SMPPSim default-sender = '1000' group = sendsms-user username = admin password = kannel default-smsc = SMPPSim default-sender = '1000' group = sms-service keyword = default accept-x-kannel-headers = true accepted-smsc = SMPPSim catch-all = true post-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=posturlt=%tq=%qa
Re: Routing failed, re-queued and 3: Queued for later delivery
Dear Nilubon, Are you still facing the re-routing issue? Your bearerbox is on from 35 min and your SMSC is on from 16s only. Is there any issue with SMSC? Have you restarted SMSC via kannel admin interface? On Wed, Mar 11, 2015 at 9:46 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Dear Tapan, This is my output: Kannel bearerbox version `1.4.4'. Build `Mar 2 2015 17:23:17', compiler `4.4.7 20120313 (Red Hat 4.4.7-11)'. System Linux, release 2.6.32-431.el6.x86_64, version #1 SMP Fri Nov 22 03:15:09 UTC 2013, machine x86_64. Hostname tg-1536, IP 127.0.0.1. Libxml version 2.7.6. Using OpenSSL 1.0.1e-fips 11 Feb 2013. Using native malloc. Status: running, uptime 0d 0h 35m 26s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (1 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: received 0, sent 0 DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 0 queued, using internal storage Box connections: smsbox:smsbox2, IP 127.0.0.1 (0 queued), (on-line 0d 0h 35m 6s) SMSC connections: *SMPPSim*[SMPPSim]SMPP:10.11.21.78:0/2775:smppclient1:'VMA' (online 16s, rcvd: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), sent: sms 0 (0.00,0.00,0.00) / dlr 0 (0.00,0.00,0.00), failed 0, queued 0 msgs) Thank Regards, Nilubon Soonthon *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] *Sent:* Wednesday, March 11, 2015 10:58 AM *To:* Nilubon Soonthon *Cc:* users@kannel.org *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery Dear Nilubon, Can you please give us the output of below url? http://10.11.21.248:13000/status?password=kannel Regards Tapan Thapa On Wed, Mar 11, 2015 at 8:32 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Dear Tapan, Thanks for Answer but I think my SMSC isn’t down because I use Wireshark to capture packet between my simutation SMSC (SMPPSim 10.11.21.78) and Kannel (10.11.21.248) and I think I found packet that connected between it.(Details of Packet in attached file.) If my SMSC isn’t down .Do you have any idea for me to solve this problem? Thanks regards Nilubon Soonthon *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] *Sent:* Monday, March 9, 2015 3:20 PM *To:* Nilubon Soonthon *Cc:* users@kannel.org *Subject:* Re: Routing failed, re-queued and 3: Queued for later delivery Check kannel admin interface for SMSC status. It seems SMSC is down. On Mon, Mar 9, 2015 at 1:47 PM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi, My kannel configuration has been working both for sending and receiving SMS but all of a sudden both sending and receiving is not working. When sending all messages are queued Below are the debug logs of bearerbox: 2014-03-19 19:24:21 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs. [root at hosta http://www.kannel.org/mailman/listinfo/users]# tail -20 bearerbox.log 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x971e120 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9720aa8 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0xb3100dc0 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x971e290 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9722c20 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9722f50 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0xb3101598 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9723e58 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9724248 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs. Below is the whole configuration of kannel: #kannel.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = kannel status-password = kannel log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log dlr-storage = internal
Re: Routing failed, re-queued and 3: Queued for later delivery
Check kannel admin interface for SMSC status. It seems SMSC is down. On Mon, Mar 9, 2015 at 1:47 PM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi, My kannel configuration has been working both for sending and receiving SMS but all of a sudden both sending and receiving is not working. When sending all messages are queued Below are the debug logs of bearerbox: 2014-03-19 19:24:21 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs. [root at hosta http://www.kannel.org/mailman/listinfo/users]# tail -20 bearerbox.log 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x971e120 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9720aa8 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0xb3100dc0 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x971e290 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9722c20 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9722f50 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0xb3101598 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9723e58 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: handling message (0x9724248 vs 0x9724248) 2014-03-19 19:24:51 [31238] [7] DEBUG: Routing failed, re-queued. 2014-03-19 19:24:51 [31238] [7] DEBUG: sms_router: time to sleep 30.00 secs. Below is the whole configuration of kannel: #kannel.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = kannel status-password = kannel log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log dlr-storage = internal #--- mysql connection group = mysql-connection id = mydlr host = 10.11.21.136 username = kannel password = kannel database = kannelDb max-connections = 1 # DLR table structure group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = timstamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id group = smsbox smsbox-id = smsbox1 bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 #global-sender = 1000 log-file = /var/log/kannel/smsbox.log log-level = 0 mo-recode = true group = smsbox-route smsbox-id = smsbox1 smsc-id = SMPPSim group = smsc smsc = smpp smsc-id = SMPPSim host = 10.11.21.78 #port = 2775 transceiver-mode = 0 receive-port = 2775 smsc-username = smppclient1 smsc-password = 12345 system-type = 'VMA' #service-type = 'test' interface-version = 34 system-id = smppclient1 preferred-smsc-id = SMPPSim allowed-smsc-id=SMPPSim log-file = /var/log/kannel/smppsim.log group = sendsms-user username = playsms password = playsms user-allow-ip = 10.11.21.* user-deny-ip = *.*.*.* default-smsc = SMPPSim default-sender = '1000' group = sendsms-user username = admin password = kannel default-smsc = SMPPSim default-sender = '1000' group = sms-service keyword = default accept-x-kannel-headers = true accepted-smsc = SMPPSim catch-all = true post-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=posturlt=%tq=%qa=%a Thanks Regards, Nilubon Soonthon
RE: messages are being queued
MySQL is the culprit in most cases. Have u created proper mysql index on dlr table? Regards Tapan Thapa Sent from my Windows Phone -- From: Ali Kashif syedalikas...@gmail.com Sent: 3/8/2015 11:12 PM To: users@kannel.org Subject: messages are being queued Dear Friends, I am connected with multiple SMSCs and some clients are connected to me. but from last few weeks most of messages get queues, I have checked everything in server, resources are freee.. and mysql is cool and calm. I have checked with my SMSCs for TFS and they clam that i have enogh TPS (30 per provider) when tail access log i see messages going slowly , where as in past it was like.. i was unable to see the log that was too fast. can anyone guide me where to check and what to check . Thanks Ali
Re: Kannel's Capacity
Hello Nattawat, From kannel software prospective there is no limit. However below are the concerns which might bring the speed down. 1. Internet bandwidth between kannel server and SMSC. 2. Server is having low resources (CPU or RAM limit) 3. Kannel is having long queue. 4. SMSC has given you low capacity. (Less traffic per second) 5. etc... On Fri, Mar 6, 2015 at 2:36 PM, Nattawat P. nattawa...@jasmine.com wrote: Hi, Can anyone tell me what the maximum capacity of Kannel is. The capacity(in terms of messages per second) is limited by hardware or software itself. Thanks, Nattawat
Re: Message rejected by bearerbox, no router!
Dear Nilubon, You can try below sendsms-user settings. group = sendsms-user username = admin password = kannel default-smsc = SMPPSim forced-smsc = SMPPSim default-sender = '1000' However you need to check with playsms group that while playsms is submitting sms to kannel, what sendsms url they are invoking. On Thu, Mar 5, 2015 at 1:39 PM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi, I have problem with sending throw SMPP - connection, when I`m trying send sms throw WEB-browser I see that in my kannel log: 2012-05-02 09:18:49 [1756] [9] WARNING: Cannot find SMSCConn for message to xx, rejected. 2012-05-02 09:18:49 [1756] [9] WARNING: Message rejected by bearerbox, no router! and smsbox.log: 2009-07-21 02:01:52 [7125] [3] DEBUG: HTTP: Destroying HTTPClient area 0x8ac0. 2009-07-21 02:01:52 [7125] [3] DEBUG: HTTP: Destroying HTTPClient for `xx.xx.xx.16'. 2009-07-21 02:01:52 [7125] [1] DEBUG: HTTP: Destroying HTTPClient area 0x8ac04680. 2009-07-21 02:01:52 [7125] [1] DEBUG: HTTP: Destroying HTTPClient for `xx.xx.xx.16' This my config: #kannel.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = kannel status-password = kannel log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log dlr-storage = internal #--- mysql connection group = mysql-connection id = mydlr host = 10.11.21.136 username = kannel password = kannel database = kannelDb max-connections = 1 # DLR table structure group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = timstamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id group = smsbox smsbox-id = smsbox1 bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 #global-sender = 1000 log-file = /var/log/kannel/smsbox.log log-level = 0 mo-recode = true group = smsbox-route smsbox-id = smsbox1 smsc-id = SMPPSim group = smsc smsc = smpp smsc-id = SMPPSim host = 10.11.21.78 #port = 2775 transceiver-mode = 0 receive-port = 2775 smsc-username = smppclient1 smsc-password = 12345 system-type = 'VMA' #service-type = 'test' interface-version = 34 system-id = smppclient1 preferred-smsc-id = SMPPSim allowed-smsc-id=SMPPSim log-file = /var/log/kannel/smppsim.log group = sendsms-user username = playsms password = playsms user-allow-ip = 10.11.21.* user-deny-ip = *.*.*.* default-smsc = SMPPSim default-sender = '1000' group = sendsms-user username = admin password = kannel default-smsc = SMPPSim default-sender = '1000' group = sms-service keyword = default accept-x-kannel-headers = true accepted-smsc = SMPPSim catch-all = true post-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=posturlt=%tq=%qa=%a Thanks Regards Nilubon Soonthon
Re: Quesion about Connet External Dabases of Kannel
Dear Nilubon, Here we should ask kannel related questions not PlaySMS related. Your question seems to me like How to do stuff with playsms... Please ask your question at PlaySMS forum and someone from that end should help you out. Thanks On Thu, Mar 5, 2015 at 8:17 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Dear Tapan 1. I use PlaySMS to sending SMS and receiving SMS (I think Playsms can do both of this) 2. For kannel , How I config that to receive and send SMS from PlaySMS? Such as group sendsms-user, or I must have sqlbox,opensmppbox(Now, I don’t have sqlbox and smppbox because it error when I make install) 3. My query related to sending. Thanks Regards Nilubon Soonthon *From:* Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] *Sent:* Tuesday, March 3, 2015 10:59 AM *To:* Nilubon Soonthon *Cc:* users@kannel.org *Subject:* Re: Quesion about Connet External Dabases of Kannel Dear Nilubon, I have not used playsms since so long however tried playsms 2-3 years back. Can you please explain what exactly you are trying to achieve? For Example: PlaySMS - Kannel (For sending SMS) Kannel - PlaySMS (For receiving SMS) Is your query related to sending or receiving? On Tue, Mar 3, 2015 at 8:03 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi Tapan, 1. Do you mean I can use many smsbox to fix Operators That I want to transfer and then bearerbox will transfer my SMS to SMSCs ? 2. For PlaySMS, I must Query Data from databases and process its before send to kannel right? 3. What parameter that I must receive from PlaySMS to select the right smsbox? My configuration file is below #kannel.conf group = core admin-port = 13000 smsbox-port = 14000 admin-password = kannel status-password = kannel log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log # DLR table structure group = dlr-db id = mydlr table = kannel_dlr field-smsc = smsc field-timestamp = timstamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id group = smsbox #smsbox-id = mysmsbox do not uncomment this if you have only one smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 #global-sender = 1000 log-file = /var/log/kannel/smsbox.log log-level = 0 mo-recode = true group = smsc smsc = smpp smsc-id = SMPPSim host = 127.0.0.1 #port = 2775 transceiver-mode = 1 receive-port = 2775 smsc-username = smppclient1 smsc-password = 12345 system-type = 'VMA' #service-type = 'test' interface-version = 34 #system-id = smppclient1 preferred-smsc-id = SMPPSim group = sendsms-user username = kannel password = kannel #forced-smsc = SMPPSim default-sender = '1000' group = sms-service keyword = default accept-x-kannel-headers = true #text = No service specified catch-all = true max-messages = 0 # it's better to put this parameter to 0 or you will have a lot Ack in your network get-url = http://localhost/kannel/?phone=%ptext=%a; Thanks Regards Nilubon Soonthon From: Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] Sent: Monday, March 2, 2015 12:03 PM To: Nilubon Soonthon Cc: users@kannel.org Subject: Re: Quesion about Connet External Dabases of Kannel Hi, Kannel does not support this feature. You have two options: 1. Modify playsms to select appropriate SMSC before submitting sms to kannel via SMSBOX. 2. You can make different users at kannel (SMSBOX) and use those users while submitting sms to kannel. Users will have their predefined SMSC fixed at SMSBOX level. Thanks Regards Tapan Thapa On Mon, Mar 2, 2015 at 10:00 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: I would like to know how to connect to external Databases (redirect servers that provide number and operators that numbers are register) of Kannel to query data sush as number,operators and use that data to select SMSCs to transfer messages (I get messages from Web sevice Api using PlaySMS). Can Kannel do this and how I config it ? Best Regards, Description: Description: Description: Description: Description: 5090742_250 Nilubon Soonthon VoIP DIV. Triple T Broadband PCL; Office :02-100-7470
Re: Quesion about Connet External Dabases of Kannel
Dear Nilubon, I have not used playsms since so long however tried playsms 2-3 years back. Can you please explain what exactly you are trying to achieve? For Example: PlaySMS - Kannel (For sending SMS) Kannel - PlaySMS (For receiving SMS) Is your query related to sending or receiving? On Tue, Mar 3, 2015 at 8:03 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: Hi Tapan, 1. Do you mean I can use many smsbox to fix Operators That I want to transfer and then bearerbox will transfer my SMS to SMSCs ? 2. For PlaySMS, I must Query Data from databases and process its before send to kannel right? 3. What parameter that I must receive from PlaySMS to select the right smsbox? My configuration file is below #kannel.conf group = core admin-port = 13000 smsbox-port = 14000 admin-password = kannel status-password = kannel log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access_kannel.log # DLR table structure group = dlr-db id = mydlr table = kannel_dlr field-smsc = smsc field-timestamp = timstamp field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc_id group = smsbox #smsbox-id = mysmsbox do not uncomment this if you have only one smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 #global-sender = 1000 log-file = /var/log/kannel/smsbox.log log-level = 0 mo-recode = true group = smsc smsc = smpp smsc-id = SMPPSim host = 127.0.0.1 #port = 2775 transceiver-mode = 1 receive-port = 2775 smsc-username = smppclient1 smsc-password = 12345 system-type = 'VMA' #service-type = 'test' interface-version = 34 #system-id = smppclient1 preferred-smsc-id = SMPPSim group = sendsms-user username = kannel password = kannel #forced-smsc = SMPPSim default-sender = '1000' group = sms-service keyword = default accept-x-kannel-headers = true #text = No service specified catch-all = true max-messages = 0 # it's better to put this parameter to 0 or you will have a lot Ack in your network get-url = http://localhost/kannel/?phone=%ptext=%a; Thanks Regards Nilubon Soonthon From: Tapan Kumar Thapa [mailto:tapan.thapa2...@gmail.com] Sent: Monday, March 2, 2015 12:03 PM To: Nilubon Soonthon Cc: users@kannel.org Subject: Re: Quesion about Connet External Dabases of Kannel Hi, Kannel does not support this feature. You have two options: 1. Modify playsms to select appropriate SMSC before submitting sms to kannel via SMSBOX. 2. You can make different users at kannel (SMSBOX) and use those users while submitting sms to kannel. Users will have their predefined SMSC fixed at SMSBOX level. Thanks Regards Tapan Thapa On Mon, Mar 2, 2015 at 10:00 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: I would like to know how to connect to external Databases (redirect servers that provide number and operators that numbers are register) of Kannel to query data sush as number,operators and use that data to select SMSCs to transfer messages (I get messages from Web sevice Api using PlaySMS). Can Kannel do this and how I config it ? Best Regards, Description: Description: Description: Description: Description: 5090742_250 Nilubon Soonthon VoIP DIV. Triple T Broadband PCL; Office :02-100-7470
Re: Kannel doesn't start on CentOS
Hello Friend, You have three options. 1. Try my below provided init script which works on Centos 6.6. 2. You can remove init script and can use supervisor. Check supervisor for their configuration. 3. You can give your machine ssh access to me and i will resolve it for you. :-) (It will be free don't worry) Remove this line #!/bin/sh # # gateway This shell script takes care of starting and stopping # the Kannel WAP gateway (bearer/wapbox) # # chkconfig: 2345 97 03 # description: Start and stop the Kannel WAP gateway used to fetch \ # some WML content from a Web server compile it \ # into WMLC mobile phone bytecode. # probe: true # Use start-stop-daemon ver=1.5 BBOX=/home/kannel/kannel/sbin/bearerbox SBOX=/home/kannel/kannel/sbin/smsbox START=/home/kannel/kannel/sbin/start-stop-daemon --start --chuid kannel:kannel --background --quiet --exec STOP=/home/kannel/kannel/sbin/start-stop-daemon --stop --user kannel --quiet --oknodo --exec CONF=/home/kannel/kannel/etc/kannel.conf LEVEL=-v\ 1 [ $# -eq 2 ] ver=$2 # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = no ] exit 0 [ -x $BBOX ] || exit 0 [ -x $SBOX ] || exit 0 [ -f $CONF ] || exit 0 RETVAL=0 # See how we were called. case $1 in start) # Start daemons. echo -n Starting bearer service (gateway kannel $ver): $START $BBOX -- $LEVEL $CONF RETVAL1=$? sleep 1 # Sleep for a while before we try to start smsbox echo echo -n Starting smsbox service (gateway kannel $ver): $START $SBOX -- $CONF RETVAL2=$? echo echo [ $RETVAL1 -eq 0 -a $RETVAL2 -eq 0 ] touch /var/lock/subsys/gateway ||\ RETVAL=1 ;; stop) # Stop daemons. echo -n Shutting down smsbox (kannel $ver): $STOP $SBOX RETVAL2=$? echo echo -n Shutting down bearerbox (kannel $ver): $STOP $BBOX RETVAL1=$? echo [ $RETVAL1 -eq 0 -a $RETVAL2 -eq 0 ] rm -f /var/lock/subsys/gateway echo ;; status) status bearerbox status smsbox exit $? ;; restart) $0 stop sleep 1 $0 start ;; *) echo Usage: named {start|stop|status|restart} exit 1 esac exit $RETVAL -Remove this line Thanks Regards Tapan Thapa On Mon, Mar 2, 2015 at 4:05 PM, Vedat Coskun vedat.cos...@lebara.com wrote: Hi Olu, Thanks for your e-mail. I tried creating the kannel folder manually and giving rw permission to kannel but that didn’t seem to do the trick.. On another note, I tried to run the service with kannel user and I got this error. sudo -u kannel service kannel start Starting kannel bearer box: /usr/sbin/start-stop-kannel: Unable to set initgroups() with gid 494 [FAILED] Googled it a bit but no luck. I realised if I removed —chuid kannel:kannel from args=--start --background --chuid kannel:kannel --exec “ it just works fine Thanks, Vedat From: Olu IT t...@chethsoft.com Date: Saturday, 28 February 2015 07:19 To: Vedat Coskun vedat.cos...@lebara.com, users@kannel.org users@kannel.org Subject: Re: Kannel doesn't start on CentOS Since you could get kannel to work by manually starting the apps from /usr/bin then kannel installed/compiled properly. And if the manual start is also using same config, then at the least, the config is fine for the functionalities you specified. The problem the seemed to point to your init script. Check your init script. Does kannel have permission to write to the PID files location? On one of my installations (if I remember well, using Ubuntu), I had to modify the init script to check if the pid folder exists, if not, create it, and set permissions for kannel to write to it by chown to kannel preferably to chmoding to 777. That solved the problem for me in that case. You might want to test that this is the case for you first by manually creating the pid folder, in my case it was /var/run/kannel. Then, chown kannel /var/run/kannel. Then, service kannel start. If this doesn't work, you may want to share your /var/log/kannel/bearerbox.log smsbox.log content. It will reveal more, provided your init is starting the services with enough verbosity to reveal more info. Hope this helps? BR, Olu Vedat Coskun vedat.cos...@lebara.com wrote: Hi All, I think I’m having a bit of a problem with the Kannel start-up script. When I manually start the bearerbox and smsbox from /usr/sbin, both seem to
Re: Quesion about Connet External Dabases of Kannel
Hi, Kannel does not support this feature. You have two options: 1. Modify playsms to select appropriate SMSC before submitting sms to kannel via SMSBOX. 2. You can make different users at kannel (SMSBOX) and use those users while submitting sms to kannel. Users will have their predefined SMSC fixed at SMSBOX level. Thanks Regards Tapan Thapa On Mon, Mar 2, 2015 at 10:00 AM, Nilubon Soonthon nilubo...@jasmine.com wrote: I would like to know how to connect to external Databases (redirect servers that provide number and operators that numbers are register) of Kannel to query data sush as number,operators and use that data to select SMSCs to transfer messages (I get messages from Web sevice Api using PlaySMS). Can Kannel do this and how I config it ? Best Regards, [image: Description: Description: Description: Description: 5090742_250] Nilubon Soonthon VoIP DIV. Triple T Broadband PCL; Office :02-100-7470
Re: Round Robin Algorithm For Message Submission to SqlBox to Bearerbox for Priority
Hello Ammar, To achieve 1000+ TPS, many configuration tweaks are required. Like Many SQLBOX Like Many Bearerbox (With multiple ESME Connections) MySQL Query optimization.. DLR MySQL optimization... On Mon, Feb 9, 2015 at 4:08 PM, Ammar Ali ammarali3...@gmail.com wrote: Hello Tapan, Currently, I'm using multiple sqlboxes with bearerbox and insert sms into each sqlbox insert table through application. But I'm not achieve my required tps (1000+). Can you describe your above solution? *ThanksAmmar Ali* On Sat, Feb 7, 2015 at 9:16 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: This is not possible with single sqlbox. What you can do is, attach multiple sqlbox with bearerbox and second sql box will do what u want to achieve. Sent from my Windows Phone -- From: Ammar Ali ammarali3...@gmail.com Sent: 2/7/2015 6:23 AM To: users@kannel.org Subject: Re: Round Robin Algorithm For Message Submission to SqlBox to Bearerbox for Priority Hello All, Please do the needful. I'm waiting for your reply. *ThanksAmmar Ali* On Wed, Feb 4, 2015 at 10:47 AM, Ammar Ali ammarali3...@gmail.com wrote: Hello All, I'm working on Bulk SMS Application. And I'm facing a problem regarding message submission from sqlbox to bearerbox. For example, I'm sending 50K message from application and I'm sending one more 50K message request. Then next request is on hold until first request has not been processed completely. So, Can I implement round robin algorithm for message submission? Please provide your valuable suggestions. *ThanksAmmar Ali*
VCard Help
Hello Friends, Has anyone having any experience sending VCard V2.1/3.0/4.0 via SMS to Android and IPhone Devices. It works on Nokia but not on Android and IPhone. Message is getting delivered but not getting shown by handset anywhere. VCard which i have tried so far. $text = BEGIN:VCARD\r\n; $text .= VERSION:2.1\r\n; $text .= N: . $lastname . ; . $firstname . \r\n; $text .= TEL;PREF:+ . $contactphone . \r\n; if ($contactemail != NULL $contactemail != FALSE) { $text .= EMAIL: $contactemail \r\n; } $text .= END:VCARD\r\n; $text = BEGIN:VCARD\r\n; $text .= VERSION:3.0\r\n; $text .= N: . $lastname . ; . $firstname . \r\n; $text .= TEL;PREF:+ . $contactphone . \r\n; if ($contactemail != NULL $contactemail != FALSE) { $text .= EMAIL: $contactemail \r\n; } $text .= END:VCARD\r\n; $text = BEGIN:VCARD\r\n; $text .= VERSION:4.0\r\n; $text .= N: . $lastname . ; . $firstname . \r\n; $text .= TEL;PREF:+ . $contactphone . \r\n; if ($contactemail != NULL $contactemail != FALSE) { $text .= EMAIL: $contactemail \r\n; } $text .= END:VCARD\r\n; Thanks Regards Tapan Thapa
Re: Receiving multi-part messages over two binds...
I am not an kannel expert but have you tried below. 1. Add both connectivity under single kannel instance. 2. Give same smsc-id to both connectivity under kannel (smsc-id = ) Check if this resolves your issue. On Wed, Jan 14, 2015 at 6:10 PM, Joe Power joe.po...@puca.com wrote: Hi folks, I have inherited a working Kannel platform with binds into multiple operators. I don't have much experience in configuring Kannel, but have seen what works on the existing platform. I have discovered an issue we have with multi-part messages from one of the operators we are connected to. The operator has 2 SMSCs with a shared SS7 stack (so they are effectively clustered as I understand it). As MO messages can come into either SMSC we have a separate bind into each one. However, when a multi-part MO message comes in, the individual parts can be handled by either SMSC. If a one part comes into one SMSC and is sent over its bind and the other part comes into the other SMSC and is sent over its bind then Kannel, as it is currently configured, won't match the two parts and concatenate them. What is currently happening is that Kannel is waiting for the other part(s) sent over the other bind and eventually times out and sends what it has. My questions are as follows: - 1 Is it possible to configure Kannel to treat both binds as connected to the one organisation and concatenate multi-part messages regardless of which of the two binds the parts come in on ? 2 If the above isn't possible, are there any other options to resolve the issue ? 3 What would the config file for such a configuration look like ? Any help appreciated. Regards, Joe.
Re: Authenticate incoming SMS
What i am suggesting here, First receive incoming sms at opensmppbox than forward the same to bearerbox. Than smsbox will invoke third party custom url with get-url parameter. In custom url we can make logic to insert in db or do what ever we want to do. On Tue, Jan 13, 2015 at 12:00 PM, RK Krishnas r...@krishnasoft.in wrote: Hi Tapan, Please let me know how can we make Opensmppbox drop in comming sms to a Particular Data Base Table. *Rajeev Krishna* Operations Manager Krishnas Software Technologies www.krishnasoft.in mobile :+91 888 5815 888 Sales :+91 888 5813 888 Support :+91 888 5817 888 On Tue, Jan 13, 2015 at 11:31 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: You can try this.. OPENSMPPBOX-BEARERBOX-SMSBOX-INVOKECUSTOMHTTPURL(In your custom HTTP code, make some logic for charging etc). On Tue, Jan 13, 2015 at 11:27 AM, Juned Khan jkhan6...@gmail.com wrote: Alvaro, thank you so much for response. How do I move incoming SMS to any file or db temporarily ? I mean in opensmppbox what parameter I have to set to do this, at what point I can get this incoming SMSs ? Regards Juned Khan / Network Engineer +91 9974740823/ juned.k...@inextrix.com iNextrix Technologies Pvt Ltd. www.inextrix.com http://htmlsig.com/www.inextrix.com [image: Facebook] https://www.facebook.com/junedkhan23 [image: Twitter] https://twitter.com/juned23 [image: Google Plus] https://plus.google.com/+JunedKhan [image: Linkedin] http://htmlsig.com/in.linkedin.com/in/junedk This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company. On Tue, Jan 13, 2015 at 2:00 AM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi You have to doit at your app level. Kannel nor opensmpp are able to do that. As a hint, move all incomming sms to a temp file/table/db and have a script that do the validations you need and then fw the sms to the corresponding user. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Mon, Jan 12, 2015 at 8:05 AM, Juned Khan jkhan6...@gmail.com wrote: Hi All, I have setup kannel along with opensmppbox, I want to authenticate incoming SMS for billing purpose i.e if that user has allowed to receive SMS from particular prefixes then SMS should be routed else not. How do I achieve this? is there any way to run any script(any language) before routing SMS to recipient in opensmppbox? Any hint or advice will be appreciated :) Regards Juned Khan / Network Engineer
Re: Authenticate incoming SMS
Here custom URL means by setting SMSBOX- sms-service - get_url parameter and invoke any script right ? Tapan: Yes If here I found that user is not allowed to receive SMS from such prefixes then how do I stop the process so he don’t receive such SMSs ? Tapan: You can't stop user to send sms but you can reject the same at custom url and no further action. If user is allowed than you can implement rest logic at custom application. On Tue, Jan 13, 2015 at 11:52 AM, Juned Khan jkhan6...@gmail.com wrote: Thanks Tapan, I will try to implement like this ;) Here custom URL means by setting SMSBOX- sms-service - get_url parameter and invoke any script right ? If here I found that user is not allowed to receive SMS from such prefixes then how do I stop the process so he don’t receive such SMSs ? Regards Juned Khan / Network Engineer On Tue, Jan 13, 2015 at 11:31 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: You can try this.. OPENSMPPBOX-BEARERBOX-SMSBOX-INVOKECUSTOMHTTPURL(In your custom HTTP code, make some logic for charging etc). On Tue, Jan 13, 2015 at 11:27 AM, Juned Khan jkhan6...@gmail.com wrote: Alvaro, thank you so much for response. How do I move incoming SMS to any file or db temporarily ? I mean in opensmppbox what parameter I have to set to do this, at what point I can get this incoming SMSs ? Regards Juned Khan / Network Engineer +91 9974740823/ juned.k...@inextrix.com This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company. On Tue, Jan 13, 2015 at 2:00 AM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi You have to doit at your app level. Kannel nor opensmpp are able to do that. As a hint, move all incomming sms to a temp file/table/db and have a script that do the validations you need and then fw the sms to the corresponding user. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Mon, Jan 12, 2015 at 8:05 AM, Juned Khan jkhan6...@gmail.com wrote: Hi All, I have setup kannel along with opensmppbox, I want to authenticate incoming SMS for billing purpose i.e if that user has allowed to receive SMS from particular prefixes then SMS should be routed else not. How do I achieve this? is there any way to run any script(any language) before routing SMS to recipient in opensmppbox? Any hint or advice will be appreciated :) Regards Juned Khan / Network Engineer
Re: Authenticate incoming SMS
You can try this.. OPENSMPPBOX-BEARERBOX-SMSBOX-INVOKECUSTOMHTTPURL(In your custom HTTP code, make some logic for charging etc). On Tue, Jan 13, 2015 at 11:27 AM, Juned Khan jkhan6...@gmail.com wrote: Alvaro, thank you so much for response. How do I move incoming SMS to any file or db temporarily ? I mean in opensmppbox what parameter I have to set to do this, at what point I can get this incoming SMSs ? Regards Juned Khan / Network Engineer +91 9974740823/ juned.k...@inextrix.com iNextrix Technologies Pvt Ltd. www.inextrix.com http://htmlsig.com/www.inextrix.com [image: Facebook] https://www.facebook.com/junedkhan23 [image: Twitter] https://twitter.com/juned23 [image: Google Plus] https://plus.google.com/+JunedKhan [image: Linkedin] http://htmlsig.com/in.linkedin.com/in/junedk This e-mail message may contain confidential or legally privileged information and is intended only for the use of the intended recipient(s). Any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is prohibited. E-mails are not secure and cannot be guaranteed to be error free as they can be intercepted, amended, or contain viruses. Anyone who communicates with us by e-mail is deemed to have accepted these risks. Company Name is not responsible for errors or omissions in this message and denies any responsibility for any damage arising from the use of e-mail. Any opinion and other statement contained in this message and any attachment are solely those of the author and do not necessarily represent those of the company. On Tue, Jan 13, 2015 at 2:00 AM, Alvaro Cornejo cornejo.alv...@gmail.com wrote: Hi You have to doit at your app level. Kannel nor opensmpp are able to do that. As a hint, move all incomming sms to a temp file/table/db and have a script that do the validations you need and then fw the sms to the corresponding user. Regards Alvaro |-| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.com On Mon, Jan 12, 2015 at 8:05 AM, Juned Khan jkhan6...@gmail.com wrote: Hi All, I have setup kannel along with opensmppbox, I want to authenticate incoming SMS for billing purpose i.e if that user has allowed to receive SMS from particular prefixes then SMS should be routed else not. How do I achieve this? is there any way to run any script(any language) before routing SMS to recipient in opensmppbox? Any hint or advice will be appreciated :) Regards Juned Khan / Network Engineer
Re: How to Increase Performance of Outbound Messages
Also make sure that you have many connections as TX and minimum connection as RX for getting higher throughput from SMSC.
Re: KANNEL XML POST MESAGE
Here is the one to many working example. ?php $url = http://:13013/cgi-bin/sendsms'; $xml = '?xml version=1.0? message submit danumber919871701375/number/da danumber919871701375/number/da danumber919871701375/number/da danumber919871701375/number/da from usernamexxx/username passwordxxx/password /from /submit /message'; $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($curl, CURLOPT_POSTFIELDS, $xml); $result = curl_exec($curl); //$info = curl_getinfo($curl); curl_close($curl); echo $result; On Mon, Dec 1, 2014 at 8:44 PM, michael osakede ire...@yahoo.com wrote: Hello All, I keep getting Authorization failed for sendsms. My Send SMS config #- # 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. .. group = sendsms-user username = tester password = foobar dlr-url = http://localhost/dlr.php?action=recvdlroriginator=%pdestination=%Pmessage=%adlrvalue=%dtimestamp=%tsmscid=%ioperator=%obilling=%O omit-empty = true max-messages = 1000 My PHP Code: ?php $xml = '?xml version=1.0 encoding=UTF-8? message submit danumber2348098009386/number/da oanumber747/number/oa udTest Message/ud statusrequest dlr-mask31/dlr-mask dlr-url http://127.0.0.1/delivery-report.php?send_history_id=13853217to_number=91XXtype=%d /dlr-url /statusrequest from usernametester/user passwordfoobar/password accountprecin/account smsc-idprecin/smsc-id binfoMO/binfo /form toprecin/to /submit /message'; //echo $xml; $xml=urlencode($xml); $url = http://localhost:13013/cgi-bin/sendsms;; $username=tester; $password=foobar; $ch = curl_init($url); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml')); curl_setopt($ch, CURLOPT_USERPWD, $username:$password); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); curl_close($ch); echo $output.RES; ? Any idea what could be wrong?
RE: Same Sequence Number for many PDUs
Have you tried latest kannel from svn? Sent from my Windows Phone -- From: Amir Mahmoud amir.mahm...@egyptlinx.com Sent: 27-11-2014 01:21 To: users users@kannel.org Subject: Same Sequence Number for many PDUs Hello Guys, I'm facing abnormal behavior with my kannel (1.4.4) installed on CentOS 7, I have found that when i submit SMS to my number and after receiving it on my handset that kannel still keeps the sms on the store trying to re-submit it again and again to the SMSC and with each attempt i receive it again on my handset and finally after finishing the retrials kannel log it with status DISCARD I have set the bearerbox in debug mode and found that kannel already sent submit_sm successfully PDU but it didn't receive submit_sm_resp and i think this is the reason behind keeping it in the store and discard it. So, i have taken tcp dump and found that both submit_sm PDU and submit_sm_resp already sent but i can't understand why kannel didn't handle it Also i have found unusual thing while checking the dump, i found that many PDUs are having the sequence number (Enquire_Link Submit_SM) Is that normal and why kannel is doing so ? Regards, Amir
RE: short message being truncated
I hope you are not sending Unicode messages. If yes check while playsms invoked smabox api, it is not setting dcs=2. It seems while playsms invoking kannel smsbox api, it is using Unicode feature of smsbox. Sent from my Windows PhoneFrom: Gabri Shally Sent: 21-11-2014 21:27 To: users@kannel.org Subject: short message being truncated dear all, i've got trouble with kannel truncating message down to only 70 char. ### log from smsc ### 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: TP-Validity-Period: 24.0 hours 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: -- AT+CMGS=154^M 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: -- 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: -- 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: send command status: 1 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: -- 0031000B818011525137F10008A78C0030003000300030003000300030003000300030003100300030003000300030003000300030003000320030003000300030003000300030003000300033003000300030003000300030003000300030003400300030003000300030003000300030003000350030003000300030003000300030003000300036003000300030003000300030003000300030 2014-11-21 19:22:33 [31584] [6] DEBUG: AT2[wavecom]: -- ^Z 2014-11-21 19:22:36 [31584] [6] DEBUG: AT2[wavecom]: -- +CMGS: 126 2014-11-21 19:22:36 [31584] [6] DEBUG: AT2[wavecom]: -- OK 2014-11-21 19:22:36 [31584] [6] DEBUG: AT2[wavecom]: send command status: 0 2014-11-21 19:22:36 [31584] [6] DEBUG: DLR[internal]: Adding DLR smsc=wavecom, ts=126, src=000, dst=08112515731, mask=31, boxc= 2014-11-21 19:22:36 [31584] [6] DEBUG: SMSC[wavecom]: creating DLR message 2014-11-21 19:22:36 [31584] [6] DEBUG: SMSC[wavecom]: DLR = http://localhost/PlaySMS/index.php?app=callcat=gatewayplugin=kannelaccess=dlrtype=%dsmslog_id=129uid=1 ### end ### from this log we know that kannel trying to send 154 byte of data, but only 126 byte that recognized by modem, which is wavecom by the way. i tough it was wavecom fault. but when i try to decode the PDU data using this online tool http://smspdu.benjaminerhart.com/ it indeed only recognized 70 char too. so, whats wrong? this is the message i try to send: ### log from smsbox ### 2014-11-21 19:22:31 [31633] [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2014-11-21 19:22:31 [31633] [2] DEBUG: HTTP: Created HTTPClient area 0x7f8c94000a90. 2014-11-21 19:22:31 [31633] [3] INFO: smsbox: Got HTTP request /cgi-bin/sendsms from 127.0.0.1 2014-11-21 19:22:31 [31633] [3] INFO: sendsms used by playsms 2014-11-21 19:22:31 [31633] [3] INFO: sendsms sender:playsms:000 (127.0.0.1) to:08112515731 msg:0010203040506070809010111213 2014-11-21 19:22:31 [31633] [3] DEBUG: Stored UUID edce1d84-7604-4558-a3f6-d8ff9c38c736 2014-11-21 19:22:31 [31633] [3] DEBUG: message length 280, sending 1 messages 2014-11-21 19:22:31 [31633] [3] DEBUG: Status: 202 Answer: Sent. 2014-11-21 19:22:31 [31633] [3] DEBUG: Delayed reply - wait for bearerbox 2014-11-21 19:22:31 [31633] [0] DEBUG: Got ACK (0) of edce1d84-7604-4558-a3f6-d8ff9c38c736 2014-11-21 19:22:31 [31633] [0] DEBUG: HTTP: Destroying HTTPClient area 0x7f8c94000a90. 2014-11-21 19:22:31 [31633] [0] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'. ### end ### yes, it just a number. i just trying to count out how much char that actually arrived to my cellphone. this is my kannel.conf # Default kannel configuration file group = core admin-port = 13000 admin-password = playsms status-password = playsms admin-deny-ip = *.*.*.* admin-allow-ip = 127.0.0.1;192.168.*.* #smsbox-port = 13001 #wapbox-port = 13002 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;192.168.*.* wdp-interface-name = * log-file = /var/log/kannel/bearerbox.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 store-type = file store-location = /var/log/kannel/kannel.store sms-resend-retry = 4 #SMSC MODEM GSM group = smsc smsc = at connect-allow-ip = 127.0.0.1;192.168.*.* port = 13013 host = localhost smsc-id = wavecom modemtype = wavecom device = /dev/ttyUSB7 speed = 115200 alt-dcs = 1 log-file = /var/log/kannel/smsc.log log-level = 0 #sms-center = +3248605 #my-number = +324 group = modems id = wavecom name = wavecom detect-string = wavecom init-string = AT+CNMI=2,1,0,1,1;+CMEE=1 keepalive-cmd = AT+CBC;+CSQ #SMSBOX SETUP group = smsbox bearerbox-host = 127.0.0.1 bearerbox-port = 13001 sendsms-port = 13131 sendsms-chars = 0123456789+ global-sender = 0811 log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log #SEND-SMS USERS group = sendsms-user username = playsms password = playsms user-allow-ip = *.*.*.* split-chars = # #SMS SERVICE group = sms-service keyword = default accept-x-kannel-headers = true #accepted-smsc = Huawei #accepted-smsc = at2 max-messages = 0 assume-plain-text = true catch-all = true get-url =
Re: Add SMSC without Restarting Kannel
It has been answered many times... Try this... http://x.x.x.x:13008/add-smsc?password=smsc=ABCD http://x.x.x.x:13008/stop-smsc?password=smsc=ABCD http://x.x.x.x:13008/remove-smsc?password=smsc=ABCD On Thu, Nov 20, 2014 at 6:05 PM, Saurabh Pandey sam.it.develo...@gmail.com wrote: Hey guys, I am stuck in a scenario where I need to add SMSC in kannel without restarting it. Normally Kannel has to be restarted so it can load the new CONF file, which contains newly added SMSC. But is there a way I can do this without restarting kannel and disturbing existing online SMPP connections? I read something called add-smsc in Kannel doc. Is this relevant? But this accepts only single parameter. If anybody knows anything related to this, please help. Any guidance would be highly appreciated -Thanks Sam
RE: Kannel bearerbox and smsbox startup issue
Start bearerbox and smsbox with sign and than test. Sent from my Windows Phone -- From: JAHANZAIB SYED aaca...@hotmail.com Sent: 20-11-2014 19:33 To: users@kannel.org Subject: Kannel bearerbox and smsbox startup issue I have configured *Kannel *(bearerbox+smsbox) in Ubuntu 12.04. If i start kannel via following commands (in separate terminals) *bearerbox -v 0 /etc/kannel/kannel.conf* *smsbox -v 0 /etc/kannel/kannel.conf* Then the SMS delivery via webhttp works fine. Example: http://10.0.0.1:13013/cgi-bin/sendsms?username=kannelpassword=kannelto=0021909am... http://10.0.0.1:13013/cgi-bin/sendsms?username=kannelpassword=kannelto=002am... but I want to make it auto start on system reboot, but messages go in queue like Queued for later delivery I can see the processes here BASH ps aux |grep kannel kannel1246 0.0 0.0 7424 720 ?Ss 16:01 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel1248 0.0 0.2 101084 2832 ?Sl 16:01 0:00 /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel1268 0.0 0.0 7424 720 ?Ss 16:01 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf kannel1270 0.0 0.0 7424 720 ?Ss 16:01 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf kannel1273 0.0 0.2 80284 2680 ?Sl 16:01 0:00 /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf root 1813 0.0 0.0 3328 880 pts/0S+ 16:07 0:00 grep --color=auto kannel . What could be wrong? *Regards, * *SYED JAHANZAIB*
Re: Kannel bearerbox and smsbox startup issue
Once system is restarted, have you checked that kannel is working? Have you checked if bearerbox and smsbox were working? On Fri, Nov 21, 2014 at 10:19 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: Not working, when I do system reboot, and try to send messages, they goes to queue, and when i kill the kannel processes and start bearerbox and smsbox in separate panel, sms starts to work. This is my */etc/default/kannel* file. root@testbox:~# cat /etc/default/kannel START_WAPBOX=1 START_SMSBOX=1 This is my */etc/init.d/kannel* root@rm:~# cat /etc/init.d/kannel #!/bin/sh . /lib/lsb/init-functions BOXPATH=/usr/sbin PIDFILES=/var/run/kannel CONF=/etc/kannel/kannel.conf PATH=$BOXPATH:$PATH test -x $BOXPATH/bearerbox || exit 0 test -r /etc/default/kannel . /etc/default/kannel if [ ! -d $PIDFILES ] then mkdir $PIDFILES chown kannel:root $PIDFILES fi case $1 in start) log_daemon_msg Starting WAP gateway by zaib log_progress_msg bearerbox start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --no-extra-args \ $BOXPATH/bearerbox -v 4 -- $CONF sleep 1 # Wait for bearerbox test ! -z $START_WAPBOX ( log_progress_msg wapbox start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_wapbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_wapbox.pid \ --no-extra-args \ $BOXPATH/wapbox -v 4 -- $CONF ) test ! -z $START_SMSBOX ( log_progress_msg smsbox start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_smsbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_smsbox.pid \ --no-extra-args \ $BOXPATH/smsbox -v 4 -- $CONF ) log_end_msg 0 ;; stop) log_daemon_msg Stopping WAP gateway by zaib test ! -z $START_SMSBOX ( log_progress_msg smsbox start-stop-daemon --stop --retry 5 --quiet \ --pidfile $PIDFILES/kannel_smsbox.pid \ --exec $BOXPATH/run_kannel_box ) test ! -z $START_WAPBOX ( log_progress_msg wapbox start-stop-daemon --stop --retry 5 --quiet \ --pidfile $PIDFILES/kannel_wapbox.pid \ --exec $BOXPATH/run_kannel_box ) log_progress_msg bearerbox start-stop-daemon --stop --retry 5 --quiet \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --exec $BOXPATH/run_kannel_box log_end_msg 0 ;; reload) # We don't have support for this yet. exit 1 ;; restart|force-reload) $0 stop sleep 1 $0 start ;; *) echo Usage: $0 {start|stop|restart|force-reload} exit 1 esac exit 0 This are processes when sms goes in queue root@rm:~# ps aux |grep kannel kannel2964 0.0 0.0 7424 720 ?Ss 09:47 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel2966 0.0 0.2 82652 2784 ?Sl 09:47 0:00 /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel2975 0.0 0.0 7424 720 ?Ss 09:47 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf kannel2978 0.0 0.0 7424 724 ?Ss 09:47 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf kannel2980 0.0 0.2 65948 2644 ?Sl 09:47 0:00 /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf root 2993 0.0 0.0 3328 876 pts/2S+ 09:47 0:00 grep --color=auto kannel Sorry for long messages, but i wanted to provide more info to troubleshoot easily *Regards, * *SYED JAHANZAIB* -- Date: Thu, 20 Nov 2014 09:49:14 -0500 Subject: Re: Kannel bearerbox and smsbox startup issue From: cornejo.alv...@gmail.com To: aaca...@hotmail.com CC: tapan.thapa2...@gmail.com; users@kannel.org check contrib folder for init files. Adjust as necessary and place them in \etc\init.d or as needed by your OS
Re: Kannel bearerbox and smsbox startup issue
admin interface output means that bearerbox and smsbox were started perfectly fine however bearerbox was unable to connect with your modem smsc. Now you need to check as to why modem smsc was not on. Enable debug logs after system restart while all boxes are on and see what was causing issue. On Fri, Nov 21, 2014 at 10:38 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: yes when box restarts, i check the processes as follows *root@rm:~# ps aux |grep kannel* kannel 989 0.0 0.0 7424 724 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel 991 0.0 0.2 101084 2828 ?Sl 10:04 0:00 /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel1176 0.0 0.0 7424 724 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf kannel1180 0.0 0.0 7424 720 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf kannel1183 0.0 0.2 80284 2680 ?Sl 10:04 0:00 /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf *and when i see the status via web i can see the following* Kannel bearerbox version `1.4.3'. Build `Apr 6 2010 13:16:08', compiler `4.4.3'. System Linux, release 2.6.32-33-generic, version #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011, machine i686. Hostname rm, IP 127.0.1.1. Libxml version 2.7.6. Using OpenSSL 0.9.8k 25 Mar 2009. Compiled with MySQL 5.1.41, using MySQL 5.1.73. Using native malloc. Status: running, uptime 0d 0h 1m 26s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 0 queued, using internal storage Box connections: smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 20s) SMSC connections: *unknown*AT2[/dev/ttyACM0] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs) And when i try to send sms i see following *3: Queued for later delivery* *Regards, * *SYED JAHANZAIB* -- Date: Fri, 21 Nov 2014 10:30:31 +0530 Subject: Re: Kannel bearerbox and smsbox startup issue From: tapan.thapa2...@gmail.com To: aaca...@hotmail.com CC: cornejo.alv...@gmail.com; users@kannel.org Once system is restarted, have you checked that kannel is working? Have you checked if bearerbox and smsbox were working? On Fri, Nov 21, 2014 at 10:19 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: Not working, when I do system reboot, and try to send messages, they goes to queue, and when i kill the kannel processes and start bearerbox and smsbox in separate panel, sms starts to work. This is my */etc/default/kannel* file. root@testbox:~# cat /etc/default/kannel START_WAPBOX=1 START_SMSBOX=1 This is my */etc/init.d/kannel* root@rm:~# cat /etc/init.d/kannel #!/bin/sh . /lib/lsb/init-functions BOXPATH=/usr/sbin PIDFILES=/var/run/kannel CONF=/etc/kannel/kannel.conf PATH=$BOXPATH:$PATH test -x $BOXPATH/bearerbox || exit 0 test -r /etc/default/kannel . /etc/default/kannel if [ ! -d $PIDFILES ] then mkdir $PIDFILES chown kannel:root $PIDFILES fi case $1 in start) log_daemon_msg Starting WAP gateway by zaib log_progress_msg bearerbox start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_bearerbox.pid \ --no-extra-args \ $BOXPATH/bearerbox -v 4 -- $CONF sleep 1 # Wait for bearerbox test ! -z $START_WAPBOX ( log_progress_msg wapbox start-stop-daemon --start --quiet \ --pidfile $PIDFILES/kannel_wapbox.pid \ --chuid kannel \ --exec $BOXPATH/run_kannel_box \ -- \ --pidfile $PIDFILES/kannel_wapbox.pid \ --no-extra-args \ $BOXPATH/wapbox -v 4 -- $CONF ) test ! -z $START_SMSBOX ( log_progress_msg smsbox start-stop-daemon --start --quiet \
Re: Kannel bearerbox and smsbox startup issue
When i google with kannel System error 13: Permission denied I got below link which has a solution to your problem. https://groups.google.com/forum/#!msg/rapidsms/XlIhghfjm0k/0fR7mKLzZ7wJ On Fri, Nov 21, 2014 at 11:13 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: Ok when I open log I can see following when trying to send sms, #*tail -f /var/log/kannel/bearerbox.log* * 2014-11-21 10:41:55 [1912] [6] INFO: AT2[/dev/ttyACM0]: opening device 2014-11-21 10:41:55 [1912] [6] ERROR: AT2[/dev/ttyACM0]: open failed! ERRNO=13 2014-11-21 10:41:55 [1912] [6] ERROR: System error 13: Permission denied 2014-11-21 10:41:55 [1912] [6] ERROR: AT2[/dev/ttyACM0]: at2_device_thread: open_at2_device failed. 2014-11-21 10:41:55 [1912] [6] ERROR: System error 13: Permission denied 2014-11-21 10:41:55 [1912] [6] ERROR: AT2[/dev/ttyACM0]: Couldn't connect (retrying in 10 seconds). * It happens only when kannel is auto start on reboot. but when i start bearerbox and smsbox manually , then it works fine. Why i am getting this error? (also I when i try to send msg from GAMMU , it also works fine, only kannel having issue) *Regards, * *SYED JAHANZAIB* -- Date: Fri, 21 Nov 2014 10:49:34 +0530 Subject: Re: Kannel bearerbox and smsbox startup issue From: tapan.thapa2...@gmail.com To: aaca...@hotmail.com CC: cornejo.alv...@gmail.com; users@kannel.org admin interface output means that bearerbox and smsbox were started perfectly fine however bearerbox was unable to connect with your modem smsc. Now you need to check as to why modem smsc was not on. Enable debug logs after system restart while all boxes are on and see what was causing issue. On Fri, Nov 21, 2014 at 10:38 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: yes when box restarts, i check the processes as follows *root@rm:~# ps aux |grep kannel* kannel 989 0.0 0.0 7424 724 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel 991 0.0 0.2 101084 2828 ?Sl 10:04 0:00 /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel1176 0.0 0.0 7424 724 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf kannel1180 0.0 0.0 7424 720 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf kannel1183 0.0 0.2 80284 2680 ?Sl 10:04 0:00 /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf *and when i see the status via web i can see the following* Kannel bearerbox version `1.4.3'. Build `Apr 6 2010 13:16:08', compiler `4.4.3'. System Linux, release 2.6.32-33-generic, version #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011, machine i686. Hostname rm, IP 127.0.1.1. Libxml version 2.7.6. Using OpenSSL 0.9.8k 25 Mar 2009. Compiled with MySQL 5.1.41, using MySQL 5.1.73. Using native malloc. Status: running, uptime 0d 0h 1m 26s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 0 queued, using internal storage Box connections: smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 20s) SMSC connections: *unknown*AT2[/dev/ttyACM0] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs) And when i try to send sms i see following *3: Queued for later delivery* *Regards, * *SYED JAHANZAIB* -- Date: Fri, 21 Nov 2014 10:30:31 +0530 Subject: Re: Kannel bearerbox and smsbox startup issue From: tapan.thapa2...@gmail.com To: aaca...@hotmail.com CC: cornejo.alv...@gmail.com; users@kannel.org Once system is restarted, have you checked that kannel is working? Have you checked if bearerbox and smsbox were working? On Fri, Nov 21, 2014 at 10:19 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: Not working, when I do system reboot, and try to send messages, they goes to queue, and when i kill the kannel processes and start bearerbox and smsbox in separate panel, sms starts to work. This is my */etc/default/kannel* file.
Re: Kannel bearerbox and smsbox startup issue [SOLVED]
I am glad that i was able to help. On Fri, Nov 21, 2014 at 12:03 PM, JAHANZAIB SYED aaca...@hotmail.com wrote: I am glad to inform that the problem is solved now. I used following commands, i dunt know which worked, but its solved now. *usermod -a -G dialout kannelchown kannel /dev/ttyACM0* and now its working fine and kannel starting automatically on system reboot with out problem :) Thanks a lot *kannel user list* and specially to *Tapan Kumar Thapa* *Regards, * *SYED JAHANZAIB* -- Date: Fri, 21 Nov 2014 11:17:11 +0530 Subject: Re: Kannel bearerbox and smsbox startup issue From: tapan.thapa2...@gmail.com To: aaca...@hotmail.com CC: cornejo.alv...@gmail.com; users@kannel.org When i google with kannel System error 13: Permission denied I got below link which has a solution to your problem. https://groups.google.com/forum/#!msg/rapidsms/XlIhghfjm0k/0fR7mKLzZ7wJ On Fri, Nov 21, 2014 at 11:13 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: Ok when I open log I can see following when trying to send sms, #*tail -f /var/log/kannel/bearerbox.log* * 2014-11-21 10:41:55 [1912] [6] INFO: AT2[/dev/ttyACM0]: opening device 2014-11-21 10:41:55 [1912] [6] ERROR: AT2[/dev/ttyACM0]: open failed! ERRNO=13 2014-11-21 10:41:55 [1912] [6] ERROR: System error 13: Permission denied 2014-11-21 10:41:55 [1912] [6] ERROR: AT2[/dev/ttyACM0]: at2_device_thread: open_at2_device failed. 2014-11-21 10:41:55 [1912] [6] ERROR: System error 13: Permission denied 2014-11-21 10:41:55 [1912] [6] ERROR: AT2[/dev/ttyACM0]: Couldn't connect (retrying in 10 seconds). * It happens only when kannel is auto start on reboot. but when i start bearerbox and smsbox manually , then it works fine. Why i am getting this error? (also I when i try to send msg from GAMMU , it also works fine, only kannel having issue) *Regards, * *SYED JAHANZAIB* -- Date: Fri, 21 Nov 2014 10:49:34 +0530 Subject: Re: Kannel bearerbox and smsbox startup issue From: tapan.thapa2...@gmail.com To: aaca...@hotmail.com CC: cornejo.alv...@gmail.com; users@kannel.org admin interface output means that bearerbox and smsbox were started perfectly fine however bearerbox was unable to connect with your modem smsc. Now you need to check as to why modem smsc was not on. Enable debug logs after system restart while all boxes are on and see what was causing issue. On Fri, Nov 21, 2014 at 10:38 AM, JAHANZAIB SYED aaca...@hotmail.com wrote: yes when box restarts, i check the processes as follows *root@rm:~# ps aux |grep kannel* kannel 989 0.0 0.0 7424 724 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_bearerbox.pid --no-extra-args /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel 991 0.0 0.2 101084 2828 ?Sl 10:04 0:00 /usr/sbin/bearerbox -v 4 -- /etc/kannel/kannel.conf kannel1176 0.0 0.0 7424 724 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_wapbox.pid --no-extra-args /usr/sbin/wapbox -v 4 -- /etc/kannel/kannel.conf kannel1180 0.0 0.0 7424 720 ?Ss 10:04 0:00 /usr/sbin/run_kannel_box --pidfile /var/run/kannel/kannel_smsbox.pid --no-extra-args /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf kannel1183 0.0 0.2 80284 2680 ?Sl 10:04 0:00 /usr/sbin/smsbox -v 4 -- /etc/kannel/kannel.conf *and when i see the status via web i can see the following* Kannel bearerbox version `1.4.3'. Build `Apr 6 2010 13:16:08', compiler `4.4.3'. System Linux, release 2.6.32-33-generic, version #70-Ubuntu SMP Thu Jul 7 21:09:46 UTC 2011, machine i686. Hostname rm, IP 127.0.1.1. Libxml version 2.7.6. Using OpenSSL 0.9.8k 25 Mar 2009. Compiled with MySQL 5.1.41, using MySQL 5.1.73. Using native malloc. Status: running, uptime 0d 0h 1m 26s WDP: received 0 (0 queued), sent 0 (0 queued) SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec DLR: 0 queued, using internal storage Box connections: smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 1m 20s) SMSC connections: *unknown*AT2[/dev/ttyACM0] (connecting, rcvd 0, sent 0, failed 0, queued 0 msgs) And when i try to send sms i see following *3
Re: Delete message from queue
You can delete the file however you also need to send a HUP signal to bearerbox. ps -wef |grep bearerbox|grep -v grep // Check its process id than kill -HUP processid On Thu, Nov 13, 2014 at 7:26 PM, ismail berrada ismaberr...@yahoo.fr wrote: Hello I have a MO that is not well formed and it is not sent to the ESME I want to delete this MO without restarting kannel (production case) The store type is spool and I found the file that contains the MO The MO is blocked on SMPP Box side Can I delete the file without any consequences and without restarting Kannel ? Best regards
RE: Delete message from queue
Have u given HUP singnal to bearerbox process Id after moving spool files? Sent from my Windows Phone -- From: Lam Nguyen Tuong lam...@outlook.com Sent: 14-11-2014 07:59 To: Tapan Kumar Thapa tapan.thapa2...@gmail.com; ismail berrada ismaberr...@yahoo.fr Cc: users@kannel.org Subject: RE: Delete message from queue Unfortunately, it is not work, Tapan. Event spool files has been deleted, bearerbox still keep the queue in mem until it be restarted. Any idea? Thanks. ::Lamnt. -- Date: Thu, 13 Nov 2014 20:07:10 +0530 Subject: Re: Delete message from queue From: tapan.thapa2...@gmail.com To: ismaberr...@yahoo.fr CC: users@kannel.org You can delete the file however you also need to send a HUP signal to bearerbox. ps -wef |grep bearerbox|grep -v grep // Check its process id than kill -HUP processid On Thu, Nov 13, 2014 at 7:26 PM, ismail berrada ismaberr...@yahoo.fr wrote: Hello I have a MO that is not well formed and it is not sent to the ESME I want to delete this MO without restarting kannel (production case) The store type is spool and I found the file that contains the MO The MO is blocked on SMPP Box side Can I delete the file without any consequences and without restarting Kannel ? Best regards
Re: Delete message from queue
You can also try restart command on kannel's admin interface. http://x.x.x.x:13008/restart?password= On Fri, Nov 14, 2014 at 10:11 AM, Lam Nguyen Tuong lam...@outlook.com wrote: Yes, after clear the spool files, i tried both: kill -HUP processid or killall -HUP bearerbox bearerbox's log shows that box already received the kill signal: *2014-11-14 09:16:01 [8086] [0] WARNING: SIGHUP received, catching and re-opening logs* But bearerbox still keep retrying to find the route for queued messages. Ah sorry that i'm talking about the MO message that bearerbox received from upstream SMSC. I've not tested for MT sent out message yet. ::Lamnt -- From: tapan.thapa2...@gmail.com Date: Thu, 13 Nov 2014 20:03:10 -0800 Subject: RE: Delete message from queue To: lam...@outlook.com; ismaberr...@yahoo.fr CC: users@kannel.org Have u given HUP singnal to bearerbox process Id after moving spool files? Sent from my Windows Phone -- From: Lam Nguyen Tuong lam...@outlook.com Sent: 14-11-2014 07:59 To: Tapan Kumar Thapa tapan.thapa2...@gmail.com; ismail berrada ismaberr...@yahoo.fr Cc: users@kannel.org Subject: RE: Delete message from queue Unfortunately, it is not work, Tapan. Event spool files has been deleted, bearerbox still keep the queue in mem until it be restarted. Any idea? Thanks. ::Lamnt. -- Date: Thu, 13 Nov 2014 20:07:10 +0530 Subject: Re: Delete message from queue From: tapan.thapa2...@gmail.com To: ismaberr...@yahoo.fr CC: users@kannel.org You can delete the file however you also need to send a HUP signal to bearerbox. ps -wef |grep bearerbox|grep -v grep // Check its process id than kill -HUP processid On Thu, Nov 13, 2014 at 7:26 PM, ismail berrada ismaberr...@yahoo.fr wrote: Hello I have a MO that is not well formed and it is not sent to the ESME I want to delete this MO without restarting kannel (production case) The store type is spool and I found the file that contains the MO The MO is blocked on SMPP Box side Can I delete the file without any consequences and without restarting Kannel ? Best regards
Re: Kannel Redis Dlr
Hi Stipe, Nice hearing form you since so long. Many thanks for explaining. On Tue, Nov 11, 2014 at 5:05 PM, Stipe Tolj st...@kannel.org wrote: Am 11.11.2014 05:19, schrieb Tapan Kumar Thapa: Hi, I have not heard anything from anyone on this (Good or Bad). Does this means that no-one is using Redis as DLR storage? I have compiled latest kannel (svn-r5110) from svn with Redis DLR support. Everything is working fine as i have tested 5-10 messages and DLRs are getting stored under Redis and getting removed too in case we received dlr. Just wondering if i can put the same under production? Is anyone using the same combination under production with 1-2 million messages per day. Is anyone facing any issues with kannel DLR with Redis? we have been regression testing the DLR redis support quite a bit before committing the code to the mainline Kannel. And it IS included in the Kannel 1.4.4 stable release, so you SHOULD consider it stable for production. 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 ---
Re: Configure --with-ssl
Have you also installed openssl-devel package? On Mon, Nov 10, 2014 at 1:27 PM, Willy Mularto sangpr...@gmail.com wrote: Hi, Just tried to install Kannel with SSL enabled on Ubuntu, already installed openssl and libssl-dev, the configure returns error “Unable to find OpenSSL libs and/or directories at yes” Is there any dependency I forget to install? Thanks
Re: Kannel Redis Dlr
Hi, I have not heard anything from anyone on this (Good or Bad). Does this means that no-one is using Redis as DLR storage? I have compiled latest kannel (svn-r5110) from svn with Redis DLR support. Everything is working fine as i have tested 5-10 messages and DLRs are getting stored under Redis and getting removed too in case we received dlr. Just wondering if i can put the same under production? Is anyone using the same combination under production with 1-2 million messages per day. Is anyone facing any issues with kannel DLR with Redis? Thanks Regards On Tue, Oct 21, 2014 at 11:45 AM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hi, I have compiled latest kannel (svn-r5110) from svn with Redis DLR support. Everything is working fine as i have tested 5-10 messages and DLRs are getting stored under Redis and getting removed too in case we received dlr. Just wondering if i can put the same under production? Is anyone using the same combination under production with 1-2 million messages per day. Is anyone facing any issues with kannel DLR with Redis? Thanks Regards Tapan Thapa
Re: Messages not being delivered - Not ACKED message found, will retransmit.
No sure..But Is your SMPP connection working fine? Please also post your kannel config. On Thu, Nov 6, 2014 at 7:00 PM, Eric Magutu emag...@gmail.com wrote: Hi, I am running Kannel bearerbox version `1.4.4'. Build `Oct 12 2014 04:19:47', compiler `4.6.3'. System Linux, release 3.2.0-70-virtual, version #105-Ubuntu My messages are not being delivered and I am getting the following error Not ACKED message found, will retransmit. When I do a tcpdump (attached) I can see the a lot of TCP Retransmission messages from my service provider followed by SMPP Enquire_link, Unbind Can someone assist me to figure out what is going on? Does my Enquire_link interval have to match the service provider? https://www.dropbox.com/s/z1royw0rwyjfsdh/jm.pcap -- Regards, Eric Magutu
Re: Messages not being delivered - Not ACKED message found, will retransmit.
In the admin interface of kannel, is smpp connection up? On Thu, Nov 6, 2014 at 7:26 PM, Eric Magutu emag...@gmail.com wrote: Hi, Here is my config # # dd-JM TEST SMSC # group = smsc smsc = smpp smsc-id = dd-jm-test allowed-smsc-id = dd-jm-test host = 172.16.2.7 #host = 172.16.2.59 port = 4000 transceiver-mode = 1 source-addr-ton = 3 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 smsc-username = smsc-password = system-type = SMPP alt-charset = UTF-8 enquire-link-interval = 60 throughput = 10 # # dd JM smsbox DIY # group = smsbox smsbox-id = dd-jm-diy #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-jm-smsbox-diy.log sendsms-port = 6089 sendsms-chars = 0123456789 +- # # dd JM smsbox staging # group = smsbox smsbox-id = dd-jm-staging #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-jm-smsbox-staging.log sendsms-port = 6090 sendsms-chars = 0123456789 +- # # dd JM smsbox staging # group = smsbox smsbox-id = dd-jm-staging2 #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-jm-smsbox-staging2.log sendsms-port = 6091 sendsms-chars = 0123456789 +- # # dd JM smsbox-route staging 2 # group = smsbox-route smsbox-id = dd-jm-staging2 smsc-id = dd-jm-test shortcode = 164;+164 # # dd smsbox staging # group = smsbox smsbox-id = dd-staging #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-smsbox-staging.log sendsms-port = 6092 sendsms-chars = 0123456789 +- On Thu, Nov 6, 2014 at 4:39 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: No sure..But Is your SMPP connection working fine? Please also post your kannel config. On Thu, Nov 6, 2014 at 7:00 PM, Eric Magutu emag...@gmail.com wrote: Hi, I am running Kannel bearerbox version `1.4.4'. Build `Oct 12 2014 04:19:47', compiler `4.6.3'. System Linux, release 3.2.0-70-virtual, version #105-Ubuntu My messages are not being delivered and I am getting the following error Not ACKED message found, will retransmit. When I do a tcpdump (attached) I can see the a lot of TCP Retransmission messages from my service provider followed by SMPP Enquire_link, Unbind Can someone assist me to figure out what is going on? Does my Enquire_link interval have to match the service provider? https://www.dropbox.com/s/z1royw0rwyjfsdh/jm.pcap -- Regards, Eric Magutu -- Regards, Eric Magutu
Re: Messages not being delivered - Not ACKED message found, will retransmit.
As suggested by other user as well, try enabling debug logs and see what is the issue. if unable to understand debug output than paste here. On Thu, Nov 6, 2014 at 7:47 PM, Eric Magutu emag...@gmail.com wrote: Yes On Nov 6, 2014 5:16 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: In the admin interface of kannel, is smpp connection up? On Thu, Nov 6, 2014 at 7:26 PM, Eric Magutu emag...@gmail.com wrote: Hi, Here is my config # # dd-JM TEST SMSC # group = smsc smsc = smpp smsc-id = dd-jm-test allowed-smsc-id = dd-jm-test host = 172.16.2.7 #host = 172.16.2.59 port = 4000 transceiver-mode = 1 source-addr-ton = 3 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 smsc-username = smsc-password = system-type = SMPP alt-charset = UTF-8 enquire-link-interval = 60 throughput = 10 # # dd JM smsbox DIY # group = smsbox smsbox-id = dd-jm-diy #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-jm-smsbox-diy.log sendsms-port = 6089 sendsms-chars = 0123456789 +- # # dd JM smsbox staging # group = smsbox smsbox-id = dd-jm-staging #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-jm-smsbox-staging.log sendsms-port = 6090 sendsms-chars = 0123456789 +- # # dd JM smsbox staging # group = smsbox smsbox-id = dd-jm-staging2 #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-jm-smsbox-staging2.log sendsms-port = 6091 sendsms-chars = 0123456789 +- # # dd JM smsbox-route staging 2 # group = smsbox-route smsbox-id = dd-jm-staging2 smsc-id = dd-jm-test shortcode = 164;+164 # # dd smsbox staging # group = smsbox smsbox-id = dd-staging #bearerbox-host = 127.0.0.1 bearerbox-host = localhost log-file = /var/log/kannel/dd-smsbox-staging.log sendsms-port = 6092 sendsms-chars = 0123456789 +- On Thu, Nov 6, 2014 at 4:39 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: No sure..But Is your SMPP connection working fine? Please also post your kannel config. On Thu, Nov 6, 2014 at 7:00 PM, Eric Magutu emag...@gmail.com wrote: Hi, I am running Kannel bearerbox version `1.4.4'. Build `Oct 12 2014 04:19:47', compiler `4.6.3'. System Linux, release 3.2.0-70-virtual, version #105-Ubuntu My messages are not being delivered and I am getting the following error Not ACKED message found, will retransmit. When I do a tcpdump (attached) I can see the a lot of TCP Retransmission messages from my service provider followed by SMPP Enquire_link, Unbind Can someone assist me to figure out what is going on? Does my Enquire_link interval have to match the service provider? https://www.dropbox.com/s/z1royw0rwyjfsdh/jm.pcap -- Regards, Eric Magutu -- Regards, Eric Magutu
Re: Please Check My Kannel Configurations
Also make sure that your dlr table storage is MyISAM. On Mon, Nov 3, 2014 at 7:53 PM, MOSES KARIUKI kariuk...@gmail.com wrote: What issue are you facing? MT On Mon, Nov 3, 2014 at 5:09 PM, Aditya Khanna aditya.khanna111...@gmail.com wrote: *Hello Everyone,* I'm new with Kannel SMS Gateway. I have configured my application with Kannel SMS Gateway. I'm facing some serious problems regarding speed of sending bulk sms. This is my configuration Files. Please check and suggest me that where is the problem in configuration. *gateway.conf* #- # Single Group CORE #- group = core admin-port = 15000 admin-password = bulksms status-password = bulksms smsbox-port = 15001 log-file = mykannel.log log-level = 0 access-log = myaccess.log dlr-storage = mysql sms-incoming-queue-limit = -1 sms-outgoing-queue-limit = 100 sms-resend-freq = 60 sms-resend-retry = -1 #smsbox-max-pending = 100 #admin-deny-ip=127.0.0.1 #box-deny-ip = 127.0.0.1 http-proxy-host=127.0.0.1 http-proxy-port=80 #store-type=file #store-location=store #wapbox-port = 15002 #wdp-interface-name = * #maximum-queue-length = 100 #sms-combine-concatenated-mo = #sms-combine-concatenated-mo-timeout = 600 #- # Single Group smsbox #- group = smsbox smsbox-id = mysmsbox bearerbox-host = 127.0.0.1 bearerbox-port = 15001 sendsms-port = 15010 log-file = mysmsbox.log log-level = 0 access-log=sms_access.log sendsms-chars = 0123456789+ max-pending-requests = 512 #sendsms-url=/cgi-bin/sendsms #global-sender = 123456 #ms-length = 140 http-request-retry=5 #- # Multi Group SMSC #- group = smsc smsc = smpp smsc-id = mysmsc1 log-file = mysmsc1.log log-level = 0 host = 127.0.0.1 port = smsc-username = test1 smsc-password = test1 #denied-smsc-id = allowed-smsc-id = mysmsc1 preferred-smsc-id = mysmsc1 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 service-type = CMT validityperiod = 600 system-type = VMA address-range = ^$ bind-addr-ton = 0 bind-addr-npi = 0 enquire-link-interval = 40 reconnect-delay = 60 transceiver-mode = true interface-version = 34 connection-timeout = 40 throughput = 1000.00 max-pending-submits=10 #reroute=true #reroute-smsc-id=mysmsc1 reroute-dlr=true #- # Multi Group smsbox-route #- group = smsbox-route smsbox-id = mysmsbox smsc-id = mysmsc1 #- # Multi Group sms-service #- group = sms-service keyword = default text = No service specified #- # Multi Group sendsms-user #- group = sendsms-user name = mysendsmsuser1 username = tester1 password = tester1 forced-smsc = mysmsc1 #default-smsc= mysmsc1 user-allow-ip=*.*.*.* max-messages=10 #- # Multi Group mysql-connection #- group = mysql-connection id = sqlbox-db host=127.0.0.1 username = root password = database = bulk_sms max-connections = 1 group = mysql-connection id = mydlr host=127.0.0.1 username = root password = database = bulk_sms #max-connections = 1 #- # Single Group dlr-db #- 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 #- *sqlbox.conf* #- # SQL BOX CONFIG #- group = sqlbox id = sqlbox-db smsbox-id = mysmsbox global-sender = bearerbox-host = localhost bearerbox-port = 15001 smsbox-port = 15002 smsbox-port-ssl = false sql-log-table = sqlbox_sent_sms sql-insert-table = sqlbox_send_sms log-file = sqlbox.log log-level = 0 #ssl-client-certkey-file = #ssl-server-cert-file = #ssl-server-key-file = #ssl-trusted-ca-file = #- # Example MYSQL Connection #- group = mysql-connection id = sqlbox-db host=127.0.0.1 port = 3306 username = root password = database = bulk_sms #max-connections = 1 #- Please reply as soon as possible. I'm waiting for your valuable reply. Your reply will be appreciate. Thanks, Aditya Khanna
Kannel Redis Dlr
Hi, I have compiled latest kannel (svn-r5110) from svn with Redis DLR support. Everything is working fine as i have tested 5-10 messages and DLRs are getting stored under Redis and getting removed too in case we received dlr. Just wondering if i can put the same under production? Is anyone using the same combination under production with 1-2 million messages per day. Is anyone facing any issues with kannel DLR with Redis? Thanks Regards Tapan Thapa
Question
Hi All, Just a question/info required, Can we add/remove SMSC via kannel API calls some how? If not, any scope in near feature? Can kannel somehow read its SMSC configuration from DB or API calls? Thanks Regards Tapan Thapa
RE: Funding
+1 for ciaran question... Sent from my Windows Phone -- From: Ciaran Scolard cia...@phonovation.com Sent: 28-04-2014 19:44 To: users@kannel.org Subject: Funding Hi All, I’m looking for a funding page for kannel dev. Where do we give donations to? Regards, Ciaran.
Re: configure script failing on libxml2
Yum install libxml-devel* On Jan 19, 2013 3:56 AM, Brian McCavour bmccav...@yahoo.com wrote: Hi, I installed kannel successful on my machine, but when I just installed it on my jenkins machine, I am getting getting an error finding the libxml2. # ./configure Configuring for Kannel gateway version 1.4.3 ... Running system checks ... Checking for libxml2 support ... checking for xml2-config... no checking for xml-config... no configure: error: You MUST have the libxml2 (aka gnome-xml) library installed BUT # rpm -q libxml2 libxml2-2.6.26-2.1.2.7 On my machine I have # rpm -q libxml2 libxml2-2.6.26-2.1.2.8.el5_5.1 The only thing it says in the userguide is that it must be 2.2 or higher. Is there some other hidden requirement that I'm mising ? Thanks, Brian
Re: configure script failing on libxml2
Or may be Yum install libxml2-devel* On Jan 19, 2013 3:56 AM, Brian McCavour bmccav...@yahoo.com wrote: Hi, I installed kannel successful on my machine, but when I just installed it on my jenkins machine, I am getting getting an error finding the libxml2. # ./configure Configuring for Kannel gateway version 1.4.3 ... Running system checks ... Checking for libxml2 support ... checking for xml2-config... no checking for xml-config... no configure: error: You MUST have the libxml2 (aka gnome-xml) library installed BUT # rpm -q libxml2 libxml2-2.6.26-2.1.2.7 On my machine I have # rpm -q libxml2 libxml2-2.6.26-2.1.2.8.el5_5.1 The only thing it says in the userguide is that it must be 2.2 or higher. Is there some other hidden requirement that I'm mising ? Thanks, Brian
Re: Reprocessing MOs
I think automatically by kannel itself is not possible however you can write a small program which will parse access logs and will reinsert the same in MySQL table. Thanks Regards Tapan Thapa On Thu, Dec 27, 2012 at 11:03 AM, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: Hello Team, I realized some 20 Hours later that insertion of messages into mysql database wasn't working. When I tried to insert manually, I got the error duplicate entry to autoincrement field Therefore, almost 1 messages were never inserted into the mysql table holding messages because of this. Hence, basically nothing was done to these requests. When I check the kannel MO log file, I can see alot of those messages that were never processed as a result. I wonder, Is i possible to reprocess my log entries during this period and at least send out responses to the subscribers? I cannot reprocess them from the database since they were never inserted into the table for holding incoming messages. I therefore need another position of re-running my processing. I'll appreciate your advise. Saludos Ombongi Moraa fe
Re: MO type message
Good Job Alex... On Mon, Dec 24, 2012 at 3:29 PM, Alex Nyika nomu...@gmail.com wrote: Working with Kannel for the first time can be a daunting task. I usually find this in my other coding work whenever I have something new to learn. I have come to notice that a step by step do it yourself guide always helps.The User manual can also be overwhelming for a newbie yet a great resource once you know your way round. The best way to learn kannel is to use a step by step guide. This http://blog.eucossa.org/2011/10/kannel/ blog has something you can use. I have also attached a pdf that may help. Cheers , Merry Christmas and good luck. On 24 December 2012 11:03, Jayanta Saha jayanta@gmail.com wrote: hello, I want to know when I send message from mobile how the message go to kannel which is located in server does it need any media such as php script or any thing else. How does it work I studied the manual but I didnt find any solution of it .Please help me out Thanks -- Kind regards, Alex Nyika Omuyonga skype: alex.nyika +256758116116
Re: inserting @ symbol after every character
Kindly send your sendsms url. On Fri, Nov 9, 2012 at 10:39 AM, alok srivastava alok...@gmail.com wrote: help guys when i am sending sms through kannel. on phone it displaying @ symbol after every character. like if sending hello , getting on mobile @h@e@l@l@o pz help thanks regards abhi
Re: Need complete configuration steps of kannel sms gateway in windows 7
Hi, Kindly evaluate this. http://www.ddj.co.za/kannel-for-windows Regards Tapan Thapa On Sat, Oct 27, 2012 at 3:29 PM, Nagendra Babu nagendrababu.imm...@gmail.com wrote: I am using Kannel Sms Gateway in windows 7. I need complete configuration steps how to install it and how to send a first sms in that gateway. please provide the information related to this question as soon as possible. Thank You -- *Nagendra Babu* *+91 9949217507*
Re: help me
Hello, It seems sendsms url is incorrect. Your provided url: http://127.0.0.1:13131/cgi-bin/sendsms?username=test%C2%A7password=test%C2%A7to=0023794410781%C2%A7text=bonjour Right url: http://127.0.0.1:13131/cgi-bin/sendsms?username=testpassword=test; to=0023794410781text=bonjourhttp://127.0.0.1:13131/cgi-bin/sendsms?username=test%C2%A7password=test%C2%A7to=0023794410781%C2%A7text=bonjour Kindly check above from command link and check if kannel is working properly. Regards Tapan Thapa On Fri, Oct 19, 2012 at 3:06 PM, Rodrigue Ango apim...@yahoo.fr wrote: thas is kannel config: # CORE group = core admin-port = 13000 admin-password = playsms #status-password = playsms #admin-allow-ip = 127.0.0.1;192.168.18.168 #admin-deny-ip = *.*.*.* box-deny-ip = *.*.*.* log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 #wapbox-port = 13002 store-type = spool store-file = /var/log/kannel/kannel.store store-location = /var/spool/kannel/store smsbox-max-pending = 100 box-allow-ip = 127.0.0.1 unified-prefix = 00237,+237,00 wdp-interface-name = * #group wapbox group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log log-level = 0 syslog-level = none # SMSBOX group = smsbox bearerbox-host = localhost sendsms-port = 13131 global-sender = 13131 sendsms-url = /cgi-bin/sendsms sendsms-chars = 0123456789+ log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log # SMSC fastrack group = smsc smsc = at smsc-id = default #allowed-smsc-id = default #preferred-smsc-id = default modemtype = HUAWEI sms-center = +23799900990 my-number = +23797550002 validityperiod = 167 pin = sim-buffering = true host = localhost device = /dev/ttyUSBO device = /dev/ttyUSB1 log-file = /var/log/kannel/smsc.log log-level = 0 speed = 9600 #group = modems group = modems id = huawei_e1552 name = Huawei E1552 detect-string = huawei init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 message-storage = SM need-sleep = true speed = 9600 # SENDSMS-USER group = sendsms-user default-smsc = default username = test password = test max-messages = 10 concatenation = true #user-deny-ip = *.*.*.* #user-allow-ip = 127.0.0.1;192.168.18.168 # SMS SERVICE 'default' group = sms-service keyword = cnps #la variable aliase est importante car elle permet de tenir compte des erreurs de frappes aliases = 'CNPS;Cnps;CNps' text = merci de faire confiance a la cnps omit-empty = true max-messages = 3 get-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=geturlt=%tq=%qa=%aQ=%Q group = sms-service keyword = default text = Mauvaise syntaxe veuillez saisir le message en respectant la syntaxe définie and thas is url http://127.0.0.1:13131/cgi-bin/sendsms?username=test%C2%A7password=test%C2%A7to=0023794410781%C2%A7text=bonjour -- *De :* Tapan Kumar Thapa tapan.thapa2...@gmail.com *À :* Rodrigue Ango apim...@yahoo.fr *Envoyé le :* Vendredi 19 octobre 2012 10h27 *Objet :* Re: help me Kindly share your kannel config as well as sendsms url which you are invoking.. On Fri, Oct 19, 2012 at 2:54 PM, Rodrigue Ango apim...@yahoo.fr wrote: hello I'm new to kannel, I had to cross many obstacles but this morning I had two new ones. I receive messages but when I try to send I have an answer: Authorization failed for sendsms yet user name and password created in the group sendsms-users is exact. The second problem is that I can not route a message to the recipient I have an answer: No client - multi-send or ACK to pull-reply. please I need your assistance to be able to cross this barrier
Re: help me
Hello, I hope, you are using playsms. Check if playsms can do this for you. Regards Tapan Thapa On Fri, Oct 19, 2012 at 3:54 PM, Rodrigue Ango apim...@yahoo.fr wrote: thank you I found that the credit of communication was over the message was put in the queu. I have a second problem how to configure an automatic reply to the number that sent the message to my platform because when I receive a message that indicates SMSBOX No client - multi-send or ACK to pull-reply how to Resolve this problem -- *De :* Tapan Kumar Thapa tapan.thapa2...@gmail.com *À :* Rodrigue Ango apim...@yahoo.fr *Envoyé le :* Vendredi 19 octobre 2012 11h14 *Objet :* Re: help me If kannel sendsms url is returning 0: Accepted for delivery that means kannel is working perfectly. Kindly check kannel access logs for further error/issue. Regards Tapan Thapa On Fri, Oct 19, 2012 at 3:22 PM, Rodrigue Ango apim...@yahoo.fr wrote: thanks but when i put this url i have this message 0: Accepted for delivery but the phone to which I sent the message has not received the message i want to known this problem game from kannel config Rodrigue ANGO ENSPT Yaoudé Tel: 00237 97 55 00 02 / 00237 75 34 66 37 apim...@yahoo.fr / apim...@live.fr Devise: Réussir ou Mourir -- *De :* Tapan Kumar Thapa tapan.thapa2...@gmail.com *À :* Rodrigue Ango apim...@yahoo.fr *Cc :* users@kannel.org *Envoyé le :* Vendredi 19 octobre 2012 10h42 *Objet :* Re: help me Hello, It seems sendsms url is incorrect. Your provided url: http://127.0.0.1:13131/cgi-bin/sendsms?username=test%C2%A7password=test%C2%A7to=0023794410781%C2%A7text=bonjour Right url: http://127.0.0.1:13131/cgi-bin/sendsms?username=testpassword=test; to=0023794410781text=bonjourhttp://127.0.0.1:13131/cgi-bin/sendsms?username=test%C2%A7password=test%C2%A7to=0023794410781%C2%A7text=bonjour Kindly check above from command link and check if kannel is working properly. Regards Tapan Thapa On Fri, Oct 19, 2012 at 3:06 PM, Rodrigue Ango apim...@yahoo.fr wrote: thas is kannel config: # CORE group = core admin-port = 13000 admin-password = playsms #status-password = playsms #admin-allow-ip = 127.0.0.1;192.168.18.168 #admin-deny-ip = *.*.*.* box-deny-ip = *.*.*.* log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 #wapbox-port = 13002 store-type = spool store-file = /var/log/kannel/kannel.store store-location = /var/spool/kannel/store smsbox-max-pending = 100 box-allow-ip = 127.0.0.1 unified-prefix = 00237,+237,00 wdp-interface-name = * #group wapbox group = wapbox bearerbox-host = localhost log-file = /var/log/kannel/wapbox.log log-level = 0 syslog-level = none # SMSBOX group = smsbox bearerbox-host = localhost sendsms-port = 13131 global-sender = 13131 sendsms-url = /cgi-bin/sendsms sendsms-chars = 0123456789+ log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log # SMSC fastrack group = smsc smsc = at smsc-id = default #allowed-smsc-id = default #preferred-smsc-id = default modemtype = HUAWEI sms-center = +23799900990 my-number = +23797550002 validityperiod = 167 pin = sim-buffering = true host = localhost device = /dev/ttyUSBO device = /dev/ttyUSB1 log-file = /var/log/kannel/smsc.log log-level = 0 speed = 9600 #group = modems group = modems id = huawei_e1552 name = Huawei E1552 detect-string = huawei init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 message-storage = SM need-sleep = true speed = 9600 # SENDSMS-USER group = sendsms-user default-smsc = default username = test password = test max-messages = 10 concatenation = true #user-deny-ip = *.*.*.* #user-allow-ip = 127.0.0.1;192.168.18.168 # SMS SERVICE 'default' group = sms-service keyword = cnps #la variable aliase est importante car elle permet de tenir compte des erreurs de frappes aliases = 'CNPS;Cnps;CNps' text = merci de faire confiance a la cnps omit-empty = true max-messages = 3 get-url = http://localhost/playsms/index.php?app=callcat=gatewayplugin=kannelaccess=geturlt=%tq=%qa=%aQ=%Q group = sms-service keyword = default text = Mauvaise syntaxe veuillez saisir le message en respectant la syntaxe définie and thas is url http://127.0.0.1:13131/cgi-bin/sendsms?username=test%C2%A7password=test%C2%A7to=0023794410781%C2%A7text=bonjour -- *De :* Tapan Kumar Thapa tapan.thapa2...@gmail.com *À :* Rodrigue Ango apim...@yahoo.fr *Envoyé le :* Vendredi 19 octobre 2012 10h27 *Objet :* Re: help me Kindly share your kannel config as well as sendsms url which you are invoking.. On Fri, Oct 19, 2012 at 2:54 PM, Rodrigue Ango apim...@yahoo.fr wrote: hello I'm new to kannel, I had to cross many obstacles but this morning I had two new ones. I receive messages but when I try to send I have an answer
Re: Store Access log in database
Kindly check sqlbox.. On Thu, Oct 18, 2012 at 5:43 PM, Ravindra Gupta // Viva ravin...@vivainfomedia.com wrote: Hi Team, We have configured Kannel server 1.5.0 on Linux server, We need store online mode kannel_access.log data in the mysql database. Kindly share some suggestions for the same. Thanks
Re: Store Access log in database
Unfortunately there is no script available which can parse access.log and can store in MySQL or any other DB as far as i know. May be any other user of kannel can help. You can easily make it if you know coding. Regards Tapan Thapa On Thu, Oct 18, 2012 at 6:22 PM, Ravindra Gupta // Viva ravin...@vivainfomedia.com wrote: Dear Tapan, We have successfully configured Sqlbox one of our local servers but we need to store kannel_access.log in mysql database. Any script or any config parameters so that we will capture the logs in DB. Thanks On Thu, Oct 18, 2012 at 5:58 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Kindly check sqlbox.. On Thu, Oct 18, 2012 at 5:43 PM, Ravindra Gupta // Viva ravin...@vivainfomedia.com wrote: Hi Team, We have configured Kannel server 1.5.0 on Linux server, We need store online mode kannel_access.log data in the mysql database. Kindly share some suggestions for the same. Thanks
Re: kannel-monitor
Hello, I had the same issue when i copied the kennel monitor to my document root of apache I suggest to checkout fresh code from svn and than copy kennel monitor from crontrib directory to your document root of apace. Regards Tapan Thapa On Oct 16, 2012 5:56 PM, Singularnet singular...@gmail.com wrote: Thanks Tapan this is my config.php ?php /* * Configure the kannel instances here */ $configs = array( array( base_url = http://127.0.0.1:13000;, status_passwd = status, admin_passwd = admin, name = momotombo )/*, array( base_url = http://kannel.yourdomain.com:33000;, status_passwd = foobar, admin_passwd = , name = Kannel 2 )*/ ); /* some constants */ define('MAX_QUEUE', 100); /* Maximum size of queues before displaying it in red */ define('DEFAULT_REFRESH', 60); /* Default refresh time for the web interface */ ? and this is my kannel.conf group = core admin-port = 13000 smsbox-port = 13001 admin-password = admin status-password = status admin-deny-ip = *.*.*.* admin-allow-ip = 190.212.*.*;127.0.0.1;10.0.0.1 log-file = /var/log/kannel/bearerbox.log log-level = 0 box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1 access-log = /var/log/kannel/access_bear.log #store-file = kannel.store #ssl-server-cert-file = cert.pem #ssl-server-key-file = key.pem #ssl-certkey-file = mycertandprivkeyfile.pem #- # SMSC CONNECTIONS # #Smsbox(es) routing, means that any inbound message that have been #originating from smsc-id should be delivered via smsbox-id group = smsbox-route smsbox-id=smsbox_nic #smsbox-id=sqlbox smsc-id = FAKE #shortcode = 7787;+7787 #- # 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. .. group = sendsms-user username = flavio password = tito #user-deny-ip = *.*.*.* #user-allow-ip = 127.0.0.1 #- #- # ARCHIVOS A INCLUIR, CONEXIONES SMPP Y SERVICIOS # include = /etc/kannel/smsbox.conf include = /etc/kannel/connections/fake.conf It is weird because it give me no error, only it doesn't load the information, maybe it could be something about php configuration thanks On Mon, Oct 15, 2012 at 10:12 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hello Singularnet, Kannel-Monitor Latest (Under contrib folder) is working fine as i have checked with my installation. Can you provide your kannel config as well as Kannel-Monitor config so that i can check if there is any issue. Regards Tapan Thapa On Tue, Oct 16, 2012 at 8:39 AM, Singularnet singular...@gmail.com wrote: Hi everybody I have running kannel fine, and i get the status throught http://MYIP:13000/status.xml?password=MYPASS, and show me all the information about the boxes connected etc, so everything is OK, but if i tried to get that information throught kannel-monitor, it says that theres no box conneted ( No boxes connected to this bearerbox!) . It seems that kannel-monitor it's not reading the information. Any clues will be appreciated Thanks
Re: Limiting TCP connections to bearerbox
Hello, Have you tried binding as Transmitter only. transceiver-mode=false Regards Tapan Thapa On Mon, Oct 15, 2012 at 5:56 PM, Eric Beda eric.b...@kamili.co.tz wrote: Hi all, I have come up with an unfortunate problem. I had a working kannel configuration with an operators SMSC, everything was working fine, then lately they say that I am connecting to there interface using two interfaces. They have now limited me to one, and my kannel logs receive an error SMSC rejected login to receive code 0x000d (bind failed) I have configured kannel as a transceiver via transceiver-mode=true. I have asked them to undue the interface limit whilst I re-configure my setup. I checked out the connections to my server via lsof -i I noticed is that bearerbox under transceiver-mode initiates two connections to SMSC, which I suspect the mobile operator treats as two interfaces. So my question is how do I get kannel to connect to SMSC via one TCP connection in transceiver mode Hope will get help Regards
Re: Limiting TCP connections to bearerbox
Hello Eric, Kindly don't forget to add users mailing list in your future quires. No, If you are connected as transceiver=false than you will not be able to receive sms. Can you cross check with your SMPP provider if they have allowed you to bind as transmitter? Or If they have given you two sessions one as TX and second as RX than i will suggest appropriate connection strings. Kindly check. Regards Tapan Thapa On Mon, Oct 15, 2012 at 6:04 PM, Eric Beda eric.b...@kamili.co.tz wrote: Hi Tapan, Yes, I have tried that it works, and via lsof -i I notice there is only one connection to the SMSC, but in such a mode, will I he able to receive SMS's ?? Regards On Mon, Oct 15, 2012 at 3:29 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hello, Have you tried binding as Transmitter only. transceiver-mode=false Regards Tapan Thapa On Mon, Oct 15, 2012 at 5:56 PM, Eric Beda eric.b...@kamili.co.tzwrote: Hi all, I have come up with an unfortunate problem. I had a working kannel configuration with an operators SMSC, everything was working fine, then lately they say that I am connecting to there interface using two interfaces. They have now limited me to one, and my kannel logs receive an error SMSC rejected login to receive code 0x000d (bind failed) I have configured kannel as a transceiver via transceiver-mode=true. I have asked them to undue the interface limit whilst I re-configure my setup. I checked out the connections to my server via lsof -i I noticed is that bearerbox under transceiver-mode initiates two connections to SMSC, which I suspect the mobile operator treats as two interfaces. So my question is how do I get kannel to connect to SMSC via one TCP connection in transceiver mode Hope will get help Regards
Re: kannel-monitor
Hello, I am sorry but what is kannel-monitor? Regards Tapan Thapa On Tue, Oct 16, 2012 at 8:39 AM, Singularnet singular...@gmail.com wrote: Hi everybody I have running kannel fine, and i get the status throught http://MYIP:13000/status.xml?password=MYPASS, and show me all the information about the boxes connected etc, so everything is OK, but if i tried to get that information throught kannel-monitor, it says that theres no box conneted ( No boxes connected to this bearerbox!) . It seems that kannel-monitor it's not reading the information. Any clues will be appreciated Thanks
Re: kannel-monitor
Hello, Can you please provide me the link to see how it works so that i can help you out here. Thanks Regards Tapan Thapa On Tue, Oct 16, 2012 at 9:10 AM, Willy Mularto sangpr...@gmail.com wrote: It is a web tool to monitor your Kannel status On Oct 16, 2012, at 10:35 AM, Tapan Kumar Thapa wrote: Hello, I am sorry but what is kannel-monitor? Regards Tapan Thapa On Tue, Oct 16, 2012 at 8:39 AM, Singularnet singular...@gmail.comwrote: Hi everybody I have running kannel fine, and i get the status throught http://MYIP:13000/status.xml?password=MYPASS, and show me all the information about the boxes connected etc, so everything is OK, but if i tried to get that information throught kannel-monitor, it says that theres no box conneted ( No boxes connected to this bearerbox!) . It seems that kannel-monitor it's not reading the information. Any clues will be appreciated Thanks Willy Mularto F300HD+MR18DE (NLC1725)
Re: kannel-monitor
Hello, Thanks.. Got it.. I am just checking how it works..I am good in PHP so i might help you...:-) Regards Tapan Thapa On Tue, Oct 16, 2012 at 9:15 AM, Willy Mularto sangpr...@gmail.com wrote: It is included when you download Kannel. Please check contrib folder. On Oct 16, 2012, at 10:42 AM, Tapan Kumar Thapa wrote: Hello, Can you please provide me the link to see how it works so that i can help you out here. Thanks Regards Tapan Thapa On Tue, Oct 16, 2012 at 9:10 AM, Willy Mularto sangpr...@gmail.comwrote: It is a web tool to monitor your Kannel status On Oct 16, 2012, at 10:35 AM, Tapan Kumar Thapa wrote: Hello, I am sorry but what is kannel-monitor? Regards Tapan Thapa On Tue, Oct 16, 2012 at 8:39 AM, Singularnet singular...@gmail.comwrote: Hi everybody I have running kannel fine, and i get the status throught http://MYIP:13000/status.xml?password=MYPASS, and show me all the information about the boxes connected etc, so everything is OK, but if i tried to get that information throught kannel-monitor, it says that theres no box conneted ( No boxes connected to this bearerbox!) . It seems that kannel-monitor it's not reading the information. Any clues will be appreciated Thanks Willy Mularto F300HD+MR18DE (NLC1725) Willy Mularto F300HD+MR18DE (NLC1725)
Re: kannel-monitor
Hello Singularnet, Kannel-Monitor Latest (Under contrib folder) is working fine as i have checked with my installation. Can you provide your kannel config as well as Kannel-Monitor config so that i can check if there is any issue. Regards Tapan Thapa On Tue, Oct 16, 2012 at 8:39 AM, Singularnet singular...@gmail.com wrote: Hi everybody I have running kannel fine, and i get the status throught http://MYIP:13000/status.xml?password=MYPASS, and show me all the information about the boxes connected etc, so everything is OK, but if i tried to get that information throught kannel-monitor, it says that theres no box conneted ( No boxes connected to this bearerbox!) . It seems that kannel-monitor it's not reading the information. Any clues will be appreciated Thanks
Re: Kannel nto calling get-URL
Hello Satyadeep, Comment on your query are as follows: 1. When you are invoking kennel's send sms url, you can put your delivery application url in dlr-url parammeter so that when delivery report comes from smsc, kennel will hit that url. 2. Kennel will invoke your get url automatically once it receives any MO message from smsc. Thanks Tapan Thapa On Oct 14, 2012 10:08 PM, Satyadeep Kumar sa...@satyadoorva.in wrote: Anyone on this ? Thanks Satya On 14-10-2012 17:34, Satyadeep Kumar wrote: Hi, I am trying to setup kannel 1.5 in such a way that (1) It gives a DLR for every message I submit using D (2) It receives any message and submits it to another URL as specified in kannel.conf. However, when I try to send a message using , I do not see any DLR being pushed. Also, I would like to know , when will a get-url specified in sms-service with default keyword called . Will it be called , when a message is sent from my system using the sendsms script , or when a message is pushed to my system. My Kannel.conf : # # THIS IS A SAMPLE CONFIGURATION FOR KANNEL # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to users@kannel.org # group = core admin-port = 13186 admin-password = Ka123 #status-password = foo smsbox-port = 13187 #admin-deny-ip = #admin-allow-ip = log-file = /root/kannel15/logs/kannel.**log log-level = 0 access-log = /root/kannel15/logs/access.**log #http-proxy-host = 127.0.0.1 #http-proxy-port = 8080 #http-proxy-exceptions = 127.0.0.1 #http-proxy-username = user #http-proxy-password = password #ssl-certkey-file = mycertandprivkeyfile.pem dlr-storage = internal # Smsbox related #smsbox-port = 13187 #box-deny-ip = *.*.*.* #box-allow-ip = 127.0.0.1 #unified-prefix = 00358,0 #white-list = http://127.0.0.1/white-list.**txthttp://127.0.0.1/white-list.txt #black-list = http://127.0.0.1/black-list.**txthttp://127.0.0.1/black-list.txt #store-file = /root/kannel15/logs/kannel.**store # Wapbox related #wapbox-port = 13002 #udp-deny-ip = *.*.*.* #udp-allow-ip = 127.0.0.1 #wdp-interface-name = * # SMSC CONNECTIONS - GLOBAL FIELDS #group = smsc #smsc = #smsc-id = ID #denied-smsc-id = X;Y #allowed-smsc-id = Z #preferred-smsc-id = W #allowed-prefix = 040;050 #denied-prefix = 060;070 #alt-charset = # SMSC Nokia CIMD2 #group = smsc #smsc = cimd2 #host = #port = #smsc-username = #smsc-password = #keepalive = #sender-prefix = # SMSC EMI #group = smsc #smsc = emi2 #smsc = emi_ip to use the old implementation #host = #port = #smsc-username = #smsc-password = #device = /dev/ #phone = #our-port = #receive-port = #connect-allow-ip = #keepalive = #flow-control = # SMSC SMPP group = smsc smsc = smpp host = myhost port = myport #receive-port = smsc-username = mu smsc-password = mp system-type = generic #address-range = throughput = 10 wait-ack = 600 keepalive=1 transceiver-mode = 1 enquire-link-interval = 1200 source-addr-ton = 0 source-addr-npi = 1 dest-addr-ton = 1 dest-addr-npi = 1 max-pending-submits = 10 interface-version = 34 # SMSC SEMA #group = smsc #smsc = sema #device = /dev/tty0 #smsc_nua = (X121 smsc address) #home_nua = (x121 radio pad address) #wait_report = 0/1 (0 means false, 1 means true) # SMSC OIS #group = smsc #smsc = ois #host = 103.102.101.100 #port = 1 #receive-port = 1 #ois-debug-level = 0 # SMSC GSM #group = smsc #smsc = at #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom | nokiaphone | ericsson #device = /dev/ttyS0 #pin = 2345 #validityperiod = 167 # SMSC Fake #group = smsc #smsc = fake #host = #port = #connect-allow-ip = # SMSC HTTP #group = smsc #smsc = http #system-type = kannel #send-url = #port = #connect-allow-ip = #username = #password = # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13188 #sendsms-chars = 0123456789 +- global-sender = 12345 log-file = /root/kannel15/logs/smsbox.**log log-level = 0 access-log = /root/kannel15/logs/smsbox-**access.log #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # SEND-SMS USERS group = sendsms-user username = muser password = mypass #user-deny-ip = #user-allow-ip = # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = *.*.*.* user-allow-ip = 127.0.0.1 #name = service_kannel #forced-smsc = ID #default-smsc = ID #faked-sended = #max-messages = 1 #concatenation = 1 #split-chars = #split-suffix = #omit-empty = #header = #footer = #allowed-prefix = #denied-prefix = #white-list = #black-list = # SMS SERVICES #group = sms-service #name = nothing #keyword = nop #aliases = noppy;niente #text = You asked nothing and I did it! #get-url = http://; #post-url = http://; #file =
Re: Problem in getting synchronized dlr
Hello Saurabh, This has been answered many times in the mailing list which you can easily check via google search. However sending you my comments again. While you are invoking sendsms url than in the dlr-url you can put a unique id of your database. So once delivery report comes back, kannel will hit your provided dlr-url which we will have your provided db id in it. Regards Tapan Thapa On Thu, Oct 11, 2012 at 11:30 AM, saurabh chandan saurabhchanda...@gmail.com wrote: HI, My sms g/w is working fine, but now i need to get delivery reports and save them to my mysql DB. Problem is delivery reports come in dlr table and get moved to sent_sms table once their status in known, but then i am not able to identify that for which sms is this delivery report. I am also using dlr-url and dlr-mask=31. What i noticed that in smsc/smpp log, kannel is using message-id as ts (timestamp) to log initial ack in dlr table and when proper status comes again on smpp connection, it automatically finds that initial delivery report using this message-id/ts and replaces this entry with the new one. How can i retrieve this message-id so that i can myself process dlr? OR Is there any other method to know which dlr is for which sms(as we may send sms to a single number multiple times in a day)? -- -- *Thanks Regards, Saurabh Chandan *
Re: Error coming on restarting Bearerbox.
Hello, I am sorry but have you removed your added entry and checked if kannel is getting restarted (stop/start) properly. Regards Tapan Thapa On Tue, Oct 9, 2012 at 4:25 PM, sudhir meena surwt...@gmail.com wrote: Good Noon, The Problem is not yet Solved. I have a problem in Restarting Bearerbox after add store location in kannel.conf. === kannel.conf group = core admin-port = 14000 admin-password = Kannel@123 status-password = status smsbox-port = 13007 dlr-storage = mysql box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;192.168.1.* store-type = file #store-location = /backup/kannel store-location = /backup/kannel22 sms-incoming-queue-limit = -1 log-level = 0 access-log = /var/log/kannel/bearerbox. access log-file = /var/log/kannel/bearerbox.log group = smsbox smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13007 sendsms-port = 13131 log-file = /var/log/kannel/smsbox.log access-log = /var/log/kannel/smsbox.access log-level = 0 #include = Normal.conf #include = smsc2.conf #include = dnd.conf #include = smsc1.conf #include = bal.conf #include = Priority.conf #include = Pritalna.conf #include = TM.conf #include = dndspecial.conf #include = lnpl.conf #include = PMU.conf #include = PM1.conf #include = TM1.conf #include = TM.conf #include = TMU.conf include = smsc.conf group = sendsms-user #dlr_url = http://leads.emailservice.co.in/dlr.aspx?id=1status=4; username = doza password = india max-messages = 5 group = mysql-connection id = sqlbox-db host = localhost username = root password = redhat database = sms_dlr max-connections = 15 group = dlr-db id = sqlbox-db table = 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 group = sms-service keyword = default #keyword-regex = .* catch-all = true max-messages = 0 text = No service specified group = modems id = wavecom name = Wavecom detect-string = wavecom init-string = ATZ init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 message-storage = SM == [root@kannel201 sbin]# ./bearerbox kannel.conf /dev/null 2012-10-09 22:55:59 [31694] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. 2012-10-09 22:55:59 [31694] [0] INFO: Started access logfile `/var/log/kannel/bearerbox.access'. 2012-10-09 22:55:59 [31694] [0] INFO: SSL not supported, no SSL initialization done. 2012-10-09 22:55:59 [31694] [0] INFO: HTTP: Opening server at port 14000. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2012-10-09 22:55:59 [31694] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2012-10-09 22:55:59 [31694] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2012-10-09 22:55:59 [31694] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: starting smsbox connection module 2012-10-09 22:55:59 [31694] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2012-10-09 22:55:59 [31694] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2012-10-09 22:55:59 [31694] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] INFO: Set SMS resend frequency to 60 seconds. 2012-10-09 22:55:59 [31694] [0] INFO: SMS resend retry set to unlimited. 2012-10-09 22:55:59 [31694] [0] DEBUG: smsbox MO concatenated message handling enabled 2012-10-09 22:55:59 [31694] [0] INFO: DLR rerouting for smsc id TM disabled. 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: configuration shows modemtype wavecom 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Reading modem definitions from kannel.conf 2012-10-09 22:55:59 [31694] [0] DEBUG: Loading include file `smsc.conf' (on line 43 of file kannel.conf). 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Found 1 modems in config 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: read modem definition for Wavecom 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2012-10-09 22:55:59 [31694] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 31694. 2012-10-09 22:55:59 [31694] [6] INFO: AT2[TM]: trying to use speed 9600 from modem definition 2012-10-09 22:55:59 [31694] [6] INFO: AT2[TM]: opening device 2012-10-09 22:55:59 [31694] [0] INFO: DLR rerouting for smsc id TM disabled. 2012-10-09 22:55:59
Re: Error coming on restarting Bearerbox.
Hello Sudhir, In regards to your question (The Problem is not yet Solved. I have a problem in Restarting Bearerbox after add store location in kannel.conf.), i am asking have to tried removing store location entry from your kannel config and than tried if kannle is getting restarted properly. Regards Tapan Thapa On Tue, Oct 9, 2012 at 5:21 PM, sudhir meena surwt...@gmail.com wrote: On Tue, Oct 9, 2012 at 5:13 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hello, I am sorry but have you removed your added entry and checked if kannel is getting restarted (stop/start) properly. Regards Tapan Thapa On Tue, Oct 9, 2012 at 4:25 PM, sudhir meena surwt...@gmail.com wrote: Good Noon, The Problem is not yet Solved. I have a problem in Restarting Bearerbox after add store location in kannel.conf. === kannel.conf group = core admin-port = 14000 admin-password = Kannel@123 status-password = status smsbox-port = 13007 dlr-storage = mysql box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;192.168.1.* store-type = file #store-location = /backup/kannel store-location = /backup/kannel22 sms-incoming-queue-limit = -1 log-level = 0 access-log = /var/log/kannel/bearerbox. access log-file = /var/log/kannel/bearerbox.log group = smsbox smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13007 sendsms-port = 13131 log-file = /var/log/kannel/smsbox.log access-log = /var/log/kannel/smsbox.access log-level = 0 #include = Normal.conf #include = smsc2.conf #include = dnd.conf #include = smsc1.conf #include = bal.conf #include = Priority.conf #include = Pritalna.conf #include = TM.conf #include = dndspecial.conf #include = lnpl.conf #include = PMU.conf #include = PM1.conf #include = TM1.conf #include = TM.conf #include = TMU.conf include = smsc.conf group = sendsms-user #dlr_url = http://leads.emailservice.co.in/dlr.aspx?id=1status=4; username = doza password = india max-messages = 5 group = mysql-connection id = sqlbox-db host = localhost username = root password = redhat database = sms_dlr max-connections = 15 group = dlr-db id = sqlbox-db table = 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 group = sms-service keyword = default #keyword-regex = .* catch-all = true max-messages = 0 text = No service specified group = modems id = wavecom name = Wavecom detect-string = wavecom init-string = ATZ init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 message-storage = SM == [root@kannel201 sbin]# ./bearerbox kannel.conf /dev/null 2012-10-09 22:55:59 [31694] [0] INFO: Added logfile `/var/log/kannel/bearerbox.log' with level `0'. 2012-10-09 22:55:59 [31694] [0] INFO: Started access logfile `/var/log/kannel/bearerbox.access'. 2012-10-09 22:55:59 [31694] [0] INFO: SSL not supported, no SSL initialization done. 2012-10-09 22:55:59 [31694] [0] INFO: HTTP: Opening server at port 14000. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2012-10-09 22:55:59 [31694] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2012-10-09 22:55:59 [31694] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2012-10-09 22:55:59 [31694] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: starting smsbox connection module 2012-10-09 22:55:59 [31694] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2012-10-09 22:55:59 [31694] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2012-10-09 22:55:59 [31694] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 31694. 2012-10-09 22:55:59 [31694] [0] INFO: Set SMS resend frequency to 60 seconds. 2012-10-09 22:55:59 [31694] [0] INFO: SMS resend retry set to unlimited. 2012-10-09 22:55:59 [31694] [0] DEBUG: smsbox MO concatenated message handling enabled 2012-10-09 22:55:59 [31694] [0] INFO: DLR rerouting for smsc id TM disabled. 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: configuration shows modemtype wavecom 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Reading modem definitions from kannel.conf 2012-10-09 22:55:59 [31694] [0] DEBUG: Loading include file `smsc.conf' (on line 43 of file kannel.conf). 2012-10-09 22:55:59 [31694] [0] DEBUG: AT2[TM]: Found 1 modems in config 2012-10-09 22:55:59 [31694] [0] INFO: AT2[TM]: read modem
Re: Contents of users Digest, Vol 74, Issue 8 Topic HTTP Encoding
Hello, Can you try this? lynx -dump ' http://localhost:17002/cgi-bin/sendsms?to=2547xxxcoding=2charset=UTF-8user=coRepassword=coRetext=fa...@x.com ' Regards Tapan Thapa On Thu, Oct 4, 2012 at 4:28 PM, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: Hello Team, Joseph, Ivan I've checked this out and im sure its my kannel. when i try with lynx -dump ' http://localhost:17002/cgi-bin/sendsms?to=2547xxxcoding=0charset=utf-8user=coRepassword=coRetext=fa...@x.com ' , kannel submit_sm shows message as faith.x.com; also ive tested with MO's that are sent as fa...@x.com and i receive faithÂ@x.com in database. but i see in kannel.access log for MO, the message is shown perfectly but in kannel.usage.logs for MT it goes out with . symbol for this particular smsc. i've tried to change group=smsc and add alt-charset = ASCII but still the same problem. I've seen in kannel userguide that i can edit the /usr/local/include/kannel/gw/alt_charsets.h file but i dont know how to edit it. These are the charsets defined; #ifndef ALT_CHARSETS_H #define ALT_CHARSETS_H #define CIMD_PLAIN_DOLLAR_SIGN 1 #define EMI_SWAPPED_CHARS 2 #define EMI_NRC_ISO_21 3 #endif Saludos Ombongi Moraa fe On 4 October 2012 07:42, 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: Kannel PANICS octstr_convert_range (Rob GB) 2. Re: HTTP Encoding (Joseph Koech) 3. Kannel with two modems (Eugene Prokopiev) -- Message: 1 Date: Wed, 3 Oct 2012 09:38:50 -0500 From: Rob GB rob_gar_...@hotmail.com To: amal...@kannel.org Cc: users@kannel.org Subject: RE: Kannel PANICS octstr_convert_range Message-ID: snt128-w57a07b8e943882be0d8ffba2...@phx.gbl Content-Type: text/plain; charset=windows-1252 Hi Alex, Thanks a lot for your help, we applied the patch days ago and our Kannel instance has been stable since then. Best regards Subject: Re: Kannel PANICS octstr_convert_range From: amal...@kannel.org Date: Thu, 27 Sep 2012 15:03:48 +0200 CC: users@kannel.org To: rob_gar_...@hotmail.com http://www.kannel.org/pipermail/devel/attachments/20090826/42b1df45/attachment-0001.obj On 27.09.2012, at 13:37, Rob GB rob_gar_...@hotmail.com wrote: Hi, I think the fix was commited in this bug, but cannot find in the repo: http://www.kannel.org/pipermail/devel/2009-August/002872.html Could you guide me where the fix is? Thanks. From: rob_gar_...@hotmail.com To: amal...@kannel.org CC: users@kannel.org Subject: RE: Kannel PANICS octstr_convert_range Date: Thu, 27 Sep 2012 05:19:31 -0500 Hi Alex, We would like to fix the v1.4.3 since v1.5.0 is not officially released. I think we detected what type of MO is causing the problems, it is one with no data in the Data_sm message: Flags: 0x18 (PSH, ACK) 0... = Congestion Window Reduced (CWR): Not set .0.. = ECN-Echo: Not set ..0. = Urgent: Not set ...1 = Acknowledgement: Set 1... = Push: Set .0.. = Reset: Not set ..0. = Syn: Not set ...0 = Fin: Not set Window size: 32768 Short Message Peer to Peer, Command: Data_sm, Seq: 175, Len: 59 Length : 59 Operation : Data_sm (0x0103) Sequence #: 175 Service type: (Default) Type of number (originator): International (0x01) Numbering plan indicator (originator): ISDN (E163/E164) (0x01) Originator address: 525534097529 Type of number (recipient): International (0x01) Numbering plan indicator (recipient): ISDN (E163/E164) (0x01) Recipient address: 522030203000 ..00 = Messaging mode: Default SMSC mode (0x00) ..00 00.. = Message type : Default message type (0x00) 00.. = GSM features : No specific features selected (0x00) ..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) 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
Re: Contents of users Digest, Vol 74, Issue 11 Topic HTTP Encoding
Hello, These are sendsms url parameters only that means you can not configure these parameter at smsc level nor user level. While invoking sendsms url, you have to hard code these two variables every time. Regards Tapan Thapa On Thu, Oct 4, 2012 at 5:18 PM, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: Hello Team , Tapan, Tapan thanks a lot for the advise. It worked well. But now when i try to declare in the kannel.conf instance for SMSCMT #coding = 2 #charset = UTF-8 the kannel instance cannot be started successfully . its like there's an error in the .conf file. How do i translate this to my kannel.conf file? Saludos Ombongi Moraa fe On 4 October 2012 14:18, 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: Contents of users Digest, Vol 74, Issue 8 Topic HTTP Encoding (Tapan Kumar Thapa) -- Message: 1 Date: Thu, 4 Oct 2012 16:48:05 +0530 From: Tapan Kumar Thapa tapan.th...@hindustantimes.com To: Ombongi Moraa Fe moraa.lovetak...@gmail.com Cc: users@kannel.org Subject: Re: Contents of users Digest, Vol 74, Issue 8 Topic HTTP Encoding Message-ID: CAJaLo3AD3VPQrQ__R= o+5tfb9-rnuhxhn_j2sq+mwffvt1a...@mail.gmail.com Content-Type: text/plain; charset=iso-8859-1 Hello, Can you try this? lynx -dump ' http://localhost:17002/cgi-bin/sendsms?to=2547xxxcoding=2charset=UTF-8user=coRepassword=coRetext=fa...@x.com ' Regards Tapan Thapa On Thu, Oct 4, 2012 at 4:28 PM, Ombongi Moraa Fe moraa.lovetak...@gmail.com wrote: Hello Team, Joseph, Ivan I've checked this out and im sure its my kannel. when i try with lynx -dump ' http://localhost:17002/cgi-bin/sendsms?to=2547xxxcoding=0charset=utf-8user=coRepassword=coRetext=fa...@x.com ' , kannel submit_sm shows message as faith.x.com; also ive tested with MO's that are sent as fa...@x.com and i receive faith?@x.com in database. but i see in kannel.access log for MO, the message is shown perfectly but in kannel.usage.logs for MT it goes out with . symbol for this particular smsc. i've tried to change group=smsc and add alt-charset = ASCII but still the same problem. I've seen in kannel userguide that i can edit the /usr/local/include/kannel/gw/alt_charsets.h file but i dont know how to edit it. These are the charsets defined; #ifndef ALT_CHARSETS_H #define ALT_CHARSETS_H #define CIMD_PLAIN_DOLLAR_SIGN 1 #define EMI_SWAPPED_CHARS 2 #define EMI_NRC_ISO_21 3 #endif Saludos Ombongi Moraa fe On 4 October 2012 07:42, 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: Kannel PANICS octstr_convert_range (Rob GB) 2. Re: HTTP Encoding (Joseph Koech) 3. Kannel with two modems (Eugene Prokopiev) -- Message: 1 Date: Wed, 3 Oct 2012 09:38:50 -0500 From: Rob GB rob_gar_...@hotmail.com To: amal...@kannel.org Cc: users@kannel.org Subject: RE: Kannel PANICS octstr_convert_range Message-ID: snt128-w57a07b8e943882be0d8ffba2...@phx.gbl Content-Type: text/plain; charset=windows-1252 Hi Alex, Thanks a lot for your help, we applied the patch days ago and our Kannel instance has been stable since then. Best regards Subject: Re: Kannel PANICS octstr_convert_range From: amal...@kannel.org Date: Thu, 27 Sep 2012 15:03:48 +0200 CC: users@kannel.org To: rob_gar_...@hotmail.com http://www.kannel.org/pipermail/devel/attachments/20090826/42b1df45/attachment-0001.obj On 27.09.2012, at 13:37, Rob GB rob_gar_...@hotmail.com wrote: Hi, I think the fix was commited in this bug, but cannot find in the repo: http://www.kannel.org/pipermail/devel/2009-August/002872.html Could you guide me where the fix is? Thanks. From: rob_gar_...@hotmail.com To: amal
Re: On Certain Message: reply sent to particular number
Hello, Can you please elaborate what do you mean by perticular type of message? Thanks Tapan Thapa On Oct 4, 2012 6:40 PM, suneetsaini suneet.sa...@gmail.com wrote: Thanks in advance. In my kannel when I am sending nay message to my modem number then a reply is generated. But I want a system so that when a particular type of message is received only than it reply to that number else discard the number. Here is my *.conf file: #CORE group = core admin-port = 13000 admin-password = playsms status-password = playsms log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 unified-prefix = +91,0091,0;+,00 store-type = file store-file = /var/log/kannel/kannel.store sms-resend-retry = 1 dlr-storage = internal box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;192.168.1.* sms-incoming-queue-limit = -1 #SMSC MODEM GSM group = smsc smsc = at port = 13013 host = localhost smsc-id = SAMSUNG modemtype = auto device = /dev/ttyACM1 speed = 9600 #sms-center = Hello it is there connect-allow-ip = 127.0.0.1 my-number = 9953937874 #(this must be the number of the SMS center of your mobile provider) sim-buffering = true address-range= send-url = http://localhost:13013/cgi-bin/sendsms; group = modems id = SAMSUNG name = SAMSUNG GT-C3303i detect-string = GT-C3303i init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 enable-mms = true message-storage = sm need-sleep = true #SMSBOX SETUP group = smsbox #smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 sendsms-port = 13131 sendsms-chars = 0123456789+ global-sender = isi dengan sms center log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log #SEND-SMS USERS group = sendsms-user username = admin password = playsms #concatenation = false max-messages = 5 split-chars = # forced-smsc = B #user-deny-ip = #user-allow-ip = #dlr-url=http://localhost/playsms/plugin/gateway/kannel/dlr.php?d=%d; group = sms-service keyword = default #keyword-regex = .* catch-all = true max-messages = 1 text = Hello Your message is recieved -- View this message in context: http://old.nabble.com/On-Certain-Message%3A-reply-sent-to-particular-number-tp34512272p34512272.html Sent from the Kannel - User mailing list archive at Nabble.com.
Re: On Certain Message: reply sent to particular number
Hello Suneet, So to handle this, you would need to create a small program (PHP,JAVA or what every language you know.) which will receive all messages from Kannel (I can provide you the kannel config for this if required) and based on predefined Text Values, it will look for its appropriate response from database (MySQL,Oracle etc) and will send the reply back sms back to kannel so that kannel can deliver the same to sender. In regards to performance of Kannel, i am using below hardware configuration to send 1-5 million messages a day. 1. Quad Core Processor at 2.4 Ghz. 2. 16 GB RAM 3. 500 GB Hard Drive. Regards Tapan Thapa On Fri, Oct 5, 2012 at 10:41 AM, suneetsaini suneet.sa...@gmail.com wrote: Thanks Tapan for replying. There can be messages of which are starting with set of predefined Text values according to them messages stored in their respective database get their reply according the Text values in the message. Please also suggest me about how could I enhance the performance so that it can handle Thousands or Lakhs of messages at a time.(Hardware suggestion to if required). Thanks. Tapan Kumar Thapa wrote: Hello, Can you please elaborate what do you mean by perticular type of message? Thanks Tapan Thapa On Oct 4, 2012 6:40 PM, suneetsaini suneet.sa...@gmail.com wrote: Thanks in advance. In my kannel when I am sending nay message to my modem number then a reply is generated. But I want a system so that when a particular type of message is received only than it reply to that number else discard the number. Here is my *.conf file: #CORE group = core admin-port = 13000 admin-password = playsms status-password = playsms log-file = /var/log/kannel/kannel.log log-level = 0 access-log = /var/log/kannel/access.log smsbox-port = 13001 unified-prefix = +91,0091,0;+,00 store-type = file store-file = /var/log/kannel/kannel.store sms-resend-retry = 1 dlr-storage = internal box-deny-ip = *.*.*.* box-allow-ip = 127.0.0.1;192.168.1.* sms-incoming-queue-limit = -1 #SMSC MODEM GSM group = smsc smsc = at port = 13013 host = localhost smsc-id = SAMSUNG modemtype = auto device = /dev/ttyACM1 speed = 9600 #sms-center = Hello it is there connect-allow-ip = 127.0.0.1 my-number = 9953937874 #(this must be the number of the SMS center of your mobile provider) sim-buffering = true address-range= send-url = http://localhost:13013/cgi-bin/sendsms; group = modems id = SAMSUNG name = SAMSUNG GT-C3303i detect-string = GT-C3303i init-string = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 enable-mms = true message-storage = sm need-sleep = true #SMSBOX SETUP group = smsbox #smsbox-id = sqlbox bearerbox-host = localhost bearerbox-port = 13001 sendsms-port = 13131 sendsms-chars = 0123456789+ global-sender = isi dengan sms center log-file = /var/log/kannel/smsbox.log log-level = 0 access-log = /var/log/kannel/access.log #SEND-SMS USERS group = sendsms-user username = admin password = playsms #concatenation = false max-messages = 5 split-chars = # forced-smsc = B #user-deny-ip = #user-allow-ip = #dlr-url=http://localhost/playsms/plugin/gateway/kannel/dlr.php?d=%d; group = sms-service keyword = default #keyword-regex = .* catch-all = true max-messages = 1 text = Hello Your message is recieved -- View this message in context: http://old.nabble.com/On-Certain-Message%3A-reply-sent-to-particular-number-tp34512272p34512272.html Sent from the Kannel - User mailing list archive at Nabble.com. -- View this message in context: http://old.nabble.com/On-Certain-Message%3A-reply-sent-to-particular-number-tp34512272p34517123.html Sent from the Kannel - User mailing list archive at Nabble.com.
Re: SMPPBox - Query
Hello, Is anyone having any clue on my requirement? Thanks Regards Tapan Thapa On Mon, Oct 1, 2012 at 12:02 PM, Tapan Kumar Thapa tapan.thapa2...@gmail.com wrote: Hello Team, I have a small query. I have successfully complied and configured opensmppbox and i am able to relay sms via opensmppbox to bearerbox. So what i want to know is, can opensmppbox inject received MT from first esme to second esme as MO which is on the same opensmppbox. (Both ESME1 and ESME2 account are on the same OPENSMPPBOX server) What i want is: ESEM1 (MT) -OPENSMPPBOX1-ESME2 (AS MO) Please do let me know if i should provide more information here. Regards Tapan Thapa
SMPPBox - Query
Hello Team, I have a small query. I have successfully complied and configured opensmppbox and i am able to relay sms via opensmppbox to bearerbox. So what i want to know is, can opensmppbox inject received MT from first esme to second esme as MO which is on the same opensmppbox. (Both ESME1 and ESME2 account are on the same OPENSMPPBOX server) What i want is: ESEM1 (MT) -OPENSMPPBOX1-ESME2 (AS MO) Please do let me know if i should provide more information here. Regards Tapan Thapa