Re: Siemens MC35i: send command status: -1

2006-02-20 Thread Stephane Rosa

Hi Lars,

You might wanna try to reset your modem
before anything
in your init-string, something like
ATZ+CNMI... or ATZAT+CNMI
I am not sure.

I never tried to use kannel that way,
but at least when I was
using laptop dialup with mobile phones
in either GSM, HSCD or GPRS
I always had to use ATZ in the init
string to make it work.

HTH
Stephane


-- 
Stephane Rosa
Security Officer  Network Engineer, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Lars-Hendrik Schneider
[EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
20-02-2006 13:37




To
Kannel users@kannel.org


cc



Subject
Re: Siemens MC35i: send command
status: -1








Hi Paul,


Lars-Hendrik Schneider schrieb:
 Hi Paul
 
 Paul Keogh schrieb:
 
 

 ###snip#
 group = modems
 id = siemens_mc35
 name = Siemens MC35
 detect-string = SIEMENS
 detect-string2 = MC35
 init-string = AT+CNMI=1,2,0,0,1
 speed = 57600
 enable-hwhs = AT\\Q3
 need-sleep = true  
  # uncomment this line if needed
 ###/snip#


 
 I would always add the

 alt-dcs=1

 Parameter to the SMSC group definition when using a Siemens modem.

 Its worth a try.

 
 thanks, I will try it soon and publish the result here. AFAIR this

 problem was mentioned in the mailing list several times without a

 solution, so that every helpor hint is appreciated.
 
 Greetz from Bonn,
 Lars-Hendrik
 
 

well, it seems as this did not solve my problem, but it (currently) 
seems as if the modems are now running. I changed my modems.conf a 
little bit following this posting:

http://www.mail-archive.com/users@kannel.3glab.org/msg01308.html


saying:

###snip#
After trying kannel at 6 different machines, I've found out that kannel
is
quite messy with initializing a serial port.
[modem TC-35 Siemens].
Under Solaris this is quite a tricky to achieve, and under linux it is

little
bit easier (minicom trick).
Another strange thing is that 1.1.6 is not working with at2
smsc, but 
with
old at it is working
If I use old at under Solaris, then it works, but receiving
messages 
is not
possible.
I think this is problem with init strings...
For TC-35 it needs to be first:
AT+CSMS=1 , and then this one will work...
AT+CNMI=3,2,0,0,1
otherwise I get error with AT+CNMI command, since without CSMS=1 , TC-35

does
not accept anthying else than AT+CNMI=1,2,0,0,1 (not 100%, this is from

head).
Anyway, after making kannel work after couple of inits and
shutdowns,
problem with initializing is occuring again after rebooting machine...
Does anybody know solution for this?
I've tried even setting up a port with stty, but this is still
not 100%
reliable.
###/snip#


This is what my kannel.conf NOW looks alike (running with kannel 1.4.0):

###snip#
group = smsc
smsc = at
smsc-id = GSM1
modemtype = siemens_mc35
device = /dev/gsm1
pin = 9797
sms-center = +49176443
alt-dcs=1

group = modems
id = siemens_mc35
name = Siemens MC35
detect-string = SIEMENS
detect-string2 = MC35
init-string = AT+CNMI=1,2,0,0,1
init-string = AT+CSMS=1
speed = 57600
enable-hwhs = AT\\Q3
need-sleep = true
# uncomment this line if needed
###/snip#

Due to kannel 1.4.0 this uses smsc = at which is the same as
at2 in 
former versions.
Note this: init-string = AT+CSMS=1 -- I added this and
it seems to 
work now (I hope it will go on like this. Therefore I will try to send
a 
huge number of SMS using http-requests this afternoon and spamming my 
collegues...). if it fails again, I will answer here again... (hope I 
don't have to, puh).

Greetings,
Lars-Hendrik




Re: SMS Headers

2006-01-31 Thread Stephane Rosa

As far as I can tell, yes and no. It
would work only if the user is including the
original message as the reply, and it
means that the user will actually see this
message ID somewhere in the message.

Additionally, some phones are not proposing
include on reply, although they
usually all have a Forward function
instead.

I really wish there was some kind of
link between an MO and MT but that's
not part of current SMS specs.

Maybe WAP push is a better option for
that.

Cheers
Stephane


-- 
Stephane Rosa
Security Officer  Network Engineer, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





David Wessell [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
31-01-2006 13:24




To
users@kannel.org


cc



Subject
SMS Headers








Hey all.. Is it possible to embed a message ID within
a header, so that 
if a user replies, a thread can be maintained?

As a secondary question, has anyone used a Motorola v400 with Kannel?

Thanks
David

-- 
---
David Wessell






Re: RedHat 9 and Kannel 1.4.0 (Compile successful ^_^)

2005-10-20 Thread Stephane Rosa

Heya,

Sorry I haven't responded before you
found a solution, I am catching up on email now.

A better solution which
does not force you to mess with current installation is to tell
configure to use other include locations.

You need to add --with-cflags='-g -I/usr/kerberos/include'
in your configure command line. That'll
make it.

Hope it helps for next time (and for
others)

Cheers
Stephane


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA






Buyung Arif Nugroho [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
20-10-05 10:07




To
users@kannel.org


cc



Subject
Re: RedHat 9 and Kannel 1.4.0
(Compile successful ^_^)








YES, i did it.

The answer is quite simple, i feel kinda stupid T_T

The problem was, rh9 didn't install the krb5-devel in the right place.
They installed it in the '/usr/kerberos/include'.
But openssl-devel (kssl.h) need to use the krb5-devel and looked in the
'/usr/include'. Of course they didn't find it.

My solution is to make hardlink (symlink doesn't work) for all the
kerberos header inside '/usr/kerberos/include' to the '/usr/include'
(doesn't need to include the subdir). E.g '#ln -v /usr/kerberos/include
/usr/include'.

And voila ^_^

Thanks guys for helping me out ^_^




Send instant messages to your online friends http://uk.messenger.yahoo.com





Fw: is UCP 52 supported in the EMI connection ?

2005-10-18 Thread Stephane Rosa

Hi,

Could anybody help me in understanding
what exactly the difference is
between UCP 01 and UCP 52, and how I
would be affected if UCP 52 is
the only one accepted by my provider
? Is Kannel supporting it ?

Thanks
Stephane


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com
- Forwarded by Stephane
Rosa/MTX/Stryker on 18-10-05 11:29 -



Stephane Rosa 
17-08-05 10:04




To
users@kannel.org


cc



Subject
is UCP 52 supported in the
EMI connection ?








My SMSC is investigating the exclusive use
of UCP 52 for MO. Until now they were
using UCP 01 for normal text MO with max
160 chars, and UCP 52 for long MO, pictures, etc.

Is Kannel supporting UCP 52 at all for MO
? I tried to send a long MO to a test service but it
wasnt processed correctly :

2005-08-17 09:52:39 [31782] [4] INFO:
Starting to service T
from 004179xxx to 30xxx
2005-08-17 09:52:40 [31782] [4] INFO:
Starting to service T
from 004179xxx to 30xxx

It was processed as two separate message
and the %k which was ACK in the message was somehow understood as a
graphical
character by the service.

Any advice appreciated.
Thanks
Stephane



RE: OOT: Reply-To header

2005-08-18 Thread Stephane Rosa
Nope, sorry but reply to just replies to the sender, not the list.
I usually Reply To All to get the list as well...

In this particular email I added the list in the Cc manually...

Cheers
Stephane

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Thursday, August 18, 2005 10:45
To: [EMAIL PROTECTED]
Cc: users@kannel.org
Subject: Re: OOT: Reply-To header

Hey Steve,

On 18 Aug 2005, at 9:36, Steve Kennedy wrote:

 On Thu, Aug 18, 2005 at 02:47:11PM +0700, Ady Wicaksono wrote:


 Dear All,
 I suggest that this mailing list added Reply-To header
 it will help us to simply reply every message


 Why should mailing lists be set-up to keep broken mail clients happy?
 Any decent mail client will have the facility to reply to a list.

 Reply-to lists is just wrong, and can cause all sorts of problems for
 list admins etc.


I must not be aware of something here. What problems does it cause?  
Every other list I list (including the kannel devel list) uses the  
list name when I press reply. Its normally what I want to do, reply  
to the list.


Cheers,

Gareth


--
Gareth Reakes, Managing Director   Embrace Mobile
+44-1865-811197  http://www.embracemobile.com






is UCP 52 supported in the EMI connection ?

2005-08-17 Thread Stephane Rosa








My SMSC is investigating the exclusive use of UCP 52 for MO.
Until now they were

using UCP 01 for normal text MO with max 160 chars, and UCP
52 for long MO, pictures, etc.



Is Kannel supporting UCP 52 at all for MO ? I tried to send
a long MO to a test service but it

wasnt processed correctly :



2005-08-17
09:52:39 [31782] [4] INFO: Starting to service T from
004179xxx to 30xxx

2005-08-17 09:52:40 [31782] [4] INFO:
Starting to service T from 004179xxx to 30xxx



It was processed as two separate message and the %k which
was ACK in the message was somehow understood as a graphical

character by the service.



Any advice appreciated.

Thanks

Stephane












RE: Question about tracking messages (maybe using UDH ?)

2005-08-16 Thread Stephane Rosa
Hi Alejandro,

Thanks for your reply. I'm a bit disappointed as I really thought that
there
would be some sort of persistent information between a message sent to a
mobile and its reply.

I think I can handle this missing feature by asking users to include the
original message in their reply. A quick investigation showed up that on
Nokia phones this functionality exists. On Ericsson it doesn't but the
user
can forward the message back, that should be ok to start with.

Thus said, I would be very interested in investigating wap push for a
near future, unfortunately I have pretty much no idea of how to set that
up and the documentation is more a technical reference than a tutorial :-)

If somebody would have a truly basic example of wap config and wap scripts
that does any kind of simple job (even unrelated to the alerting system
that I try to setup) to help me understand I would be glad.

Thanks
Stephane

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of [EMAIL PROTECTED]
Sent: Tuesday, August 16, 2005 13:53
To: users@kannel.org
Subject: Re: Question about tracking messages (maybe using UDH ?)

Stephane,

SMS protocol does not have any transaction-oriented capabilities built
in. I'm afraid you'll have to come up with a solution more or less
painful for your users:

1. You could, as mentioned, ask the client to include a tracking number.

2. If you don't expect to send many requests at the same time to the
same guy, You could implement some time-window oriented mechanism,
that is: any reply you get during the X minutes after sending message
#432 to number 123 is supossedly regarding message #432. After X
minutes, you consider the #432 abandoned even if 123 replies to it.
This works as long as you don't have more than one open message with
a particular ANI. In that case you could indicate that he must include
the tracking number... (here the painful part comes to developing the
logic for this, nbut it's absolutely doable).

3. You could implemente the messages as wap pushes (with the tracking
number encoded) and redirect the client to a wap form where he can
reply ot them.

Hope it helps,

Alejandro Guerrieri



On 8/16/05, Stephane Rosa [EMAIL PROTECTED] wrote:
 
 
 Hi,
 
  
 
 What I'm trying to do is to track messages when they are replied to. The
 goal is to use Kannel to send alerts to people and let them a chance to
 acknowledge them (will be used With Nagios for those who know it). How
can I
 put some kind of transaction number in a message sent, so that I can
track
 it back when it is replied to. For example :
 
  
 
 Send message HOST X IS DOWN to number 123
 
 Send message HOST Z IS DOWN to number 456
 
 Guy with number 123 replies ACK I will take care of it
 
 Guy with number 456 replies NACK got no time now
 
  
 
 I want to create two sms-services, ACK and NACK and log their answer in
the
 system, but how can I match messages sent with replies ? I could add an
 alert number to the text, but users would have to retype that number
when
 replying, that's painful. 
 
  
 
 Hope I'm clear enough.
 
 Thanks for any hint.
 
  
 
 Cheers
 
 Stephane


-- 
Alejandro Guerrieri
Magicom
http://www.magicom-bcn.net/




RE: SMS Service questions

2005-07-29 Thread Stephane Rosa
Hola Alejandro,

Welcome to regex irregular world :-))

I suggest using this instead :
keyword-regex=^(BS|bs) [0-9]{4}

\s and \d are understood only in Perl regex, not grep-like regex

Good luck :)
Cheers
Stephane

-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966 12 38
Cell: +41 79 616 08 28
 
Stryker EMEA
Grand Rue 92
CH-1820 Montreux, Switzerland
http://www.europe.stryker.com
 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Thursday, July 28, 2005 19:49
 To: users@kannel.org
 Subject: SMS Service questions
 
 Hello All!
 
 
 I've been using consistently kannel for a few months and i'm 
 really happy with it... however i have a question about regex
 
 Right now i have this service:
 
 
 group = sms-service
 keyword = testing_u
 keyword-regex=^(BS|bs)
 allowed-receiver-prefix=333;50
 #catch-all= true
 get-url = 
 http://192.168.9.180/entrance.asp?phnmbr=%pmsg=%aService=%isvc=%P;
 accept-x-kannel-headers = true
 max-messages= 0
 
 It matches any service starting with BS or bs.
 
 Im trying it to match bs and 4 digits after it like this BS 
 1234 TY 123
 keyword-regex=^(BS|bs)\s\d{4}.*
 
 but it DOES not match :(
 
 Any clues of what i might be doing wrong??
 
 
 Thanks!
 
 Alejandro
 
 
 



RE: Kannel Message Boards?

2005-07-18 Thread Stephane Rosa
How about forum.kannel.org if you ask for a record
In their DNS ? That's probably the best thing to do.

Clipper 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Anand Gupta
 Sent: Monday, July 18, 2005 13:58
 To: Gareth Reakes
 Cc: [EMAIL PROTECTED]; users@kannel.org
 Subject: Re: Kannel Message Boards?
 
 I am ready to register and host the forums if members here 
 can recommend a domain for the same. I posted earlier also 
 however no commented till now.
 
 
 --
 regards,
  
 Anand Gupta
 
 
  Original message 
 Subject:  Re: Kannel Message Boards?
 Author:   Gareth Reakes [EMAIL PROTECTED]
 Date: 18th July 2005 10:34:28 
 
 Hey,
 
   I think it would be a good idea. Who is going to take 
 the lead on this?
 
 Gareth
 
 Bill Brigden wrote:
  Just a short note to say I would be willing to help in any ways 
  (within
  reason!) necessary..
  
  Bill.
  
  
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
 Sent: 15 July 2005 17:28
 To: [EMAIL PROTECTED]
 Cc: users@kannel.org
 Subject: Re: Kannel Message Boards?
 
 I don't think that they will be too resource intensive form hosting 
 point of view, so It should not be a problem for anyone to set them 
 up.
 Yeah I will be willing to help :)
 
 -Cheers
 
 Yasser
 
 
 From: Gareth Reakes [EMAIL PROTECTED]
 To: Yasser Sultan [EMAIL PROTECTED]
 Subject: Re: Kannel Message Boards?
 Date: Fri, 15 Jul 2005 17:15:54 +0100
 
 Hey Yasser,
 
 
 Yasser Sultan wrote:
 
 Why doesn't kannel has its forums or online discussion boards?
 
 Don't you think that with them it will be easier to keep
 
 track of the
 
 things
 and help can be provided in a better way, considering the
 
 features and
 
 options present in the modern bulletin board systems
 
 
 Thank You
 
 
Probably because no one has set one up yet :) You offering?
 
 
 Gareth
 
 
 --
 Gareth Reakes, Managing Director  Parthenon Computing
 +44-1865-811184  http://www.parthcomp.com
 
 
 
 
  
  
  
  
 
 -- 
 Gareth Reakes, Managing Director  Parthenon Computing
 +44-1865-811184  http://www.parthcomp.com
 
 
 
 



RE: Kannel Message Boards?

2005-07-18 Thread Stephane Rosa
Well, I think that forums can easily (and should) replace mailing lists. I
see several reasons for this :

1) Search. Searching mailing lists archives is painful, and I'm sure most
people will just post the same question again without trying to search
first. Forums are much more efficient in searching by subject, body,
poster, date, etc.

2) Organisation. Beside major groups like bugs, devel, user, most forums
provide sub-groups allowing to segregate a group in several major areas
(e.g. Development-Web Interface, Development-Core, etc)

