Re: RedHat 9 and Kannel 1.4.0 (Compile failed)

2005-10-15 Thread Alejandro Ramirez
Zeko:

 What happens theres is that redhat doesn't install all ofthe  openssl packages 
in standard places. l solved this by copying the files were kannel is 
Expecting them. If you google around you'll see that Kannel is not the only one 
hqving trouble locating those files!

Good luck!

Alejandro 



Mblox Patch

2005-09-29 Thread Alejandro Ramirez
Hello!


I've been trying to search in the mailing lists how i can get the mblox 
patch for version 1.3.2 (I understand the patch only works with this ver. of 
kannel) but i have not had any success. I understand i need to use CVS, but im 
totally new to CVS so i can't find the patch. Can someone be so kind to explain 
to me where (and how) i can download this patch?

Thank you,

Alejandro Ramírez



Re: sms send problem

2005-09-09 Thread Alejandro Ramirez
John:

  Hello, from your post I understand you do not have a GSM modem as SMSC, 
nor do you have a connection to a real SMSC. So... you cannot send and SMS as a 
result. This is logical. I recomend further reading as to how this type of 
messaging works. Am i not understanding you maybe? If so, pls post your 
smskannel.conf so we can be of help

Greetings,


Alejandro


- Original Message -
From: john decot [EMAIL PROTECTED]
To: users@kannel.org
Sent: Thu,  8 Sep 2005 23:53:52 -0600
Subject: sms send problem


 Hi all,
   i m first time to setting up kannel. i have used sample smskannel.conf  and
 run the daemon. i have tried to sent sms from http. Logs show as follows:
  
 2005-09-09 10:42:03 [3301] [3] INFO: sendsms sender:tester:13013 (127.0.0.1)
 to: xxxyy msg:hello
 2005-09-09 10:42:05 [3301] [3] INFO: smsbox: Got HTTP request /favicon.ico
 from 127.0.0.1
 2005-09-09 10:44:30 [3301] [3] INFO: smsbox: Got HTTP request /favicon.ico
 from 127.0.0.1
 2005-09-09 10:44:31 [3301] [3] INFO: smsbox: Got HTTP request /favicon.ico
 from 127.0.0.1
 
 where xxx= country code
   yy= mobile no.
  
 web browser shows successfully sent. But i am not getting message in my 
 mobile.
 I am connected to internet only no other hardware is there. i have heard that 
 we
 can send message without using mobile set gateway.
  
  
 what may be the problem with my kannel.  Any help will be apprieciated.
  
  
 thanks in advance.
  
 john.
 
   
 -
  Click here to donate to the Hurricane Katrina relief effort.
 




Re: Kannel Suicide

2005-09-02 Thread Alejandro Ramirez
Very interesting this MONIT thing... is it possible to see how your script 
starts kannel.. my init.d script does not create a PID file in /var/run for 
smsbox or sqlbox or... any box. How do you manage that?? 

Thank you!

Alejandro Ramírez




