Re: Tunning up kannel

2014-06-09 Thread DHC Admin
Hi Ahmed
Have you tweaked the smsbox-max-pending and/or max-pending-requests?
Check for them on the user guide


On Wed, Jun 4, 2014 at 11:33 AM, Ahmed BOUDHRAA 
ahmed.boudh...@inbmi.edunet.tn wrote:

 Hi
 we are using kannel about 2 years in our institution and its woriking like
 a charm. we have high load traffic with 3 operators with 3 kannel gatways,
 our configuration is like this:

 - kannel 1 : Operator 1 : VM 2 x CPU 3 Ghz  8 Go Ram
 - kannel 2 : Operator 2 : VM 2 x CPU 3 Ghz  8 Go Ram
 - kannel 3 : Operator 3 : VM 2 x CPU 3 Ghz  8 Go Ram
 - Web Portal: for all kannel : VM 8 x CPU 3 Ghz 32 Go RAM
 - Postgres Database behind the web server : VM 8 x CPU 3 Ghz 32 Go RAM

 All those server are running under ESXi hypervisor in SAN environnement.
 Any way we are tunning all the plateform with several tools ( ApacheBench
 for web load and fakesms for kannel)
 we want to profit of all the hardware ressources with optimizing all
 componenents to reach the limits of the hardware, but still are still far
 behind the real capability of the hardware.
 The fact is we have reached 800 sms /s with the operators and its fine,
 but we want more not that we need it right now but just to master how every
 things work...
 The WEB/DB side tunning is well done due to fact that we have mastered
 it in our webs servers but the kannel side is litle different. with fakesms
 we are sending about 1000 sms / s from each kannel so we want to manage
 3000 sms / s in our portal  but all the kannel dosent send them with the
 speed we want even if they are not even litle solicited, we noticed that
 the bottle neck is between the smsbox and the bearerbox we dont know
 exactly but all 1000 sms arrive instantelly to the bearerbox in each kannel
 and a queue is formed between the bearerbox and smsbox, the smsbox send to
 the web server ( the portal ) about 1200 request / s wich is far from his
 limit ( we have tunning it to manage 3500 request / s ) I ve talked a lot
 but the main question is how we remove that so called queue
 smsbox/bearebox? to make the kannels send more than 1200 request/s so we
 can reach the limits in all the equippements all the system is running far
 behind his capabilitys.
 thinx for the help



Re: Tunning up kannel

2014-06-09 Thread Ahmed BOUDHRAA
HI 
thx for the relpay i was wondering if someone will help :) 
the fact is that we tunned the max-pending-requests and we ve concluded that 
about 800 is the best value and if we go up the results go worst, but the 
smsbox-max-pending we havent added such parametre; can you please explain it, 
is it, the smsbox-max-pending, is the queue between the smsbox and our portal? 
if i make it more simple: 


what is the difference between the tow variable that you gived to us : 
smsbox-max-pending and max-pending-requests ? and where are they placed, i mean 
if there is tow pending queue, i think one is in front of the bearerbox ( can i 
assume it is the max-pending-requests ?) and one between the bearerbox and the 
smsbox ? ( should it be the smsbox-max-pending ???) if my assumption are right 
i could be the bottleneck coz we havent touch such parametre, and if so the 
default value is about how much? 


thinx again for the help 





- Mail Original - 
De: DHC Admin dhcad...@gmail.com 
À: Ahmed BOUDHRAA ahmed.boudh...@inbmi.edunet.tn 
Cc: users@kannel.org 
Envoyé: Lundi 9 Juin 2014 13:50:46 
Objet: Re: Tunning up kannel 


Hi Ahmed 
Have you tweaked the smsbox-max-pending and/or max-pending-requests? 
Check for them on the user guide 



On Wed, Jun 4, 2014 at 11:33 AM, Ahmed BOUDHRAA  
ahmed.boudh...@inbmi.edunet.tn  wrote: 




Hi 
we are using kannel about 2 years in our institution and its woriking like a 
charm. we have high load traffic with 3 operators with 3 kannel gatways, our 
configuration is like this: 


- kannel 1 : Operator 1 : VM 2 x CPU 3 Ghz 8 Go Ram 
- kannel 2 : Operator 2 : VM 2 x CPU 3 Ghz 8 Go Ram 
- kannel 3 : Operator 3 : VM 2 x CPU 3 Ghz 8 Go Ram 
- Web Portal: for all kannel : VM 8 x CPU 3 Ghz 32 Go RAM 
- Postgres Database behind the web server : VM 8 x CPU 3 Ghz 32 Go RAM 


All those server are running under ESXi hypervisor in SAN environnement. Any 
way we are tunning all the plateform with several tools ( ApacheBench for web 
load and fakesms for kannel) 
we want to profit of all the hardware ressources with optimizing all 
componenents to reach the limits of the hardware, but still are still far 
behind the real capability of the hardware. 
The fact is we have reached 800 sms /s with the operators and its fine, but we 
want more not that we need it right now but just to master how every things 
work... 
The WEB/DB side tunning is well done due to fact that we have mastered it 
in our webs servers but the kannel side is litle different. with fakesms we are 
sending about 1000 sms / s from each kannel so we want to manage 3000 sms / s 
in our portal but all the kannel dosent send them with the speed we want even 
if they are not even litle solicited, we noticed that the bottle neck is 
between the smsbox and the bearerbox we dont know exactly but all 1000 sms 
arrive instantelly to the bearerbox in each kannel and a queue is formed 
between the bearerbox and smsbox, the smsbox send to the web server ( the 
portal ) about 1200 request / s wich is far from his limit ( we have tunning it 
to manage 3500 request / s ) I ve talked a lot but the main question is how we 
remove that so called queue smsbox/bearebox? to make the kannels send more than 
1200 request/s so we can reach the limits in all the equippements all the 
system is running far behind his capabilitys. 
thinx for the help 


Re: submit_sm to same recipeint

2014-06-09 Thread ha...@aeon.pk
SMSC can identify it as a spam attempt, since spam analysis is one of the
first things to activate before the message is handed over for delivery. I
don't think kannel causes any problem in this.

Do remember the buffer limit for each individual number is around 30 or 50
at one time. You might be breaching that as well, after which SMSC is bound
to throw error.


On Fri, May 23, 2014 at 12:21 PM, [Digital^Dude] ® millennium@gmail.com
 wrote:

 Hello,

 Is there any possibility that kannel gw fails a burst of submit_sm when
 the recipient address is the same?



Re: CANT SEND MESSAGES OUT, I DONT KNOW WHICH FILE TO GIVE PERMISSION

2014-06-09 Thread ha...@aeon.pk
The problem is probably in mail.php file. Check it carefully.