3) Traffic. I'm an Internet Ecologist(tm) and I strongly see the mailing
list traffic as a totally useless bandwidth nuisance, mostly because when
someone subscribes to a mailing list he reads everything the first week,
the second week he deletes without reading, the third week he creates an
automatic folder rule and never reads most of the content ever again.

Spam moderation is not so much of an issue, as long as you have to be
authenticated to post, and being part of  several dozens of forums I never
seen any spam in them.

That's my 0.02$ advocacy, hope it helps :-D

Cheers
Clipper

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
 Sent: Monday, July 18, 2005 16:03
 To: users@kannel.org
 Subject: RE: Kannel Message Boards?
 
 IMO It would be great if you consult the Kannel project 
 maintainers and have their views about it, so that you can 
 have official forums just like the mailing list
 
 yes, I agree that the they should be on the kannel site 
 hosted on a subdomain or something like kannel.org/forums
 
 The only problem with forums is that they also need to 
 closely moderated because of spam and other useless messages 
 that people often post
 
 Regards
 Yasser
 
 --
 Talk about Love  Friendship at Latestngreatest Forums 
 http://www.latestngreatest.net/cgi-bin/Blah/Blah.pl
 
 
 From: Anand Gupta [EMAIL PROTECTED]
 Reply-To: Anand Gupta [EMAIL PROTECTED]
 To: Bill Brigden [EMAIL PROTECTED]
 CC: users@kannel.org
 Subject: RE: Kannel Message Boards?
 Date: Mon, 18 Jul 2005 18:51:40 +0530
 
  Would people see the mailing lists as redundant if there were web 
  based
 forums?
 
 well both can serve the purpose, at times mailing lists are 
 better and 
 sometimes forums.
 
 --
 regards,
 
 Anand Gupta
 
 
  Original message 
 Subject: RE: Kannel Message Boards?
 Author:  Bill Brigden [EMAIL PROTECTED]
 Date:18th July 2005 1:32:16
 
 What do other people think about the possibility of having a 
 web forum?
 Would people see the mailing lists as redundant if there 
 were web based 
 forums?
 
 As far as the name / location - could it be put under kannel.org, 
 either as being hosted there, or using a sub domain 
 (forums.kannel.org?) pointing elsewhere?
 
 Regards,
 Bill.
 
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Anand Gupta
   Sent: 18 July 2005 12:58
   To: Gareth Reakes
   Cc: Bill Brigden; users@kannel.org
   Subject: Re: Kannel Message Boards?
  
   I am ready to register and host the forums if members here can 
   recommend a domain for the same. I posted earlier also however no 
   commented till now.
  
  
   --
   regards,
  
   Anand Gupta
  
  
    Original message 
   Subject:  Re: Kannel Message Boards?
   Author:   Gareth Reakes [EMAIL PROTECTED]
   Date: 18th July 2005 10:34:28
  
   Hey,
  
 I think it would be a good idea. Who is going to take 
 the lead on 
   this?
  
   Gareth
  
   Bill Brigden wrote:
