Hi Bruno, You helped me alot. Indeed the 'name' is the better choice for unstrusted clients. I believe 'account' is better to split the billing acorddingly to the client's preference while 'name' will consolidated all the cdrs in the gateway perspective.
Thank you very much. -----Original Message----- From: Bruno David Sim�es Rodrigues [mailto:[EMAIL PROTECTED]] Sent: sexta-feira, 5 de abril de 2002 22:05 To: Mauricio Ramos Cc: '[EMAIL PROTECTED]' Subject: Re: Account variable doesn't work in configuration file On Thu, 2002-04-04 at 22:23, Mauricio Ramos wrote: > Hi everybody, > > I'm testing the Kannel 1.1.x CVS Cygwin Port for Win32 and the variable > "account" (SendSMS-User group) in the kannel configuration file doesn't work > accordingly to the Userguide. I configured this variable like this: > > group = sendsms-user > username = telemig > password = foobar > forced-smsc = TELCO > faked-sender = 25100 > account = 25100 > #user-deny-ip = "" > #user-allow-ip = "" > > When I use it, the Bearerbox doesn't load raising these errors in the > console: > > 2002-04-03 00:14:43 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0 > 2002-04-03 00:14:43 [0] ERROR: Group 'sendsms-user' may not contain field > 'account'. > 2002-04-03 00:14:43 [0] ERROR: Error found on 83 of file smskannel.conf. > 2002-04-03 00:14:43 [0] PANIC: No configuration or bad configuration, > aborting. > > I'm curious about this because it should work since it's in the Userguide > ("Table 5-8. SendSMS-User Group Variables") and an empty field "[ACT:] " > appeared in the kannel.access file, like this: Thanks for noticing it. The documentation is wrong and I've commited patch to fix it. Account is a CGI variable that should be used to separate services for billing. For example, I have few services and I don't trust clients ;) and some services should have fixed from numbers, so I have several sendsms-users to recognize them. (using the name field in configuration) But if you trust the clients, the sendsms-users are alike and you need alot of them, it's painfull to have several sendsms-users. Then, you can have just one sendsms-user and ask the client to fill the &account=<something> with a keyword that you can, later, check in bearerbox_access.log and do the billing. > > 2002-04-02 20:52:45 Log begins > 2002-04-02 20:53:33 Sent SMS [SMSC:TELCO] [SVC:telemig] [ACT:] [from:25200] > [to:3199910003] [flags:0:1:0:0:0] [msg:5:Hello] [udh:0:] I'm doing statistics based on SVC (sendsms-user name or smsservice name). You can use AC(coun)t too for it. BTW: People, how are your telco companies doing the billing using kannel logs ? Are you generating CDR's with it ? and what about pre-paids ?