On Sat, Jun 7, 2014 at 11:26 PM, Ayubu Lulesu alul...@gmail.com wrote:

 Dear friends, i have been struggling without success to send sms to users
 phone from my system. some people said that i have to grant permission to
 user kannel to access the file. My problem is:
 1. I dont know how to give the permission to that user (kannel)
 2. i dont know which file i should give permission to kannel.

 when i try to send the sms i get the following error, please help me :'(

 *Warning:
 file(http://localhost:13013/cgi-bin/sendsms?username=ayubupassword=lulesuto=0769261977text=secret+number+is+roll
 http://localhost:13013/cgi-bin/sendsms?username=ayubupassword=lulesuto=0769261977text=secret+number+is+roll):
 failed to open stream: Connection refused
 in/var/www/html/booking-final/mail.php on line 3*



Re: Tunning up kannel

2014-06-09 Thread spameden
2014-06-09 17:08 GMT+04:00 Ahmed BOUDHRAA ahmed.boudh...@inbmi.edunet.tn:

 HI
 thx for the relpay i was wondering if someone will help :)
 the fact is that we tunned the max-pending-requests and we ve concluded
 that about 800 is the best value and if we go up the results go worst, but
 the smsbox-max-pending we havent added such parametre; can you please
 explain it, is it, the smsbox-max-pending, is the queue between the smsbox
 and our portal?


I can't imagine why do you need such high rate of sending MT messages for
university unless you're spamming your students every second ..

The speed also very much depends on your SMSC upstream providers, network
link between you and them, TCP RTT (re-transmissions), etc.

The general settings for throughput between you and smsc are:

1) throughput -- limits MT/sec
2) max-pending-submits -- unofficial parameter, controls how many
outstanding operations between you and SMSC (e.g. unacknowledged
submit_sm packets)

Try tuning these two parameters to get maximum of your upstream SMSC. Do it
carefully to not get THROTTLED errors or MAX_QUEUE errors. Consulting your
provider is highly recommended.





 if i make it more simple:

 what is the difference between the tow variable that you gived to us : 
 smsbox-max-pending
 and max-pending-requests ? and where are they placed, i mean if there is
 tow pending queue, i think one is in front of the bearerbox ( can i assume
 it is the max-pending-requests ?) and one between the bearerbox and the
 smsbox ? ( should it be the smsbox-max-pending ???) if my assumption are
 right i could be the bottleneck coz we havent touch such parametre, and if
 so the default value is about how much?


check user-guide, it's available on the WEB:
http://kannel.org/download/kannel-userguide-snapshot/userguide.html

bottleneck is most likely your code in DLR-url parsing script not the
kannel itself.

try testing with different conditions:

1) without DLR reports at all
2) with DLR but without your url hit
3) with DLR and your URL

Also, you might want to consider switching over to sqlbox, so you won't
need to drag web-server each time report comes.



 thinx again for the help



 - Mail Original -
 De: DHC Admin dhcad...@gmail.com
 À: Ahmed BOUDHRAA ahmed.boudh...@inbmi.edunet.tn
 Cc: users@kannel.org
 Envoyé: Lundi 9 Juin 2014 13:50:46
 Objet: Re: Tunning up kannel


 Hi Ahmed
 Have you tweaked the smsbox-max-pending and/or max-pending-requests?
 Check for them on the user guide


 On Wed, Jun 4, 2014 at 11:33 AM, Ahmed BOUDHRAA 
 ahmed.boudh...@inbmi.edunet.tn wrote:

 Hi
 we are using kannel about 2 years in our institution and its woriking
 like a charm. we have high load traffic with 3 operators with 3 kannel
 gatways, our configuration is like this:

 - kannel 1 : Operator 1 : VM 2 x CPU 3 Ghz  8 Go Ram
 - kannel 2 : Operator 2 : VM 2 x CPU 3 Ghz  8 Go Ram
 - kannel 3 : Operator 3 : VM 2 x CPU 3 Ghz  8 Go Ram
 - Web Portal: for all kannel : VM 8 x CPU 3 Ghz 32 Go RAM
 - Postgres Database behind the web server : VM 8 x CPU 3 Ghz 32 Go RAM

 All those server are running under ESXi hypervisor in SAN environnement.
 Any way we are tunning all the plateform with several tools ( ApacheBench
 for web load and fakesms for kannel)
 we want to profit of all the hardware ressources with optimizing all
 componenents to reach the limits of the hardware, but still are still far
 behind the real capability of the hardware.
 The fact is we have reached 800 sms /s with the operators and its fine,
 but we want more not that we need it right now but just to master how every
 things work...
 The WEB/DB side tunning is well done due to fact that we have
 mastered it in our webs servers but the kannel side is litle different.
 with fakesms we are sending about 1000 sms / s from each kannel so we want
 to manage 3000 sms / s in our portal  but all the kannel dosent send them
 with the speed we want even if they are not even litle solicited, we
 noticed that the bottle neck is between the smsbox and the bearerbox we
 dont know exactly but all 1000 sms arrive instantelly to the bearerbox in
 each kannel and a queue is formed between the bearerbox and smsbox, the
 smsbox send to the web server ( the portal ) about 1200 request / s wich is
 far from his limit ( we have tunning it to manage 3500 request / s ) I ve
 talked a lot but the main question is how we remove that so called queue
 smsbox/bearebox? to make the kannels send more than 1200 request/s so we
 can reach the limits in all the equippements all the system is running far
 behind his capabilitys.
 thinx for the help





Re: submit_sm to same recipeint

2014-06-09 Thread spameden
2014-06-09 17:38 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 SMSC can identify it as a spam attempt, since spam analysis is one of the
 first things to activate before the message is handed over for delivery. I
 don't think kannel causes any problem in this.

 Do remember the buffer limit for each individual number is around 30 or 50
 at one time. You might be breaching that as well, after which SMSC is bound
 to throw error.


 On Fri, May 23, 2014 at 12:21 PM, [Digital^Dude] ® 
 millennium@gmail.com wrote:

 Hello,

 Is there any possibility that kannel gw fails a burst of submit_sm when
 the recipient address is the same?


might be filtering issue at your SMSC provider.


Re: call handling in kannel

2014-06-09 Thread ha...@aeon.pk
Kannel cannot handle calls. It's the AT command which is only displaying
the modem status. You cannot really make kannel identify the incoming call
data and then take any action on it, in simple form.


On Tue, Jun 3, 2014 at 10:16 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi

 As told before, you need to configure your modem for this. Check  AT+CLI
 comand

 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 Tue, Jun 3, 2014 at 12:09 PM, Alok Srivastava alok...@gmail.com
 wrote:
  yes
  getting an entry in modem log(ttyUSB1.log) of kannel like
 
  2014-06-04 10:35:49 [32020] [7] DEBUG: AT2[ttyUSB1]: -- RING
  2014-06-04 10:35:49 [32020] [7] DEBUG: AT2[ttyUSB1]: -- ATH0^M
  2014-06-04 10:35:49 [32020] [7] DEBUG: AT2[ttyUSB1]: -- OK
 
  But not getting incoming call number..
 
  regards
  abhi
 
 
  On Tue, Jun 3, 2014 at 9:23 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 
  wrote:
 
  Hi
 
  Check your modem log --in debug mode--. If call hits your modem you
  should see at least one ring entry. Note that there is an AT command
  to tell the modem to drop any incoming call at the first ring... sorry
  didn't remember which... getting to my 50ties :)
 
  It might also be that your SIM (operator configuration) does not allow
  voice calls. Try moving sim to a standard phone a test calling from
  /to that device and/or talk to your operator to see if voice calls are
  allowed on your sim.
 
  You can also try the opposite: Put the working sim from your phone to
  the modem and try to call it.
 
  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 Tue, Jun 3, 2014 at 10:28 AM, Alok Srivastava alok...@gmail.com
  wrote:
   thanks Alvaro for ur help, actually i was not saying ring on modem,
   i was not listening any ring on my mobile when i m calling any number
 of
   modem.
   when i call a number of modem from my mobile no, it just cut off the
   phone.
   when i stop kannel, ring goes properly
   i want call can also be handled with kannel.but problem is
   that
   call is not going on modem's number