Just a short note to say I would be willing to help in any
   ways (within
reason!) necessary..
   
Bill.
   
   
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Yasser Sultan
   Sent: 15 July 2005 17:28
   To: [EMAIL PROTECTED]
   Cc: users@kannel.org
   Subject: Re: Kannel Message Boards?
   
   I don't think that they will be too resource intensive form 
   hosting point of view, so It should not be a problem 
 for anyone to 
   set them up.
   Yeah I will be willing to help :)
   
   -Cheers
   
   Yasser
   
   
   From: Gareth Reakes [EMAIL PROTECTED]
   To: Yasser Sultan [EMAIL PROTECTED]
   Subject: Re: Kannel Message Boards?
   Date: Fri, 15 Jul 2005 17:15:54 +0100
   
   Hey Yasser,
   
   
   Yasser Sultan wrote:
   
   Why doesn't kannel has its forums or online discussion boards?
   
   Don't you think that with them it will be easier to keep
   
   track of the
   
   things
   and help can be provided in a better way, considering the
   
   features and
   
   options present in the modern bulletin board systems
   
   
   Thank You
   
   
  Probably because no one has set one up yet :) 
 You offering?
   
   
   Gareth
   
   
   --
   Gareth Reakes, Managing Director  Parthenon Computing
   +44-1865-811184  