- Original Message -
From: Jonathan Houser [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: users@kannel.org
Sent: Fri,  2 Sep 2005 07:44:47 -0600
Subject: Re: Kannel Suicide


 
 Reuben,
 
  My problem is that when I start kannel and send an sms via the HTTP
  service on my server everything is ok and I leave bearerbox and smsbox
  running. But when I check back on them, I always find something wrong.
  Sometimes smsbox kills itself and the HTTP service is no longer
  available.. Sometimes both processes kill themselves. Sometimes
  brearerbox looses connection with the SMSC and I have to restart
  bearerbox for it to try to login again. Is there a way how this can be
  avoided? If the connection is lost with the SMSC, can bearerbox
  reconnect to the SMSC automatically? If the processes are terminated
  unexpectedly, can I create a bash script that detects if they are
  running and if not, it launches them? I was going to killall bearerbox
  and killall smsbox every few hours and re launch them again but it is
  not very wise because kannel might still be down for hours until the
  next killall and relaunch commands are executed. I dont afford one
  second of downtime. And if kannel was performing ok, it would have been
  killed and relaunched for nothing. Can anyone help please in avoiding
  kannel to commit suicide? Or if it does, can we resurrect it immediately?
 
  Been there.  Done that.  Two things:  First of all, it would be
 good to do a grep -rF PANIC /your/kannel/log/dir/* to find what's
 causing them to crash -- it may be something that's been fixed or could
 be fixed.  Secondly, use a monitoring daemon.  I built some init scripts
 for Kannel (one for bearerbox, one for smsbox -- then since I'm using
 Gentoo I made smsbox depend on {and thus automatically start} bearerbox,
 and bearerbox will also stop smsbox before it stops itself accordingly).
  I personally use monit.  I have it watch the PID file of smsbox, and
 have it call /etc/init.d/bearerbox stop to stop the service,
 /etc/init.d/smsbox start to start it.  I did have to do some extra
 work with scripts for monit because monit will call only the start
 script if the process is not running, which won't work because the
 damaged bearerbox really needs to be stopped first too.  Anyway, back to
 the first statement.  I have had what *was* the latest Kannel break WAP
 with some handsets, so I instead had to backport and add new patches to
 my working version to keep it from PANIC'ing.  For whatever reason, if
 the slightest little thing goes wrong and triggers an assert(), Kannel
 freaks out and exits.  For me it was empty PDUs from WAP and then more
 recently empty List's.  Neither of those actually cause catastrophic,
 irrecoverable damage to Kannel if I wrap them up in quick if ( x ==
 NULL ) checks, so they obviously weren't that bad.  You're probably
 seeing the same sort of non-fatal oh crap, let's panic and exit checks
 biting you.  As stated, they may have already been fixed, or may be
 really easy to wrap up in a quick check to keep them from taking down
 your Kannel as well.
 
 Jon
 
 




Re: DATAGRAM MODE

2005-08-29 Thread Alejandro Ramirez
Again thank you Envin!!

Jeetendra... to place my scenario: I have several SMPP connections and in the 
previous config if I modifyed smsc_smpp.c it would alter all of my connections. 
Besides i only needed this type of SMS message during one broadcast and this 
SMPP connection was used for several other applications.

Overall Enver's patch is a real life saver. It should be included in the next 
version of Kannel!

Alejandro Ramirez


- Original Message -
From: Enver ALTIN [EMAIL PROTECTED]
To: users@kannel.org
Sent: Mon, 29 Aug 2005 10:22:56 -0600
Subject: Re: DATAGRAM MODE


 Hey,
 
 On Mon, 2005-08-29 at 15:58 +0530, Jeetendra Singh wrote:
  Just a question, why to implement it on a per message basis? I assume
  that esm_class is a SMSC-connection feature and thus should be a SMPP
  smsc group parameter in configuration file.
 
 Good question. The answer is, really, I needed it to be that way. Feel
 free to change it as you wish.
 -- 
 .O.
 ..O   Enver ALTIN   |   http://skyblue.gen.tr/
 OOO   Software developer @ Parkyeri | http://www.parkyeri.com/
 
 




DATAGRAM MODE

2005-08-27 Thread Alejandro Ramirez
Hello All!!

I really need to set up a broadcast, but telco is asking me to send the 
messages with ESM CLASS of DATAGRAM MODE. I've read in the mailing list and 
I've changed the line 638 of the code of smsc_smpp.c to the corresponding type.

How ever when I try to send a SMS it STILL goes out with the ESM CLASS of STORE 
 Forward???

Do i need to change the code somewhere else??

Do i have to ask the Telco to comply to this settings??

Any Help will be appreciated! thank you!!!


Alejandro Ramirez




SMS Service questions

2005-07-28 Thread Alejandro Ramirez
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




DLR missing parameters?

2005-07-14 Thread Alejandro Ramirez


Hello All!

I've finally managed to semi configure DLR, and by semi I mean this: 
in access.log i have 

This is the SENT msg:

2005-07-13 16:44:39 2005-07-13 22:44:38 Sent SMS [SMSC:SOMESMPP] [SVC:tester] 
[ACT:] [BINF:] [from:333] [to:55046300] [flags:-1:0:-1:-1:7] 
[msg:12:dlrtest2you] [udh:0:] [MSGIX:a553fd05-298f-4070-89d8-757cf66cc486] 
[CODING:-1]

After that I get this:

2005-07-13 16:51:55 2005-07-13 22:51:55 DLR SMS [SMSC:SOMESMPP] [SVC:tester] 
[ACT:] [BINF:] [from:333] [to:55046300] [flags:-1:-1:-1:-1:1] 
[msg:114:id:0753745513 sub:001 dlvrd:001 submit date:0507131649 done 
date:0507131656 stat:DELIVRD err:061 text:dlrtest2yout] [udh:0:] 
[MSGIX:dbcd3a5b-1386-45db-936e-19b101eb4a41] [CODING:-1]

And I've sent the message using Sendsms facility in kannel like this:


http://192.168.199.5:13013/cgi-bin/sendsms?username=testerpassword=foobarto=55046300from=333text=dlrtest2yousmsc=SOMESMPPdlr-mask=7dlr-url=http://192.168.10.131/cgi-bin/dlr2me.pl?dlr=%25d%3Fphone%3D%25p

in my MySQL SQLBOX i see 2 entries just like in the access.log

one Mobile Terminated that has dlr-url
http://192.168.10.131/cgi-bin/dlr2me.pl?dlr=%d?phone=%p
and dlr-mask 7

and one Mobile Originated with dlr-url
http://192.168.10.131/cgi-bin/dlr2me.pl?
and dlr-mask 1

NOTICE that the movile originated is missing the dlr=%d?phone=%p part, so my 
simple perl CGI script gets nothing.

what am i doing wrong??? any clues all of you Kannel Gurus?

Sorry if i went into much detail in this mail, but i think it might help more 
newbies like me if read sometime in the future!


Thank you all!!


Alejandro

 




Re: Statistics Sent / Received

2005-05-02 Thread Alejandro Ramirez

Im using the access log file... it works just fine. Im working a on a simple 
perl script using File::Tail which allows me to do billing to an SQL Server 
(using freetds..) in real time. Just try to set the access.log file to a more 
standard format (CSV compatible works well..).

It is really on my wish the CDR feature for Kannel!!


Good Luck!

Alejandro

-- Original Message --
From: Mohamed Sadok MOUHA [EMAIL PROTECTED]
Date:  02 May 2005 10:35:25 +0100

Hi to all,

I need to establish statistics for sent / received SMS messages for
billing purposes. Any recommendation please? Right now I'm analyzing
Kannel access log file, any tool to make this easier?

Thanks,

Sadok





Match two services at the same time??

2005-04-04 Thread Alejandro Ramirez


Hello all!

   I'm trying to make Kannel match two services at the same time... is this 
possible

for example one might do a simple get-url
while other with get-url with max-messages=0 (Billing purposes)

is this possible?

How do you guys do your billing using Kannel??


Thank you!!


Alex!