when kannel is running.
  
   Regards
   Abhi
  
  
   On Tue, Jun 3, 2014 at 7:18 PM, Alvaro Cornejo
   cornejo.alv...@gmail.com
   wrote:
  
   Hi
  
   Modems usually does not have speakers; therefore you will not hear
 any
   ring; however if you have your logs in debug mode, you will see a
   ring entry on it. You might also need to set your modem to verbose
   messages (AT+CMEE). Also, if you want to 'see' the caller number
 along
   the 'ring' entry, you need to enable that in modem configuration. I
   think command AT+CLI is the one does that. You need to add it to
 modem
   init config. Check AT command set info for details.
  
   As for receiving a sms with the caller information, kannel does not
 do
   it. You can patch it in order to do that or you can parse kannel log
   in order to get that information and send the sms.
  
   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 Tue, Jun 3, 2014 at 4:22 AM, Alok Srivastava alok...@gmail.com
   wrote:
Actually not getting any ring when try to calling on numbers of
modem.
   
Regards
   
   
On Tue, Jun 3, 2014 at 2:47 PM, Alok Srivastava alok...@gmail.com
 
wrote:
   
Dear list
   
Plz help
i am using wavecom 16 port modem for incoming messages, using
 sqlbox
getting messages properly, but there is a requirement if somebody
calling on
numbers of modem i want a sms message on my mobile that incoming
call
from
this number 91XX.
Is it Possible.
Please Help
   
Regards
Abhi
   
   
  
  
 
 




Re: Messages count for SMSC

2014-06-09 Thread ha...@aeon.pk
'Grep' the date, message status (Sent) and then SMSC id in the access.log
file from Linux command prompt.

Alternatively, you can run MySQL query over sentsms table if you are using
sqlbox (which is the best way).


On Sun, Jun 1, 2014 at 1:22 PM, Ali Kashif syedalikas...@gmail.com wrote:

 Dear Users,

 I have multiple SMSCs connected, and Kannel is doing some prefix based
 routing of messages,

 At end of month i need to count how many messages has been sent from each
 SMSc,

 I can see the access.log for kannel and there is

 2014-06-01 08:04:59 Sent SMS [SMSC:nahsms]

 i was thinking if i can add a mysql query in place where the above log is
 being writen,
 which just update number in mysql table against SMSC,


 Can anyone me tell me which file i should look and modify.


 and Will that be a good idea, considering that i am sending 100,000 SMS
 per day.


 Thanks
 Ali



Re: carrier retries on SMPP bind

2014-06-09 Thread ha...@aeon.pk
You need to tweak your window size, on your side as well as operator side.
This parameter controls the ACK of the messages exchanged between SMSC and
your kannel client.


On Mon, May 26, 2014 at 9:29 PM, Beck, Stuart (ADE-MNT) 
stuart.b...@mnetmobile.com wrote:

  Hi All,

 I've recently encountered a problem with our SMPP binds to one of our
 carriers That I'm wondering if anyone can help me with.

 during a period of higher than usual requests to one of our services we
 started getting reports that multiple MT's were being received at the
 handsets.  During the investigation it was determined that the carrier was
 sending multiple MO requests to us in the belief that we had not received
 the original requests.

 Further:

- The carrier was expecting submit_sm_resp messages back from
submit_sm requests within (carrier defined) 13 seconds.  The carrier will
not be adjusting this timeout.
- Our Kannel gateway was sending the submit_sm_resp messages but not
necessarily within the 13 second carrier specified timeout, at which point
the carrier retries the request.
- more legitimate MO's combining with the retried MO's being delayed
just caused the problem to snowball.


 As part of the process to avoid this in future, I have upgraded Kannel,
 and installed it on a faster box. Now however It is reported that the
 problem is here again.

 The new server is running kannel trunk from SVN as of May 8, running on
 Solaris 11.1 with a few modifications to allow it to build.
 Our carrier configuration is as follows: we have 3 binds with the
 following configuration

 group = smsc
 smsc = smpp
 smsc-id = smscgroup
 host = aa.bb.cc.dd
 #port = 2775 # disabled, this is a receive bind only
 receive-port = 2775
 transceiver-mode = false
 interface-version = 34
 smsc-username = XXX
 smsc-password = XXX
 system-type = smpp
 address-range = 0
 source-addr-ton = 0
 source-addr-npi = 4
 dest-addr-ton = 1
 dest-addr-npi = 1
 alt-charset=ASCII
 enquire-link-interval = 30
 allowed-smsc-id = smscgroup
 msg-id-type = 0x01
 log-file = /data/kannel/log/bearer-smscgroupX.log
 log-level = 1
 reconnect-delay = 170

 I have tried googling around to see if there is anything I might want to
 have a look at but have not had much success.
 max-pending-submits, wait-ack, wait-ack-expire - all seem to operate on
 outbound MTs so I am unsure where to go from here.

 I will be enabling debug logging when I am back in the office, however I
 like to find out if anyone else has had any experience of this behavior.
 Any suggestions as to anything I could do to force our gateway to present
 the submit_sm_resp messages within the required timeframe or things I could
 do to help my configuration in general

 Stuart.
 --
 Stuart Beck




Re: Kannel store-type question

2014-06-09 Thread ha...@aeon.pk
It stores both MT and MO. MT in case it is unable to forward to SMSC/modem,
and MO if it is unable to find a service in smsbox configuration (or if
smsbox is not connected).


On Fri, May 9, 2014 at 8:33 AM, Hanh Le Bich hanhmi...@gmail.com wrote:

 Hi list,
 I running kannel with store-type = file.
 As i gather from manual docs, kannel store the MT messages only. But what
 i'm seeing at store-status there are a lot of MO messages stored as Type
 field marked is MO. Why?

 Regards, Hanh.



Re: I am unable to connect my Kannel to SMSC

2014-06-09 Thread ha...@aeon.pk
Post the error logs.


On Mon, Apr 28, 2014 at 3:04 PM, Rene Kluwen rene.klu...@chimit.nl wrote:

 Read the users guide at
 http://www.kannel.org/download/1.5.0/userguide-1.5.0/userguide.html





 *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Anil Singh
 Bafila
 *Sent:* zondag 27 april 2014 11:26
 *To:* users
 *Subject:* I am unable to connect my Kannel to SMSC



 I am unable to connect my Kannel to SMSC. through smpp prtocall

 Can any one provide me links refrence to sample kannel.conf  for
 connecting to SMSC.

 I am using centos 6.5

 I installed kannel using yum install kannel

 .I used this reference material for installing only Kannel
 http://inuits.eu/blog/sms-server-using-centos-kannel-and-playsms





 Please provide some use full links for configuring and managing SMPP
 protocall.

 I have already gone through user and architecture guide and all material
 on kannel.org

 Thanks

 [image: Image removed by sender.]



 --

 Regards

 Anil Singh Bafila

 Institute of Informatics  Communication
 University of Delhi South Campus



 --

 Anil Singh Bafila

 Institute of Informatics  Communication
 University of Delhi South Campus