Re: cpu load 99% by bearerbox

2005-05-25 Thread Stephane Rosa

Fiddling with gdb, I found out that
the high cpu load
is caused by the call to gwthread_sleep(10.0);
at line
605 of bearerbox.c.

Tracing further, gwthread_sleep calls
poll(), with a
timeout of 10 seconds. When I step that
line, gdb
hangs for the entire 10 seconds and
the cpu raises
straight to 99%.

poll() is supposed to sleep until something
happend
on an fd, I have no idea why this happens.

Those two pieces of code seem not to
have
changed since 2003, so I'm surprised
we are
not all of us seeing the same issue.

I will compile and run it on Solaris
to see if it
makes any difference. Maybe poll() behaves
differently on RedHat SE.

Cheers
Stephane


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Julien Buratto [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
24-05-05 17:49




To
Stephane Rosa [EMAIL PROTECTED]


cc
users@kannel.org


Subject
Re: cpu load 99% by bearerbox








Stephane Rosa wrote:
 
 Thanks Julien, I did that already and the gdb thing
 reveals a backtrace on gwthread_sleep like you were
 experiencing I guess.
 
 May I ask how you solved your problem ?
 
 Thanks
 

Make this laught: I havent' :)
I'm still using 1.4.0 because CVS goes into cpu overload so I've decided

to manually patch the 1.4.0 and apply there my own code.

J



Re: cpu load 99% by bearerbox

2005-05-25 Thread Stephane Rosa

I just compiled the same sources on
a dual-cpu Sun server and
the behavior is exactly the same as
on RedHat 9 (SE).

How come is this happening ? Are we
the only one experiencing
this ??

Stephane

-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Stephane Rosa [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
25-05-05 11:34




To
Julien Buratto [EMAIL PROTECTED]


cc
users@kannel.org


Subject
Re: cpu load 99% by bearerbox









Fiddling with gdb, I found out that the high cpu load

is caused by the call to gwthread_sleep(10.0); at line

605 of bearerbox.c. 

Tracing further, gwthread_sleep calls poll(), with a

timeout of 10 seconds. When I step that line, gdb 
hangs for the entire 10 seconds and the cpu raises

straight to 99%. 

poll() is supposed to sleep until something happend

on an fd, I have no idea why this happens. 

Those two pieces of code seem not to have 
changed since 2003, so I'm surprised we are 
not all of us seeing the same issue. 

I will compile and run it on Solaris to see if it 
makes any difference. Maybe poll() behaves 
differently on RedHat SE. 

Cheers 
Stephane 


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com 




Julien Buratto [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED] 
24-05-05 17:49 





To
Stephane Rosa [EMAIL PROTECTED]



cc
users@kannel.org



Subject
Re: cpu load 99% by bearerbox










Stephane Rosa wrote:
 
 Thanks Julien, I did that already and the gdb thing
 reveals a backtrace on gwthread_sleep like you were
 experiencing I guess.
 
 May I ask how you solved your problem ?
 
 Thanks
 

Make this laught: I havent' :)
I'm still using 1.4.0 because CVS goes into cpu overload so I've decided

to manually patch the 1.4.0 and apply there my own code.

J



Re: cpu load 99% by bearerbox

2005-05-25 Thread Stephane Rosa

Opened bug 230 about bearerbox
causes 99% cpu load

(for the records in this users mailing
list)

Stephane

-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Stephane Rosa [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
25-05-05 12:39




To
Julien Buratto [EMAIL PROTECTED]


cc
users@kannel.org


Subject
Re: cpu load 99% by bearerbox









I just compiled the same sources on a dual-cpu Sun server and

the behavior is exactly the same as on RedHat 9 (SE).


How come is this happening ? Are we the only one experiencing

this ?? 

Stephane

-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com 




Stephane Rosa [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED] 
25-05-05 11:34 





To
Julien Buratto
[EMAIL PROTECTED] 


cc
users@kannel.org



Subject
Re: cpu load 99% by bearerbox











Fiddling with gdb, I found out that the high cpu load

is caused by the call to gwthread_sleep(10.0); at line

605 of bearerbox.c. 

Tracing further, gwthread_sleep calls poll(), with a

timeout of 10 seconds. When I step that line, gdb 
hangs for the entire 10 seconds and the cpu raises

straight to 99%. 

poll() is supposed to sleep until something happend

on an fd, I have no idea why this happens. 

Those two pieces of code seem not to have 
changed since 2003, so I'm surprised we are 
not all of us seeing the same issue. 

I will compile and run it on Solaris to see if it 
makes any difference. Maybe poll() behaves 
differently on RedHat SE. 

Cheers 
Stephane 


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com 



Julien Buratto [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED] 
24-05-05 17:49 





To
Stephane Rosa [EMAIL PROTECTED]



cc
users@kannel.org



Subject
Re: cpu load 99% by bearerbox












Stephane Rosa wrote:
 
 Thanks Julien, I did that already and the gdb thing
 reveals a backtrace on gwthread_sleep like you were
 experiencing I guess.
 
 May I ask how you solved your problem ?
 
 Thanks
 

Make this laught: I havent' :)
I'm still using 1.4.0 because CVS goes into cpu overload so I've decided

to manually patch the 1.4.0 and apply there my own code.

J



Re: cpu load 99% by bearerbox

2005-05-24 Thread Stephane Rosa

After having done some research in the
devel list, I need to add that :

1) I tried to add the setting 'store-dump-freq
10' in the core section since
it seems to default to -1 instead of
10 as in the documentation. That did not
change anything.

2) I'm using a UCP/EMI smsc, so I don't
feel concerned by the thead
about smsc_cimd2.c causing 99% cpu.

3) my cpu is still at 99% with no messages
in/outbound at all, here is the
content of the status page :

