Re: Re[2]: Using sqlbox, can I disable sms-service?

2008-05-14 Thread sangprabv
Hi,
Just want to know. If we don't have post-url/get-url. Then how we parse
the MO? Is it faster to check it directly to MySQL or just send it to an
URL? Currently I combine the method. All MO are parsed via *-url. And
the result stored to the MySQl and let the SQLBox pick it. Any other
idea? What about the membox which is currently developed by Alejandro.G?

Regards,


Willy
On Tue, 2008-05-13 at 19:25 +0300, seik wrote:
 exactly
 
 
 -Original Message-
 From: users@kannel.org [EMAIL PROTECTED]
 Sent: 13 ??? 2008 ?.
 To: seik
 Subject:Using sqlbox, can I disable sms-service? 
 
  Hi Seik,
 
  If I set the default one like this, I don't need the other service you 
  suggested, right? I think setting a default
  service with an empty text would be sufficient. I didn't know about the 
  omit empty = true setting, I guess that should do the trick right?
 
  So now I have this:
 
  # Default sms service.
  group = sms-service
  keyword = plaseireallydonotwatntheapachetohandlethisMTmessageTrankYou
  # get-url = http://
  text = 
  omit-empty = true
  catch-all = true
  max-messages = 0
 
  That should work, right?
 
  Thanks for your help! I really appreciate it.
 
  Kind regards,
  Roland.
 
  seik wrote: 
  some additional info:
 
  and set the default one with empty response text, and set omit empty = true 
  ..
 
  i believe you got the idea
 
  -Original Message-
  From: users@kannel.org [EMAIL PROTECTED]
  Sent: 13 ??? 2008 ?.
  To: seik
  Subject:Using sqlbox, can I disable sms-service? 
 

  Nobody with any ideas?  
  
 

  Rolandow wrote: 
  
 

  Hi Guys,
  
 

  I am using kannel with the sqlbox, and I am directly processing my messages 
  from the mysql database. So I thought I'd
  leave the default sms-service with an empty get-url. Unfortunately this 
  gives me an error:
  
 

  2008-05-09 10:12:50 [21023] [1] INFO: Starting to service Yesenia from 
  4671020481 to 10551
  2008-05-09 10:12:50 [21023] [6] ERROR: URL  doesn't start with `http://' 
  nor `https://'
  2008-05-09 10:12:50 [21023] [6] ERROR: Couldn't send request to 
  2008-05-09 10:12:50 [21023] [2] INFO: No reply sent, denied.
  
 

  So my question is: how can I make the sms-service a dummy service, which 
  does nothing, and does not take any
  resources. I could of course to a http://localhost or something, but I 
  think this is a waste.
  
 

  I tried just leaving out the sms-service at all, but this gives me an error 
  too.
  
 

  Any suggestions?
  
 

  Kind regards,
  Roland.
  
 
 
 

 
 
 
-- 
[sangprabv]
http://www.sangprabv.web.id




Re: Re[4]: Using sqlbox, can I disable sms-service?

2008-05-14 Thread sangprabv
Hi,
So you have an external daemon which check the send_sms table? How fast
is it compares to HTTP? Apache has ModPerl which double the speed I
guess. In 1 million MO do you experience MO lost? TIA

Regards,


Willy
On Wed, 2008-05-14 at 10:57 +0300, seikath wrote:
 well ,
 
 1. i have here rules on insert dealing with the immediate replay, creating 
 xml or for implementing the MT billing
 its not possible for mysql :)
 
 2. you have external daemon processing the MO according certain rules as 
 shortcodes and regexp ...
 which is universal for any db
 
 3. you may patch the sqlbox for your particular needs ..
 
 these approaches are for HIGH MO traffic ... in case you have like 100 - 500 
 K daily,
 the apache will handle without any issues for sure.
 
 
 -Original Message-
 From: users@kannel.org [EMAIL PROTECTED]
 Sent: 14 Май 2008 г.
 To: seikath
 Subject:Using sqlbox, can I disable sms-service? 
 
  Hi,
  Just want to know. If we don't have post-url/get-url. Then how we parse
  the MO? Is it faster to check it directly to MySQL or just send it to an
  URL? Currently I combine the method. All MO are parsed via *-url. And
  the result stored to the MySQl and let the SQLBox pick it. Any other
  idea? What about the membox which is currently developed by Alejandro.G?
 
  Regards,
 
 
  Willy
  On Tue, 2008-05-13 at 19:25 +0300, seik wrote:
  exactly
  
  
  -Original Message-
  From: users@kannel.org [EMAIL PROTECTED]
  Sent: 13 ??? 2008 ?.
  To: seik
  Subject:Using sqlbox, can I disable sms-service? 
  
   Hi Seik,
  
   If I set the default one like this, I don't need the other service you 
   suggested, right? I think setting a default
   service with an empty text would be sufficient. I didn't know about the 
   omit empty = true setting, I guess that should do the trick right?
  
   So now I have this:
  
   # Default sms service.
   group = sms-service
   keyword = plaseireallydonotwatntheapachetohandlethisMTmessageTrankYou
   # get-url = http://
   text = 
   omit-empty = true
   catch-all = true
   max-messages = 0
  
   That should work, right?
  
   Thanks for your help! I really appreciate it.
  
   Kind regards,
   Roland.
  
   seik wrote: 
   some additional info:
  
   and set the default one with empty response text, and set omit empty = 
   true ..
  
   i believe you got the idea
  
   -Original Message-
   From: users@kannel.org [EMAIL PROTECTED]
   Sent: 13 ??? 2008 ?.
   To: seik
   Subject:Using sqlbox, can I disable sms-service? 
  
 
   Nobody with any ideas?  
   
  
 
   Rolandow wrote: 
   
  
 
   Hi Guys,
   
  
 
   I am using kannel with the sqlbox, and I am directly processing my 
   messages from the mysql database. So I thought I'd
   leave the default sms-service with an empty get-url. Unfortunately this 
   gives me an error:
   
  
 
   2008-05-09 10:12:50 [21023] [1] INFO: Starting to service Yesenia from 
   4671020481 to 10551
   2008-05-09 10:12:50 [21023] [6] ERROR: URL  doesn't start with 
   `http://' nor `https://'
   2008-05-09 10:12:50 [21023] [6] ERROR: Couldn't send request to 
   2008-05-09 10:12:50 [21023] [2] INFO: No reply sent, denied.
   
  
 
   So my question is: how can I make the sms-service a dummy service, 
   which does nothing, and does not take any
   resources. I could of course to a http://localhost or something, but I 
   think this is a waste.
   
  
 
   I tried just leaving out the sms-service at all, but this gives me an 
   error too.
   
  
 
   Any suggestions?
   
  
 
   Kind regards,
   Roland.
   
  
  
  
 
  
  
  
 
 
 
 
 