Message identifier for returning DLR

2014-06-09 Thread ha...@aeon.pk
Hi,

I'm trying to use foreign_id field in sendsms table to mark the outgoing
message for DLR matching in return, however it's not working since kannel
puts its own FID every time.

How to put message identifier in kannel logs to track the message for
returning DLRs? I mean, which field to use?

Regards,
Hamza


Re: Number(s) has/have been denied by white- and/or black-lists.

2014-06-09 Thread Alvaro Cornejo
Hi Mohammad

You need to know how to encrypt/decrypt those numbers in order to be
able send/receive messages to those numbers.

It has no sense to send encrypted information to a partner but didn't
tell him how to decrypt it? He will never be able to know the
information you sent him. Encryption is used to avoid a 3rd party to
see data content.

How are you supposed to bill your customer or send him a message or
know who is sending you a message if you don't know who the message
belongs to?. The MUST tell you how to do it.

About allowing kannel to handle encrypted numbers... you can develop a
patch for that.

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 Sun, Jun 8, 2014 at 5:11 AM, Mohammad Abu Karim mabuka...@gmail.com wrote:
 Dear Otandeka,

 Thanks for your reply,

 I have asked the operator before submitting to the Kannel Users, and What
 they said is develop your gateway to handle sending to alias/encrypted
 number.

 Is there any way to make kannel to accept the alias/encrypted msisdn's
 instead of the pain text msisdn.

 Advice please


 On Sat, Jun 7, 2014 at 8:40 PM, Otandeka Simon Peter sotand...@gmail.com
 wrote:

 The problem is from your provider. Kannel recognizes numbers and not
 alphabetic letters.

 On Jun 7, 2014 6:43 PM, Mohammad Abu Karim mabuka...@gmail.com wrote:

 Hello,

 Can I get help on the below problem which I am facing?

 Advice please


 On Wed, Jun 4, 2014 at 5:44 PM, Mohammad Abu Karim mabuka...@gmail.com
 wrote:

 Dears,

 I have recently installed Kannel 1.5.0

 The operator forward the SMPP Mo traffic to my side, but the MSISDNs
 coming encrypted like: AAEAADW0AAq4BweYJXU=

 When I am trying send SMS to the above MSISDN:  AAEAADW0AAq4BweYJXU=


 http://host:port/cgi-bin/sendsms?username=userpassword=pppcharset=UTF-8coding=2to=AAEAADW0AAq4BweYJXU=text=text+messagefrom=12345smsc=UMNIAH

 Or


 http://host:port/cgi-bin/sendsms?username=userpassword=pppcharset=UTF-8coding=2to=AAEAADW0AAq4BweYJXU%3dtext=text+messagefrom=12345smsc=UMNIAH

 I am getting the below message:

 Number(s) has/have been denied by white- and/or black-lists.

 Advice please How I can make kannel to send message to the above
 encrypted MSISDN?

 The below my kannel conf:

 group = core
 admin-port = 13000
 smsbox-port = 13001
 admin-password = user
 status-password = ppp
 #admin-deny-ip = 
 admin-allow-ip = localhost
 log-file = /var/log/kannel.log
 log-level = 0
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 #unified-prefix = +358,00358,0;+,00
 access-log = /var/log/kannel-access.log
 #store-file = kannel.store
 #ssl-server-cert-file = cert.pem
 #ssl-server-key-file = key.pem
 #ssl-certkey-file = mycertandprivkeyfile.pem
 #dlr-storage = internal
 dlr-storage = mysql
 sms-resend-freq = 10
 sms-resend-retry = 0
 sms-combine-concatenated-mo = 1

 group = mysql-connection
 id = dlr-db
 host = localhost
 username = root
 password = ass
 database = mo
 max-connections = 20

 group = dlr-db
 id = dlr-db
 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

 group = smsc
 smsc = smpp
 smsc-id = UMNIAH_CONN
 host = 10.1.4.6
 port = 2345
 receive-port = 2345
 #transceiver-mode = 1
 smsc-username = username
 smsc-password = 12345
 keepalive = 10
 enquire-link-interval = 10
 system-type = smpp
 allowed-smsc-id = UMNIAH_CONN
 interface-version = 34
 address-range = 
 reconnect-delay = 10
 source-addr-ton = 5
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 bind-addr-ton = 0
 bind-addr-npi = 0
 msg-id-type = 0x00
 log-file = /var/log/umniah_smpp.log


 group = smsbox
 bearerbox-host = 127.0.0.1
 sendsms-port = 13013
 sendsms-chars = 0123456789 +-ABCDEFGHIJKLMNOPQRSTUVWXYZ
 abcdefghijklmnopqrstuvwxyz /()*...@#¤%{}£$
 log-file = /var/log/smsbox.log
 log-level = 0
 access-log = /var/log/smsbox-access.log
 mo-recode = 1

 group = sendsms-user
 username = tester
 password = foobar
 max-messages = 6
 concatenation = true


 group = sms-service
 keyword = default

 get-url =
 http://localhost/catch.php?org_sms=%bmsisdn=%pshortcode=%Psmpp_conn=%icoding=%cudh=%uorg_smsc=%fcharset=%C;

 omit-empty = true
 max-messages = 10
 concatenation = 1


 Waiting your kind help

 Regards

 --

 Regards




 --

 Thank You  Best Regards,





 --

 Thank You  Best Regards,





Re: Tunning up kannel

2014-06-09 Thread DHC Admin
Because you were talking about very high number, I have assumed it was a MO
rate, and not MT rate. What is your MT throughput?