Kannel bearerbox version `cvs-20050506'. Build
`May 6 2005 13:26:05', compiler `3.2.3 20030502 (Red Hat Linux 3.2.3-47)'.
System Linux, release 2.4.21-27.EL, version #1 Wed Dec 1 22:08:15 EST 2004,
machine i686. Hostname smsgate, IP 127.0.0.1. Libxml version 2.5.10. Using
OpenSSL 0.9.7a Feb 19 2003. Compiled with MySQL 4.1.11, using MySQL 4.1.11.
Using native malloc. 
Status: running, uptime 0d 0h 16m 2s
WDP: received 0 (0 queued), sent 0 (0 queued)
SMS: received 0 (0 queued), sent 1 (0 queued),
store size 0
SMS: inbound 0.00 msg/sec, outbound 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 16m 2s) 
SMSC connections:
swisscomEMI2:xxx.xxx.xx.xxx::x
(online 198s, rcvd 0, sent 1, failed 0, queued 0 msgs)

Thanks for your help (at least I read
the mailing lists...) :-)

Stephane


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Stephane Rosa [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
24-05-05 13:53




To
users@kannel.org


cc



Subject
cpu load 99% by bearerbox









hi, 

although kannel is totally idle in terms of messages, the bearerbox is
eating all my cpu. 
I run cvs 20050506. 

thanks 



-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com


Re: cpu load 99% by bearerbox

2005-05-24 Thread Stephane Rosa

Thanks Julien, I did that already and
the gdb thing
reveals a backtrace on gwthread_sleep
like you were
experiencing I guess.

May I ask how you solved your problem
?

Thanks


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Julien Buratto [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
24-05-05 17:22




To
Stephane Rosa [EMAIL PROTECTED]


cc



Subject
Re: cpu load 99% by bearerbox








Stephane Rosa wrote:
 
 After having done some research in the devel list, I need to add that
:
 
 1) I tried to add the setting 'store-dump-freq 10' in the core section

 since
 it seems to default to -1 instead of 10 as in the documentation. That

 did not
 change anything.
 
 2) I'm using a UCP/EMI smsc, so I don't feel concerned by the thead
 about smsc_cimd2.c causing 99% cpu.
 
 3) my cpu is still at 99% with no messages in/outbound at all, here