-- 
[sangprabv]
http://www.sangprabv.web.id




unsubscribe

2008-05-14 Thread Rajendra Tiwari
unsubscribe



Re[6]: Using sqlbox, can I disable sms-service?

2008-05-14 Thread seik
no lost MO sms so far,

i work in both ways, according the service description

have to say web servers have their limitations, especially in case when the db 
connection drops and suddenly
kannel starts to flood the web server with its endless retries ...

when the web server reaches the connection limit, you can imagine its getting 
even worse

my usual setup is a sqlbox with db pool of PostgreSQL started with option for 
2000
concurrent connections, which is far beyond the usual smpp concurrent peak load 
.. :)

but, its a box i use for live TV voting shows with HUGE MO peaks ...

these days i use the postgresql just to write xml files ,
there is a kernel inotify feature to watch the xml repository for a file 
creation
on file creation i just process the xml data in parallel

so i keep the postgresql only for th usual sqlbox activity, and the processing 
of the MO data is damn fast ..

anyway, my advice:
use the technology familiar with.




-Original Message-
From: users@kannel.org [EMAIL PROTECTED]
Sent: 14 Май 2008 г.
To: seik
Subject:Using sqlbox, can I disable sms-service? 

 Hi,
 So you have an external daemon which check the send_sms table? How fast
 is it compares to HTTP? Apache has ModPerl which double the speed I
 guess. In 1 million MO do you experience MO lost? TIA

 Regards,


 Willy
 On Wed, 2008-05-14 at 10:57 +0300, seikath wrote:
 well ,
 
 1. i have here rules on insert dealing with the immediate replay, creating 
 xml or for implementing the MT billing
 its not possible for mysql  
 
 2. you have external daemon processing the MO according certain rules as 
 shortcodes and regexp ...
 which is universal for any db
 
 3. you may patch the sqlbox for your particular needs ..
 
 these approaches are for HIGH MO traffic ... in case you have like 100 - 500 
 K daily,
 the apache will handle without any issues for sure.
 
 
 -Original Message-
 From: users@kannel.org [EMAIL PROTECTED]
 Sent: 14 Май 2008 г.
 To: seikath
 Subject:Using sqlbox, can I disable sms-service? 
 
  Hi,
  Just want to know. If we don't have post-url/get-url. Then how we parse
  the MO? Is it faster to check it directly to MySQL or just send it to an
  URL? Currently I combine the method. All MO are parsed via *-url. And
  the result stored to the MySQl and let the SQLBox pick it. Any other
  idea? What about the membox which is currently developed by Alejandro.G?
 
  Regards,
 
 
  Willy
  On Tue, 2008-05-13 at 19:25 +0300, seik wrote:
  exactly
  
  
  -Original Message-
  From: users@kannel.org [EMAIL PROTECTED]
  Sent: 13 ??? 2008 ?.
  To: seik
  Subject:Using sqlbox, can I disable sms-service? 
  
   Hi Seik,
  
   If I set the default one like this, I don't need the other service you 
   suggested, right? I think setting a default
   service with an empty text would be sufficient. I didn't know about the 
   omit empty = true setting, I guess that should do the trick right?
  
   So now I have this:
  
   # Default sms service.
   group = sms-service
   keyword = plaseireallydonotwatntheapachetohandlethisMTmessageTrankYou
   # get-url = http://
   text = 
   omit-empty = true
   catch-all = true
   max-messages = 0
  
   That should work, right?
  
   Thanks for your help! I really appreciate it.
  
   Kind regards,
   Roland.
  
   seik wrote: 
   some additional info:
  
   and set the default one with empty response text, and set omit empty = 
   true ..
  
   i believe you got the idea
  
   -Original Message-
   From: users@kannel.org [EMAIL PROTECTED]
   Sent: 13 ??? 2008 ?.
   To: seik
   Subject:Using sqlbox, can I disable sms-service? 
  
 
   Nobody with any ideas?  
   
  
 
   Rolandow wrote: 
   
  
 
   Hi Guys,
   
  
 
   I am using kannel with the sqlbox, and I am directly processing my 
   messages from the mysql database. So I thought I'd
   leave the default sms-service with an empty get-url. Unfortunately this 
   gives me an error:
   
  
 
   2008-05-09 10:12:50 [21023] [1] INFO: Starting to service Yesenia 
   from 4671020481 to 10551
   2008-05-09 10:12:50 [21023] [6] ERROR: URL  doesn't start with 
   `http://' nor `https://'
   2008-05-09 10:12:50 [21023] [6] ERROR: Couldn't send request to 
   2008-05-09 10:12:50 [21023] [2] INFO: No reply sent, denied.
   
  
 
   So my question is: how can I make the sms-service a dummy service, 
   which does nothing, and does not take any
   resources. I could of course to a http://localhost or something, but I 
   think this is a waste.
   
  
 
   I tried just leaving out the sms-service at all, but this gives me an 
   error too.
   
  
 
   Any suggestions?
   
  
 
   Kind regards,
   Roland.
   
  
  
  
 
  
  
  
 
 
 
 
 