On Mon, Jun 9, 2014 at 10:40 AM, spameden spame...@gmail.com wrote:




 2014-06-09 17:08 GMT+04:00 Ahmed BOUDHRAA ahmed.boudh...@inbmi.edunet.tn
 :

 HI
 thx for the relpay i was wondering if someone will help :)
 the fact is that we tunned the max-pending-requests and we ve concluded
 that about 800 is the best value and if we go up the results go worst, but
 the smsbox-max-pending we havent added such parametre; can you please
 explain it, is it, the smsbox-max-pending, is the queue between the smsbox
 and our portal?


 I can't imagine why do you need such high rate of sending MT messages for
 university unless you're spamming your students every second ..

 The speed also very much depends on your SMSC upstream providers, network
 link between you and them, TCP RTT (re-transmissions), etc.

 The general settings for throughput between you and smsc are:

 1) throughput -- limits MT/sec
 2) max-pending-submits -- unofficial parameter, controls how many
 outstanding operations between you and SMSC (e.g. unacknowledged
 submit_sm packets)

 Try tuning these two parameters to get maximum of your upstream SMSC. Do
 it carefully to not get THROTTLED errors or MAX_QUEUE errors. Consulting
 your provider is highly recommended.





 if i make it more simple:

 what is the difference between the tow variable that you gived to us : 
 smsbox-max-pending
 and max-pending-requests ? and where are they placed, i mean if there is
 tow pending queue, i think one is in front of the bearerbox ( can i assume
 it is the max-pending-requests ?) and one between the bearerbox and the
 smsbox ? ( should it be the smsbox-max-pending ???) if my assumption are
 right i could be the bottleneck coz we havent touch such parametre, and if
 so the default value is about how much?


 check user-guide, it's available on the WEB:
 http://kannel.org/download/kannel-userguide-snapshot/userguide.html

 bottleneck is most likely your code in DLR-url parsing script not the
 kannel itself.

 try testing with different conditions:

 1) without DLR reports at all
 2) with DLR but without your url hit
 3) with DLR and your URL

 Also, you might want to consider switching over to sqlbox, so you won't
 need to drag web-server each time report comes.



 thinx again for the help



 - Mail Original -
 De: DHC Admin dhcad...@gmail.com
 À: Ahmed BOUDHRAA ahmed.boudh...@inbmi.edunet.tn
 Cc: users@kannel.org
 Envoyé: Lundi 9 Juin 2014 13:50:46
 Objet: Re: Tunning up kannel


 Hi Ahmed
 Have you tweaked the smsbox-max-pending and/or max-pending-requests?
 Check for them on the user guide


 On Wed, Jun 4, 2014 at 11:33 AM, Ahmed BOUDHRAA 
 ahmed.boudh...@inbmi.edunet.tn wrote:

 Hi
 we are using kannel about 2 years in our institution and its woriking
 like a charm. we have high load traffic with 3 operators with 3 kannel
 gatways, our configuration is like this:

 - kannel 1 : Operator 1 : VM 2 x CPU 3 Ghz  8 Go Ram
 - kannel 2 : Operator 2 : VM 2 x CPU 3 Ghz  8 Go Ram
 - kannel 3 : Operator 3 : VM 2 x CPU 3 Ghz  8 Go Ram
 - Web Portal: for all kannel : VM 8 x CPU 3 Ghz 32 Go RAM
 - Postgres Database behind the web server : VM 8 x CPU 3 Ghz 32 Go RAM

 All those server are running under ESXi hypervisor in SAN environnement.
 Any way we are tunning all the plateform with several tools ( ApacheBench
 for web load and fakesms for kannel)
 we want to profit of all the hardware ressources with optimizing all
 componenents to reach the limits of the hardware, but still are still far
 behind the real capability of the hardware.
 The fact is we have reached 800 sms /s with the operators and its fine,
 but we want more not that we need it right now but just to master how every
 things work...
 The WEB/DB side tunning is well done due to fact that we have
 mastered it in our webs servers but the kannel side is litle different.
 with fakesms we are sending about 1000 sms / s from each kannel so we want
 to manage 3000 sms / s in our portal  but all the kannel dosent send them
 with the speed we want even if they are not even litle solicited, we
 noticed that the bottle neck is between the smsbox and the bearerbox we
 dont know exactly but all 1000 sms arrive instantelly to the bearerbox in
 each kannel and a queue is formed between the bearerbox and smsbox, the
 smsbox send to the web server ( the portal ) about 1200 request / s wich is
 far from his limit ( we have tunning it to manage 3500 request / s ) I ve
 talked a lot but the main question is how we remove that so called queue
 smsbox/bearebox? to make the kannels send more than 1200 request/s so we
 can reach the limits in all the equippements all the system is running far
 behind his capabilitys.
 thinx for the help






Re: Number(s) has/have been denied by white- and/or black-lists.

2014-06-09 Thread ha...@aeon.pk
It's a stupid implementation by your operator to implement privacy
middleware. If they are scrambling real number, at least let the recipient
number be in number format, even scrambled. Not only kannel, but almost all
SMS gateways will NOT allow you to send messages to alphanumerics. Ask them
to recommend a gateway to send SMS, and don't let them say 'Write your own'.


On Mon, Jun 9, 2014 at 7:07 PM, Alvaro Cornejo cornejo.alv...@gmail.com
wrote:

 Hi Mohammad

 You need to know how to encrypt/decrypt those numbers in order to be
 able send/receive messages to those numbers.

 It has no sense to send encrypted information to a partner but didn't
 tell him how to decrypt it? He will never be able to know the
 information you sent him. Encryption is used to avoid a 3rd party to
 see data content.

 How are you supposed to bill your customer or send him a message or
 know who is sending you a message if you don't know who the message
 belongs to?. The MUST tell you how to do it.

 About allowing kannel to handle encrypted numbers... you can develop a
 patch for that.

 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 Sun, Jun 8, 2014 at 5:11 AM, Mohammad Abu Karim mabuka...@gmail.com
 wrote:
  Dear Otandeka,
 
  Thanks for your reply,
 
  I have asked the operator before submitting to the Kannel Users, and What
  they said is develop your gateway to handle sending to alias/encrypted
  number.
 
  Is there any way to make kannel to accept the alias/encrypted msisdn's
  instead of the pain text msisdn.
 
  Advice please
 
 
  On Sat, Jun 7, 2014 at 8:40 PM, Otandeka Simon Peter 
 sotand...@gmail.com
  wrote:
 
  The problem is from your provider. Kannel recognizes numbers and not
  alphabetic letters.
 
  On Jun 7, 2014 6:43 PM, Mohammad Abu Karim mabuka...@gmail.com
 wrote:
 
  Hello,
 
  Can I get help on the below problem which I am facing?
 
  Advice please
 
 
  On Wed, Jun 4, 2014 at 5:44 PM, Mohammad Abu Karim 
 mabuka...@gmail.com
  wrote:
 
  Dears,
 
  I have recently installed Kannel 1.5.0
 
  The operator forward the SMPP Mo traffic to my side, but the MSISDNs
  coming encrypted like: AAEAADW0AAq4BweYJXU=
 
  When I am trying send SMS to the above MSISDN:  AAEAADW0AAq4BweYJXU=
 
 
  http://host:port
 /cgi-bin/sendsms?username=userpassword=pppcharset=UTF-8coding=2to=AAEAADW0AAq4BweYJXU=text=text+messagefrom=12345smsc=UMNIAH
 
  Or
 
 
  http://host:port
 /cgi-bin/sendsms?username=userpassword=pppcharset=UTF-8coding=2to=AAEAADW0AAq4BweYJXU%3dtext=text+messagefrom=12345smsc=UMNIAH
 
  I am getting the below message:
 
  Number(s) has/have been denied by white- and/or black-lists.
 
  Advice please How I can make kannel to send message to the above
  encrypted MSISDN?
 
  The below my kannel conf:
 
  group = core
  admin-port = 13000
  smsbox-port = 13001
  admin-password = user
  status-password = ppp
  #admin-deny-ip = 
  admin-allow-ip = localhost
  log-file = /var/log/kannel.log
  log-level = 0
  box-deny-ip = *.*.*.*
  box-allow-ip = 127.0.0.1
  #unified-prefix = +358,00358,0;+,00
  access-log = /var/log/kannel-access.log
  #store-file = kannel.store
  #ssl-server-cert-file = cert.pem
  #ssl-server-key-file = key.pem
  #ssl-certkey-file = mycertandprivkeyfile.pem
  #dlr-storage = internal
  dlr-storage = mysql
  sms-resend-freq = 10
  sms-resend-retry = 0
  sms-combine-concatenated-mo = 1
 
  group = mysql-connection
  id = dlr-db
  host = localhost
  username = root
  password = ass
  database = mo
  max-connections = 20
 
  group = dlr-db
  id = dlr-db
  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
 
  group = smsc
  smsc = smpp
  smsc-id = UMNIAH_CONN
  host = 10.1.4.6
  port = 2345
  receive-port = 2345
  #transceiver-mode = 1
  smsc-username = username
  smsc-password = 12345
  keepalive = 10
  enquire-link-interval = 10
  system-type = smpp
  allowed-smsc-id = UMNIAH_CONN
  interface-version = 34
  address-range = 
  reconnect-delay = 10
  source-addr-ton = 5
  source-addr-npi = 1
  dest-addr-ton = 1
  dest-addr-npi = 1
  bind-addr-ton = 0
  bind-addr-npi = 0
  msg-id-type = 0x00
  log-file = /var/log/umniah_smpp.log
 
 
  group = smsbox
  bearerbox-host = 127.0.0.1
  sendsms-port = 13013
  sendsms-chars = 0123456789 +-ABCDEFGHIJKLMNOPQRSTUVWXYZ
  abcdefghijklmnopqrstuvwxyz /()*...@#¤%{}£$
  log-file = /var/log/smsbox.log
  log-level = 0
  access-log = /var/log/smsbox-access.log
  mo-recode = 1
 
  group = sendsms-user
  username = tester
  password = foobar
  max-messages = 6
  concatenation = 