is the
 content of the status page :
 

I have the same problem with CVS and cannot use it.
I'm using 1.4.0 with no problems.

Check previous tests and suggestions I've received in the past 2 months

J



Re: SMSC Options

2005-05-18 Thread Stephane Rosa

Hi Jimmy,

by googling SMSC USA UCP I got this
hit : http://www.gsmfavorites.com/sms/smsc-list/

As I can see, the providers in the US
are most likely to use TAP, which is an old
pager protocol that Kannel does not
support (as far as I know). You could probably
contact european providers (since GSM
is much more developped there) and maybe
they can offer you UCP over TCP/IP even
if you're overseas.

A mobile phone pool could also work,
but remember that Kannel also support
HTTP protocol, if you can find an SMS
gateway provider using web based interface
that might be a solution as well.

HTH


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





Jimmy McMillan [EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
18-05-05 16:50




To
users@kannel.org


cc



Subject
SMSC Options








First let me explain that I'm in the US, and this
is my first message to 
this list, nice to meet you all ;)

I''ve been reading about the SMSC options, and I'm rather confused. I'm

currently working on making a SMS gateway server for another company 
this will be sending mass MMS messages to thousands of users. I've

looked into using GSM modems, for instance, getting 15-20 cingular 
phones or PCMCIA cards and setting them up round-robin style with 
kannel, but I'm unpleased with this option. I'm really interested
in 
the TCP/IP options, like SMPP and/or CMG SMS, but I have no idea where