unsubscribe

2008-05-14 Thread Patrick Mignott
unsubscribe

 



Message ID on SQLBox

2008-05-14 Thread Eduardo Raad
Dear subscribers,

I'm testing SQLBox standalone, it works fine, but I see that there is an ID
field in the sent_sms table that is not being filled (MO or MT). This is
supposed to be a Kannel-generated unique message ID. Does anyone know if
there is a configuration parameter to set this?

Thanks in advance.

Eduardo

-- 
Eduardo Raad
Gerente General
Metromovil

móvil + 593 9397
oficina + 593 42329455 x 1099

Av. 10 de Agosto 511 y Chimborazo
Edificio Equinoxcorp, Piso 3
Guayaquil, Ecuador


Help Please!!!!!

2008-05-14 Thread Gabriel Malva
 How can I make an application to connect to kannel over smpp and not HTTP?


Re: Help Please!!!!!

2008-05-14 Thread Gabriel Malva
2008/5/14 Alejandro Guerrieri [EMAIL PROTECTED]:

 Kannel can act as an SMPP _client_. That means, connect to an SMPP server
 (usaully a Carrier's SMSC) to send and receive messages. This is typically
 the case of ESMEs/VAS providers, where you have an application and want to
 send /receive messages to/from it.

 You need an SMPP server if you want a third party to connect to you using
 SMPP to send/receive messages over links you have with the carriers. This is
 tipically the case for integrators/resellers. There are a couple of such
 implementations, none free afaik.

 Stipe Tolj has one called smppbox, contact him in private if you want.

 Regards,

 Alejandro


 On Wed, May 14, 2008 at 4:16 PM, Eduardo Raad [EMAIL PROTECTED]
 wrote:

 Gabriel,

 I have looked at that issue too and you should write your own smsbox that
 implements SMPP instead of HTTP. The Kannel user documentations says you can
 easily write one, but I guess that is only true if you are good with C
 language.

 My educated guess is that you should replace the smsbox's HTTP client with
 an SMPP client/server that would allow you to route messages in/out the
 bearerbox. The SMPP client part is already done in Kannel, so I'm sure you
 can re-use that.

 Does anyone know about an existing smppbox?

 Eduardo

 On Wed, May 14, 2008 at 2:07 PM, Gabriel Malva [EMAIL PROTECTED]
 wrote:

  How can I make an application to connect to kannel over smpp and not
 HTTP?




 --
 Eduardo Raad
 Gerente General
 Metromovil

 móvil + 593 9397
 oficina + 593 42329455 x 1099

 Av. 10 de Agosto 511 y Chimborazo
 Edificio Equinoxcorp, Piso 3
 Guayaquil, Ecuador





Re: Help Please!!!!!

2008-05-14 Thread Gabriel Malva
In my case it would be more interesting a direct connection the application
with server side of kannel via SMPP protocol,
but as yet it is not possible to have this solution, there is some
expectation of kannel will propose this solution? **



 2008/5/14 Alejandro Guerrieri [EMAIL PROTECTED]:

 Kannel can act as an SMPP _client_. That means, connect to an SMPP server
 (usaully a Carrier's SMSC) to send and receive messages. This is typically
 the case of ESMEs/VAS providers, where you have an application and want to
 send /receive messages to/from it.

 You need an SMPP server if you want a third party to connect to you using
 SMPP to send/receive messages over links you have with the carriers. This is
 tipically the case for integrators/resellers. There are a couple of such
 implementations, none free afaik.

 Stipe Tolj has one called smppbox, contact him in private if you want.

 Regards,

 Alejandro


 On Wed, May 14, 2008 at 4:16 PM, Eduardo Raad 
 [EMAIL PROTECTED] wrote:

 Gabriel,

 I have looked at that issue too and you should write your own smsbox that
 implements SMPP instead of HTTP. The Kannel user documentations says you can
 easily write one, but I guess that is only true if you are good with C
 language.

 My educated guess is that you should replace the smsbox's HTTP client
 with an SMPP client/server that would allow you to route messages in/out the
 bearerbox. The SMPP client part is already done in Kannel, so I'm sure you
 can re-use that.

 Does anyone know about an existing smppbox?

 Eduardo

 On Wed, May 14, 2008 at 2:07 PM, Gabriel Malva [EMAIL PROTECTED]
 wrote:

  How can I make an application to connect to kannel over smpp and not
 HTTP?




 --
 Eduardo Raad
 Gerente General
 Metromovil

 móvil + 593 9397
 oficina + 593 42329455 x 1099

 Av. 10 de Agosto 511 y Chimborazo
 Edificio Equinoxcorp, Piso 3
 Guayaquil, Ecuador






Re: Help Please!!!!!

2008-05-14 Thread Eduardo Raad
Gabriel,

That is exactly what smppbox from Stipe can do. It will enable a direct
connection between an external application (ESME) and Kannel. In this case,
Kannel acts as a SMPP server and your external application would act as the
SMPP client.

Eduardo

On Wed, May 14, 2008 at 4:20 PM, Gabriel Malva [EMAIL PROTECTED]
wrote:

 In my case it would be more interesting a direct connection the application
 with server side of kannel via SMPP protocol,
 but as yet it is not possible to have this solution, there is some
 expectation of kannel will propose this solution?
 **



 2008/5/14 Alejandro Guerrieri [EMAIL PROTECTED]:

 Kannel can act as an SMPP _client_. That means, connect to an SMPP server
 (usaully a Carrier's SMSC) to send and receive messages. This is typically
 the case of ESMEs/VAS providers, where you have an application and want to
 send /receive messages to/from it.

 You need an SMPP server if you want a third party to connect to you using
 SMPP to send/receive messages over links you have with the carriers. This is
 tipically the case for integrators/resellers. There are a couple of such
 implementations, none free afaik.

 Stipe Tolj has one called smppbox, contact him in private if you want.

 Regards,

 Alejandro


 On Wed, May 14, 2008 at 4:16 PM, Eduardo Raad 
 [EMAIL PROTECTED] wrote:

 Gabriel,

 I have looked at that issue too and you should write your own smsbox
 that implements SMPP instead of HTTP. The Kannel user documentations says
 you can easily write one, but I guess that is only true if you are good
 with C language.

 My educated guess is that you should replace the smsbox's HTTP client
 with an SMPP client/server that would allow you to route messages in/out 
 the
 bearerbox. The SMPP client part is already done in Kannel, so I'm sure you
 can re-use that.

 Does anyone know about an existing smppbox?

 Eduardo

 On Wed, May 14, 2008 at 2:07 PM, Gabriel Malva 
 [EMAIL PROTECTED] wrote:

  How can I make an application to connect to kannel over smpp and not
 HTTP?




 --
 Eduardo Raad
 Gerente General
 Metromovil

 móvil + 593 9397
 oficina + 593 42329455 x 1099

 Av. 10 de Agosto 511 y Chimborazo
 Edificio Equinoxcorp, Piso 3
 Guayaquil, Ecuador







-- 
Eduardo Raad
Gerente General
Metromovil

móvil + 593 9397
oficina + 593 42329455 x 1099

Av. 10 de Agosto 511 y Chimborazo
Edificio Equinoxcorp, Piso 3
Guayaquil, Ecuador


Question about white-list and black-list

2008-05-14 Thread Kevin Reed
When I setup a black-list like:

black-list  = http://127.0.0.1/kannel/black-list.txt;

in the core section of the kannel.conf file, and setup a single number in
the file that it points to, I saw when it started that it found 1 number
in it which is what I had in it.

2008-05-14 14:21:19 [8728] [0] INFO: Read from
http://127.0.0.1/kannel/black-list.txt total of 1 numbers

Question #1:

Does that mean that the black-list list is only read once when the bearbox
starts and not updated from time to time?


I've not found an example of white-list-regex to see how I could use it to
accept only US formatted phone numbers.  But this brings up the second
question...

Question #2: If I use white-list-regex to accept any US formatted phone
number, and a number matches an entry in the black-list list, will it be
denied or accepted?

-- 
Kevin Reed - TNET Services, Inc.
For Mesa, AZ Weather http://www.TNETWeather.com




Re: Help Please!!!!!

2008-05-14 Thread Alejandro Guerrieri
Just a tought: I don't know your particular scenario and requirements, nor
the reasons for your app to require such a setup, but maybe if you already
have SMPP connections with the carriers you could bypass Kannel and
implement the connections at application level.

If that's your case, there's no need to use Kannel as a proxy between the 2
SMPP sides (unless you use it for routing/accounting/whatever, of course).

Regards,

Alejandro

On Wed, May 14, 2008 at 6:27 PM, Eduardo Raad [EMAIL PROTECTED]
wrote:

 Gabriel,

 That is exactly what smppbox from Stipe can do. It will enable a direct
 connection between an external application (ESME) and Kannel. In this case,
 Kannel acts as a SMPP server and your external application would act as the
 SMPP client.

 Eduardo


 On Wed, May 14, 2008 at 4:20 PM, Gabriel Malva [EMAIL PROTECTED]
 wrote:

 In my case it would be more interesting a direct connection the
 application with server side of kannel via SMPP protocol,
 but as yet it is not possible to have this solution, there is some
 expectation of kannel will propose this solution?
 **



 2008/5/14 Alejandro Guerrieri [EMAIL PROTECTED]:

 Kannel can act as an SMPP _client_. That means, connect to an SMPP server
 (usaully a Carrier's SMSC) to send and receive messages. This is typically
 the case of ESMEs/VAS providers, where you have an application and want to
 send /receive messages to/from it.

 You need an SMPP server if you want a third party to connect to you
 using SMPP to send/receive messages over links you have with the carriers.
 This is tipically the case for integrators/resellers. There are a couple of
 such implementations, none free afaik.

 Stipe Tolj has one called smppbox, contact him in private if you want.

 Regards,

 Alejandro


 On Wed, May 14, 2008 at 4:16 PM, Eduardo Raad 
 [EMAIL PROTECTED] wrote:

 Gabriel,

 I have looked at that issue too and you should write your own smsbox
 that implements SMPP instead of HTTP. The Kannel user documentations says
 you can easily write one, but I guess that is only true if you are good
 with C language.

 My educated guess is that you should replace the smsbox's HTTP client
 with an SMPP client/server that would allow you to route messages in/out 
 the
 bearerbox. The SMPP client part is already done in Kannel, so I'm sure you
 can re-use that.

 Does anyone know about an existing smppbox?

 Eduardo

 On Wed, May 14, 2008 at 2:07 PM, Gabriel Malva 
 [EMAIL PROTECTED] wrote:

  How can I make an application to connect to kannel over smpp and not
 HTTP?




 --
 Eduardo Raad
 Gerente General
 Metromovil

 móvil + 593 9397
 oficina + 593 42329455 x 1099

 Av. 10 de Agosto 511 y Chimborazo
 Edificio Equinoxcorp, Piso 3
 Guayaquil, Ecuador







 --
 Eduardo Raad
 Gerente General
 Metromovil

 móvil + 593 9397
 oficina + 593 42329455 x 1099

 Av. 10 de Agosto 511 y Chimborazo
 Edificio Equinoxcorp, Piso 3
 Guayaquil, Ecuador



Re: Question about white-list and black-list

2008-05-14 Thread Alejandro Guerrieri
Kevin,

Regarding question #1, afaik, the lists are read at bearerbox's start and
they're not updated until restart.

Regards,

Alex

On Wed, May 14, 2008 at 6:40 PM, Kevin Reed [EMAIL PROTECTED] wrote:

 When I setup a black-list like:

 black-list  = http://127.0.0.1/kannel/black-list.txt;

 in the core section of the kannel.conf file, and setup a single number in
 the file that it points to, I saw when it started that it found 1 number
 in it which is what I had in it.

 2008-05-14 14:21:19 [8728] [0] INFO: Read from
 http://127.0.0.1/kannel/black-list.txt total of 1 numbers

 Question #1:

 Does that mean that the black-list list is only read once when the bearbox
 starts and not updated from time to time?


 I've not found an example of white-list-regex to see how I could use it to
 accept only US formatted phone numbers.  But this brings up the second
 question...

 Question #2: If I use white-list-regex to accept any US formatted phone
 number, and a number matches an entry in the black-list list, will it be
 denied or accepted?

 --
 Kevin Reed - TNET Services, Inc.
 For Mesa, AZ Weather http://www.TNETWeather.com





Using keyword-regex

2008-05-14 Thread Kevin Reed
I am attempting to trap messages sent consisting of only 7 digit numbers. 
The number is not valid unless they are exactly 7 digits so I wrote an
sms-service like:

group = sms-service
keyword = tr
keyword-regex = ^(\d{7})$
name = TankReading
aliases = store
exec = /usr/local/smsgateway/sms-command.pl store '%k'
max-messages = 2
concatenation = false

I even tried changing the rejex to:

keyword-regex = ^\d{7}$

Neither appears to work.  It just falls through to the default sms-service
which sends back an invalid command.

Any ideas what is wrong?

If I use the service setup as:

group = sms-service
keyword = tr
name = TankReading
aliases = store
exec = /usr/local/smsgateway/sms-command.pl store '%s'
max-messages = 2
concatenation = false

It works fine if the sender includes TR space then the 7 digit number. 
I'm trying to make it so that they don't need to add the TR, just send the
store number.

-- 
Kevin Reed - TNET Services, Inc.
For Mesa, AZ Weather http://www.TNETWeather.com