Re: CANT SEND MESSAGES OUT, I DONT KNOW WHICH FILE TO GIVE PERMISSION

2014-06-09 Thread spameden
2014-06-07 22:26 GMT+04:00 Ayubu Lulesu alul...@gmail.com:

 Dear friends, i have been struggling without success to send sms to users
 phone from my system. some people said that i have to grant permission to
 user kannel to access the file. My problem is:
 1. I dont know how to give the permission to that user (kannel)
 2. i dont know which file i should give permission to kannel.

 when i try to send the sms i get the following error, please help me :'(

 *Warning:
 file(http://localhost:13013/cgi-bin/sendsms?username=ayubupassword=lulesuto=0769261977text=secret+number+is+roll
 http://localhost:13013/cgi-bin/sendsms?username=ayubupassword=lulesuto=0769261977text=secret+number+is+roll):
 failed to open stream: Connection refused
 in/var/www/html/booking-final/mail.php on line 3*


It clearly says *Connection Refused*.

Which means kannel's web-server is not working properly, check logs of
bearerbox.log and smsbox.log, try starting bearerbox/smsbox from console to
see output if you're not sure where to look for logs.


Re: Messages count for SMSC

2014-06-09 Thread spameden
2014-06-09 17:46 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 'Grep' the date, message status (Sent) and then SMSC id in the access.log
 file from Linux command prompt.

 Alternatively, you can run MySQL query over sentsms table if you are using
 sqlbox (which is the best way).


 On Sun, Jun 1, 2014 at 1:22 PM, Ali Kashif syedalikas...@gmail.com
 wrote:

 Dear Users,

 I have multiple SMSCs connected, and Kannel is doing some prefix based
 routing of messages,

 At end of month i need to count how many messages has been sent from each
 SMSc,

 I can see the access.log for kannel and there is

 2014-06-01 08:04:59 Sent SMS [SMSC:nahsms]

 i was thinking if i can add a mysql query in place where the above log is
 being writen,
 which just update number in mysql table against SMSC,


 Can anyone me tell me which file i should look and modify.


 and Will that be a good idea, considering that i am sending 100,000 SMS
 per day.


Check sqlbox it might suit all your needs if you tweak it a bit.




 Thanks
 Ali





Re: Kannel store-type question

2014-06-09 Thread spameden
2014-05-09 7:33 GMT+04:00 Hanh Le Bich hanhmi...@gmail.com:

 Hi list,
 I running kannel with store-type = file.
 As i gather from manual docs, kannel store the MT messages only. But what
 i'm seeing at store-status there are a lot of MO messages stored as Type
 field marked is MO. Why?

 Regards, Hanh.


store-type is used to store temporary messages for bearerbox to process to.

MT/MO/DLR stored there.

difference between store-type = file and store-type = spool is: in first
case you store message-data in 1 special file whilst in second - you store
message-data in separate files.


Re: Message identifier for returning DLR

2014-06-09 Thread ha...@aeon.pk
Isn't dlr-url fixed for all messages in kannel config? How will I set
different identifier for different messages in it?


On Mon, Jun 9, 2014 at 7:46 PM, spameden spame...@gmail.com wrote:




 2014-06-09 18:00 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Hi,

 I'm trying to use foreign_id field in sendsms table to mark the outgoing
 message for DLR matching in return, however it's not working since kannel
 puts its own FID every time.

 How to put message identifier in kannel logs to track the message for
 returning DLRs? I mean, which field to use?

 Regards,
 Hamza


 use dlr_url field.




Re: Tunning up kannel

2014-06-09 Thread Ahmed BOUDHRAA
Thinx spameden 


Our plateform is made for publishing mainlly baccalaureate results, and tow 
other grades this is the main use right now, all those are about 240 000 
canditates the fact is they may look like not much, but its a very important 
event that every parents/student attends the problematic its not about the 
nember but about the ammount of incoming/outgoing sms in a short time, last 
year we have reached the 800 sms /s in the operator side so you can imagine how 
it could be stressfull for us / the operators / the parents-students we cant 
allow any unavalability or too much wait, you can add to that that our 
plateform will do other things in the future :) 


for the throughput between as and the operators we fixied it in accordance with 
them every operator have specific capabilities but as i said our plateform can 
manage them at ease, what we want is to prepare our self, and to understand all 
the possible problem/solutions that we may have in using kannel. 


For the web server side, i cant assure that he is far from his real 
capabilities we are using RHEL web servers from long now. for the current 
configuration our web server can serve about 4000 requests / s i ll try below 
to describe a simple test we made usining fakesms: 


We are launching this test from our 3 kannel server simultanisouly : 


./fakesmsc -i 0.001 -m 1 100 200 text test 00* == this mean 
about 1000 sms /s from each kannel technically we could say that our portal 
should manage 3000 sms / s 


when we llaunch the test we can see on the kannel status in the box connections 
rubrique the Queued (MO) started 1 x 3 and it take about 5 minutes to 
empty the three queue now what we want to understand is how the viewed queue is 
empty, the web server is far from his treatement capabilities and still 
messages are comming about 1-2 sms /s after about 15000 have reached the 
database. I dont know if i m clear normally when the queue is empty we have to 
have 3 sms on the database side, wich mean there is another queue somewhere 
else 




this is our smskannel.conf : we are not using dlr nor internal storage: 







group = core 
admin-port = 13000 
smsbox-port = 2776 
admin-password = 123456 
box-deny-ip = *.*.*.* 
box-allow-ip = 127.0.0.1 
log-file = /var/log/kannel/kannel.log 
log-level = 0 
access-log = /var/log/kannel/access_kannel.log 
access-log-clean = true 
access-log-format= SMS %t %l %i %p %P %b %F %I %k 
store-file =/var/log/kannel/sms.store 
dlr-storage = internal 
store-dump-freq = 5 
sms-resend-freq = 60 
sms-resend-retry = -1 




#- 
# SMSC CONNECTIONS 
# 
# SMSC connections are created in bearerbox and they handle SMSC specific 
# protocol and message relying. You need these to actually receive and send 
# messages to handset, but can use GSM modems as virtual SMSCs 