to find these solutions. I've googled until my fingers were bleeding

and the only thing I could find was http://www.simplewire.com/ . They

are majorly pricey especially for begining testing purposes. Are
their 
any other SMPP or CMG providers that I'm not finding?

I'd rather go the internet way instead of the hardware way, can someone

point me in the proper path? 

Thanks in advance.

Jimmy




Re: Compiling on Red HAt 9.0

2005-05-09 Thread Stephane Rosa

Hi Richard,

the kerberos include file was not found
by configure. You need to add the following when you run ./configure :

--with-cflags=-I/usr/kerberos/include

Hope it helps
Stephane


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com





[EMAIL PROTECTED]

Sent by: [EMAIL PROTECTED]
07-05-05 11:04




To
users@kannel.org


cc



Subject
Compiling on Red HAt 9.0








Hi

I am new to Kannel

When I have tried to run make on the source I get this error

gcc -D_REENTRANT=1 -I. -Igw -D_XOPEN_SOURCE=600 -D_BSD_SOURCE
-I/usr/include/libxml2 -I/usr/include/openssl -o gw/bb_alog.o -c gw/bb_alog.c
In file included from /usr/include/openssl/ssl.h:179,
 from gwlib/conn.h:274,
 from gwlib/gwlib.h:94,
 from gw/bb_alog.c:64:
/usr/include/openssl/kssl.h:72:18: krb5.h: No such file or directory
In file included from /usr/include/openssl/ssl.h:179,
 from gwlib/conn.h:274,
 from gwlib/gwlib.h:94,
 from gw/bb_alog.c:64:
/usr/include/openssl/kssl.h:132: parse error before krb5_enctype
/usr/include/openssl/kssl.h:134: parse error before FAR
/usr/include/openssl/kssl.h:135: parse error before '}' token
/usr/include/openssl/kssl.h:147: parse error before kssl_ctx_setstring
/usr/include/openssl/kssl.h:147: parse error before '*' token
/usr/include/openssl/kssl.h:148: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:149: parse error before '*' token
/usr/include/openssl/kssl.h:150: parse error before '*' token
/usr/include/openssl/kssl.h:151: parse error before kssl_ctx_setprinc
/usr/include/openssl/kssl.h:151: parse error before '*' token
/usr/include/openssl/kssl.h:153: parse error before kssl_cget_tkt
/usr/include/openssl/kssl.h:153: parse error before '*' token
/usr/include/openssl/kssl.h:155: parse error before kssl_sget_tkt
/usr/include/openssl/kssl.h:155: parse error before '*' token
/usr/include/openssl/kssl.h:157: parse error before kssl_ctx_setkey
/usr/include/openssl/kssl.h:157: parse error before '*' token
/usr/include/openssl/kssl.h:159: parse error before context
/usr/include/openssl/kssl.h:160: parse error before kssl_build_principal_2
/usr/include/openssl/kssl.h:160: parse error before context
/usr/include/openssl/kssl.h:163: parse error before kssl_validate_times
/usr/include/openssl/kssl.h:163: parse error before atime
/usr/include/openssl/kssl.h:165: parse error before kssl_check_authent
/usr/include/openssl/kssl.h:165: parse error before '*' token
/usr/include/openssl/kssl.h:167: parse error before enctype
In file included from gwlib/conn.h:274,
 from gwlib/gwlib.h:94,
 from gw/bb_alog.c:64:
/usr/include/openssl/ssl.h:909: parse error before KSSL_CTX
/usr/include/openssl/ssl.h:915: `debug' redeclared as different kind of
symbol
gwlib/log.h:114: previous declaration of `debug'
/usr/include/openssl/ssl.h:931: parse error before '}' token
make: *** [gw/bb_alog.o] Error 1

I have tried to ensure that the compatiblit of the linraries is as up to
date as
possible.

Is anybody running Kannel on Red Hat 9.0 and can advise about the error

Regards

Richard







/etc/init.d/kannel for RedHat

2005-05-09 Thread Stephane Rosa

Hi there,

if someone is interested, I made a new
init.d script for Kannel under redhat. It does not
make use of start-stop-daemon but uses
the internal stuff instead. I also added PID handling
and auto-start of either smsbox, wapbox
or both based on the config file.

To use it, assuming Kannel wil run under
user/group sms, do the following as root after having
saved the file in /etc/init.d/kannel
and fixed any path if needed :

mkdir /var/run/kannel
chown sms.sms /var/run/kannel
chgrp ug+rwx,o-rwx /var/run/kannel
chkconfig --add kannel
chkconfig kannel on
/etc/init.d/kannel start

Hope it helps. If you find any bugs
or improvements... I'll be glad to hear about it.
Stephane

=== /etc/init.d/kannel
#!/bin/bash
#
# gateway This shell script takes care of starting
and stopping
# the Kannel SMS
 WAP gateway
# Original version
Fabrice Gatille fgatille_AT_ivision.fr
# Modified by Stephane
Rosa stephane.rosa_AT_stryker.com for RedHat9
# chkconfig: 2345 97 03
# description: Kannel is an SMS and WAP gateway

VERSION=`/usr/local/bin/gw-config --version`
OPTIONS=--daemonize --user sms --pid-file /var/run/kannel/

KANNELPATH=/usr/local/sbin
CONF=/etc/kannel.conf

# Source function library  networking conf.
. /etc/init.d/functions
[ -f /etc/sysconfig/network ]  . /etc/sysconfig/network

# Check that we are root ... so non-root users stop
here
[ `id -u` = 0 ] || exit 1

# Various other checks
[ ${NETWORKING} = yes ] || exit 0
[ -x $KANNELPATH/bearerbox ] || exit 0
[ -x $KANNELPATH/smsbox ] || exit 0
[ -x $KANNELPATH/wapbox ] || exit 0
[ -f $CONF ] || exit 0

RETVAL=0; RETVAL1=0; RETVAL2=0; RETVAL3=0
prog=Kannel

start() {
 # Check that at least one group is defined
for sms
 # and/or wap to start the bearer. Then
start boxes
 # as needed.
 startsms=`egrep -se '^[ \t]*group *=
*smsbox' $CONF`
 startwap=`egrep -se '^[ \t]*group *=
*wapbox' $CONF`
 if [ -n $startsms$startwap
]; then
   echo -n Starting bearer
service ($prog $VERSION): 
   daemon /usr/local/sbin/bearerbox
${OPTIONS}bearerbox.pid -- $CONF
   RETVAL1=$?
   echo
 else
   exit 0
 fi

 if [ -n $startsms ]; then
   echo -n Starting smsbox
service ($prog $VERSION): 
   daemon /usr/local/sbin/smsbox
${OPTIONS}smsbox.pid -- $CONF
   RETVAL2=$?
   echo
 fi

 if [ -n $startwap ]; then
   echo -n Starting wapbox
service ($prog $VERSION): 
   daemon /usr/local/sbin/wapbox
${OPTIONS}wapbox.pid -- $CONF
   RETVAL3=$?
   echo
 fi

 let RETVAL=$REVAL1+$RETVAL2+$RETVAL3
 if [ $RETVAL -eq 0 ]; then
   touch /var/lock/subsys/gateway
 fi
 return $RETVAL
}

stop() {
 echo -n Shutting down $prog $VERSION:

 killproc wapbox quiet
 RETVAL3=$?
 killproc smsbox quiet
 RETVAL2=$?
 killproc bearerbox quiet
 RETVAL1=$?
 echo

 let RETVAL=$REVAL1+$RETVAL2+$RETVAL3
 if [ $RETVAL -eq 0 ]; then
   rm -f /var/lock/subsys/gateway
 fi
 return $RETVAL
}

# See how we were called.
case $1 in
 start)
   # Start daemons.
   start
 ;;

 stop)
   # Stop daemons
   stop
 ;;

 restart)
   # Restart daemons
   stop
   sleep 1
   start
 ;;

 status)
   status bearerbox
   status smsbox
   status wapbox
   exit $?
 ;;

 *)
   echo Usage: named {start|stop|status|restart}
   RETVAL=1
esac

exit $RETVAL


-- 
Stephane Rosa
IT Security  Network Specialist, EMEA
Tel: +41 21 966-1238
Cell: +41 79 616-0828

Stryker EMEA
Grand Rue 92
CH-1820 Montreux
http://www.europe.stryker.com