group = smsc 
smsc = fake 
smsc-id = fake 
port = 1 








group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt1.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
interface-version = 34 
preferred-smsc-id = TT 




group = smsc 
smsc = smpp 
smsc-id = TT 


host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt2.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
#service-type = 'test' 
interface-version = 34 
preferred-smsc-id = TT 


group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt3.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
interface-version = 34 
preferred-smsc-id = TT 



group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt4.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
interface-version = 34 
preferred-smsc-id = TT 



group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt5.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
interface-version = 34 
preferred-smsc-id = TT 



group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt6.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
interface-version = 34 
preferred-smsc-id = TT 



group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 
port =  
log-file = /var/log/kannel/tt7.log 
log-level = 0 
transceiver-mode = 1 
receive-port =  
smsc-username = user 
smsc-password = pass 
system-type = 'VMA' 
interface-version = 34 
preferred-smsc-id = TT 



group = smsc 
smsc = smpp 
smsc-id = TT 
host = x.x.x.x 

Re: Message identifier for returning DLR

2014-06-09 Thread spameden
2014-06-09 18:58 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Isn't dlr-url fixed for all messages in kannel config? How will I set
 different identifier for different messages in it?


Config sets only default dlr_url for all messages (if you don't specify
your own).

You can set dlr_url in sqlbox source code dynamically (TIP: use time/date
nanoseconds to generate it) and link to DLR messages through this field.

This is the only field which is being saved when DLR comes.




 On Mon, Jun 9, 2014 at 7:46 PM, spameden spame...@gmail.com wrote:




 2014-06-09 18:00 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Hi,

 I'm trying to use foreign_id field in sendsms table to mark the outgoing
 message for DLR matching in return, however it's not working since kannel
 puts its own FID every time.

 How to put message identifier in kannel logs to track the message for
 returning DLRs? I mean, which field to use?

 Regards,
 Hamza


 use dlr_url field.





Re: call handling in kannel

2014-06-09 Thread Alvaro Cornejo
Hi

The best solution might be to configure call forwarding on the line,
forwarding calls to an invalid number, or to one that someone will
take the call.

As for kannel, you can only monitor the Caller ID adding the command
AT+CLIP=1 on your init string.

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, Jun 9, 2014 at 8:43 AM, ha...@aeon.pk ha...@aeon.pk wrote:
 Kannel cannot handle calls. It's the AT command which is only displaying the
 modem status. You cannot really make kannel identify the incoming call data
 and then take any action on it, in simple form.


 On Tue, Jun 3, 2014 at 10:16 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 As told before, you need to configure your modem for this. Check  AT+CLI
 comand

 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 Tue, Jun 3, 2014 at 12:09 PM, Alok Srivastava alok...@gmail.com
 wrote:
  yes
  getting an entry in modem log(ttyUSB1.log) of kannel like
 
  2014-06-04 10:35:49 [32020] [7] DEBUG: AT2[ttyUSB1]: -- RING
  2014-06-04 10:35:49 [32020] [7] DEBUG: AT2[ttyUSB1]: -- ATH0^M
  2014-06-04 10:35:49 [32020] [7] DEBUG: AT2[ttyUSB1]: -- OK
 
  But not getting incoming call number..
 
  regards
  abhi
 
 
  On Tue, Jun 3, 2014 at 9:23 PM, Alvaro Cornejo
  cornejo.alv...@gmail.com
  wrote:
 
  Hi
 
  Check your modem log --in debug mode--. If call hits your modem you
  should see at least one ring entry. Note that there is an AT command
  to tell the modem to drop any incoming call at the first ring... sorry
  didn't remember which... getting to my 50ties :)
 
  It might also be that your SIM (operator configuration) does not allow
  voice calls. Try moving sim to a standard phone a test calling from
  /to that device and/or talk to your operator to see if voice calls are
  allowed on your sim.
 
  You can also try the opposite: Put the working sim from your phone to
  the modem and try to call it.
 
  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 Tue, Jun 3, 2014 at 10:28 AM, Alok Srivastava alok...@gmail.com
  wrote:
   thanks Alvaro for ur help, actually i was not saying ring on modem,
   i was not listening any ring on my mobile when i m calling any number
   of
   modem.
   when i call a number of modem from my mobile no, it just cut off the
   phone.
   when i stop kannel, ring goes properly
   i want call can also be handled with kannel.but problem
   is
   that
   call is not going on modem's number
when kannel is running.
  
   Regards
   Abhi
  
  
   On Tue, Jun 3, 2014 at 7:18 PM, Alvaro Cornejo
   cornejo.alv...@gmail.com
   wrote:
  
   Hi
  
   Modems usually does not have speakers; therefore you will not hear
   any
   ring; however if you have your logs in debug mode, you will see a
   ring entry on it. You might also need to set your modem to verbose
   messages (AT+CMEE). Also, if you want to 'see' the caller number
   along
   the 'ring' entry, you need to enable that in modem configuration. I
   think command AT+CLI is the one does that. You need to add it to
   modem
   init config. Check AT command set info for details.
  
   As for receiving a sms with the caller information, kannel does not
   do
   it. You can patch it in order to do that or you can parse kannel log
   in order to get that information and send the sms.
  
   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 Tue, Jun 3, 2014 at 4:22 AM, Alok Srivastava alok...@gmail.com
   wrote:
Actually not getting any ring when try to calling on numbers of
modem.
   
Regards
   
   
On Tue, Jun 3, 2014 at 2:47 PM, Alok Srivastava
alok...@gmail.com
wrote:
   
Dear list
   
Plz help
i am 

Re: CANT SEND MESSAGES OUT, I DONT KNOW WHICH FILE TO GIVE PERMISSION

2014-06-09 Thread Alvaro Cornejo
What do you get if you do enter

http://localhost:13013/cgi-bin/sendsms?username=ayubupassword=lulesuto=0769261977text=secret+number+is+roll

in a web browser on your localhost?

Check ports on your config file

Regards
|-|
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, Jun 9, 2014 at 9:41 AM, spameden spame...@gmail.com wrote:



 2014-06-07 22:26 GMT+04:00 Ayubu Lulesu alul...@gmail.com:

 Dear friends, i have been struggling without success to send sms to users
 phone from my system. some people said that i have to grant permission to
 user kannel to access the file. My problem is:
 1. I dont know how to give the permission to that user (kannel)
 2. i dont know which file i should give permission to kannel.

 when i try to send the sms i get the following error, please help me :'(

 Warning:
 file(http://localhost:13013/cgi-bin/sendsms?username=ayubupassword=lulesuto=0769261977text=secret+number+is+roll):
 failed to open stream: Connection refused
 in/var/www/html/booking-final/mail.php on line 3


 It clearly says Connection Refused.

 Which means kannel's web-server is not working properly, check logs of
 bearerbox.log and smsbox.log, try starting bearerbox/smsbox from console to
 see output if you're not sure where to look for logs.




Re: Messages count for SMSC

2014-06-09 Thread Alvaro Cornejo
You can also run wc command on your log files
|-|
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, Jun 9, 2014 at 9:42 AM, spameden spame...@gmail.com wrote:



 2014-06-09 17:46 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 'Grep' the date, message status (Sent) and then SMSC id in the access.log
 file from Linux command prompt.

 Alternatively, you can run MySQL query over sentsms table if you are using
 sqlbox (which is the best way).


 On Sun, Jun 1, 2014 at 1:22 PM, Ali Kashif syedalikas...@gmail.com
 wrote:

 Dear Users,

 I have multiple SMSCs connected, and Kannel is doing some prefix based
 routing of messages,

 At end of month i need to count how many messages has been sent from each
 SMSc,

 I can see the access.log for kannel and there is

 2014-06-01 08:04:59 Sent SMS [SMSC:nahsms]

 i was thinking if i can add a mysql query in place where the above log is
 being writen,
 which just update number in mysql table against SMSC,


 Can anyone me tell me which file i should look and modify.


 and Will that be a good idea, considering that i am sending 100,000 SMS
 per day.


 Check sqlbox it might suit all your needs if you tweak it a bit.




 Thanks
 Ali






Re: Message identifier for returning DLR

2014-06-09 Thread Alvaro Cornejo
In your dlr-url you can add ...my-id=MY_ID... and when calling the
dlr-url make your app match for that MY_ID

Regards
|-|
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, Jun 9, 2014 at 10:05 AM, spameden spame...@gmail.com wrote:


 2014-06-09 18:58 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Isn't dlr-url fixed for all messages in kannel config? How will I set
 different identifier for different messages in it?


 Config sets only default dlr_url for all messages (if you don't specify your
 own).

 You can set dlr_url in sqlbox source code dynamically (TIP: use time/date
 nanoseconds to generate it) and link to DLR messages through this field.

 This is the only field which is being saved when DLR comes.




 On Mon, Jun 9, 2014 at 7:46 PM, spameden spame...@gmail.com wrote:




 2014-06-09 18:00 GMT+04:00 ha...@aeon.pk ha...@aeon.pk:

 Hi,

 I'm trying to use foreign_id field in sendsms table to mark the outgoing
 message for DLR matching in return, however it's not working since kannel
 puts its own FID every time.

 How to put message identifier in kannel logs to track the message for
 returning DLRs? I mean, which field to use?

 Regards,
 Hamza


 use dlr_url field.






Re: Tunning up kannel

2014-06-09 Thread DHC Admin
Hi Ahmed
Maybe the Bearebox has emptied the its queue and the queue moves to the
smsbox? Are you sure you have enough resources to receive that much number
of SMS at the same time? The Apache web server news to spawn (create) a big
number of clients to handle the traffic, it might run out of resources for
a few seconds and the smsbox could be resending the MOs later on, based on
this configuration:

http-request-retryinteger If set, specifies how many retries should be
performed for failing HTTP requests of sms-services. Defaults to 0, which
means no retries should be performed and hence no HTTP request queuing is
done. http-queue-delayinteger If set, specifies how many seconds should
pass within the HTTP queuing thread for retrying a failed HTTP request.
Defaults to 10 sec. and is only obeyed if http-request-retry is set to a
non-zero value.

Have you tried to disable the HTTP retry and see if you loose any MO? Maybe
they are getting retried.

Please tell me where is that you see the MO Queue that you mention, are you
just checking the status by console or using a HTML page?




On Mon, Jun 9, 2014 at 11:51 AM, Ahmed BOUDHRAA 
ahmed.boudh...@inbmi.edunet.tn wrote:

 Thinx spameden

 Our plateform is made for publishing mainlly baccalaureate results, and
 tow other grades this is the main use right now, all those are about 240
 000 canditates the fact is they may look like not much, but its a very
 important event that every parents/student attends the problematic its not
 about the nember but about the ammount of incoming/outgoing sms in a short
 time, last year we have reached the 800 sms /s in the operator side so you
 can imagine how it could be stressfull for us / the operators / the
 parents-students we cant allow any unavalability or too much wait, you can
 add to that that our plateform will do other things in the future :)

 for the throughput between as and the operators we fixied it in
 accordance with them every operator have specific capabilities but as i
 said our plateform can manage them at ease, what we want is to prepare our
 self, and to understand all the possible problem/solutions that we may have
 in using kannel.

 For the web server side, i cant assure that he is far from his real
 capabilities we are using RHEL web servers from long now. for the current
 configuration our web server can serve about 4000 requests / s i ll try
 below to describe a simple test we made usining fakesms:

 We are launching this test from our 3 kannel server simultanisouly :

 ./fakesmsc -i 0.001 -m 1 100 200 text test 00*  == this
 mean about 1000 sms /s from each kannel technically we could say that our
 portal should manage 3000 sms / s

 when we llaunch the test we can see on the kannel status in the box
 connections rubrique the Queued (MO) started  1 x 3 and it take about
 5 minutes to empty the three queue now what we want to understand is how
 the viewed queue is empty, the web server is far from his treatement
 capabilities and still messages are comming about 1-2 sms /s after about
 15000 have reached the database. I dont know if i m clear normally when the
 queue is empty we have to have 3 sms on the database side, wich mean
 there is another queue somewhere else


 this is our smskannel.conf : we are not using dlr nor internal storage:



 group = core
 admin-port = 13000
 smsbox-port = 2776
 admin-password = 123456
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1
 log-file = /var/log/kannel/kannel.log
 log-level = 0
 access-log = /var/log/kannel/access_kannel.log
 access-log-clean = true
 access-log-format= SMS %t %l %i %p %P %b %F %I %k
 store-file =/var/log/kannel/sms.store
 dlr-storage = internal
 store-dump-freq = 5
 sms-resend-freq = 60
 sms-resend-retry = -1


 #-
 # SMSC CONNECTIONS
 #
 # SMSC connections are created in bearerbox and they handle SMSC specific
 # protocol and message relying. You need these to actually receive and send
 # messages to handset, but can use GSM modems as virtual SMSCs


 group = smsc
 smsc = fake
 smsc-id = fake
 port = 1




 group = smsc
 smsc = smpp
 smsc-id = TT
 host = x.x.x.x
 port = 
 log-file = /var/log/kannel/tt1.log
 log-level = 0
 transceiver-mode = 1
 receive-port = 
 smsc-username = user
 smsc-password = pass
 system-type = 'VMA'
 interface-version = 34
 preferred-smsc-id = TT


 group = smsc
 smsc = smpp
 smsc-id = TT

 host = x.x.x.x
 port = 
 log-file = /var/log/kannel/tt2.log
 log-level = 0
 transceiver-mode = 1
 receive-port = 
 smsc-username = user
 smsc-password = pass
 system-type = 'VMA'
 #service-type = 'test'
 interface-version = 34
 preferred-smsc-id = TT

 group = smsc
 smsc = smpp
 smsc-id = TT
 host = x.x.x.x
 port = 
 log-file = /var/log/kannel/tt3.log
 log-level = 0
 transceiver-mode = 1
 receive-port = 
 smsc-username = user
 smsc-password = pass
 system-type = 'VMA'
 interface-version = 34
 preferred-smsc-id = TT

 group = smsc
 

Throughput option

2014-06-09 Thread Faizan Mirza
Hello,

I have kannel setup with latest svn code, I want to set throughput for 1
sms /10 sec or 200 sms / 15 minutes is it possible?

i have setup throughput = 0.10 for one sms / 10 sec it is not following
this rule and when i send 3 messages all goes together..