[Kamailio-Users] Radius
Hi, I'm using Kamailio - posted this to the opensips list as I thought I may get support from the ag guys but nothing.. Has anyone else experienced this or have an idea as to what it may be? Having a very small but annoying issue with Radius Accounting. Everything is getting written fine except for 'Source-Port' This appears in radius.log everytime a record is written/updated. - Error: rlm_radutmp: NAS OpenSER port 5060 unknown packet type 15 It's writing this into the text files and value to the radacct table: Source-Port = \304\023 All other information is being written correctly. CDRTool version: 7.0 Freeradius version: 1.1.7-4 mediaproxy version: 2.3.10 Kamailio Version: 1.5.3 Using the dictionary files that ship with CDRTool From accounting: modparam(acc, db_url, mysql://openser:x...@localhost/openser) modparam(acc, db_flag, 2) modparam(acc, log_flag, 2) modparam(acc, db_missed_flag, 3) modparam(acc, radius_config, /etc/radiusclient-ng/radiusclient.conf) modparam(acc, radius_flag, 2) modparam(acc, radius_missed_flag, 3) modparam(acc, radius_extra, User-Name=$Au; \ Calling-Station-Id=$from; \ Called-Station-Id=$to; \ Sip-Translated-Request-URI=$avp(s:translated_uri); \ Sip-RPid=$avp(s:rpid); \ Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$avp(s:can_uri); \ Billing-Party=$avp(s:billing_party); \ Divert-Reason=$avp(s:divert_reason); \ X-RTP-Stat=$hdr(X-RTP-Stat); \ Contact=$hdr(contact); \ Event=$hdr(event); \ SIP-Proxy-IP=$avp(s:sip_proxy_ip); \ ENUM-TLD=$avp(s:enum_tld)) Obviously it's not a show stopper but it's just bugging the hell out of me :) If any more info is required please let me know and I will provide ASAP. TIA, Stephen ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] Radius
It seems to be a type mismatch. You are trying to push an int into a a string or viceversa. Try to use transformations (to translate from int into a str) and see if that works out ok. Regards, Ovidiu Sas On Wed, Mar 24, 2010 at 4:50 PM, dotnetdub dotnet...@gmail.com wrote: Hi, I'm using Kamailio - posted this to the opensips list as I thought I may get support from the ag guys but nothing.. Has anyone else experienced this or have an idea as to what it may be? Having a very small but annoying issue with Radius Accounting. Everything is getting written fine except for 'Source-Port' This appears in radius.log everytime a record is written/updated. - Error: rlm_radutmp: NAS OpenSER port 5060 unknown packet type 15 It's writing this into the text files and value to the radacct table: Source-Port = \304\023 All other information is being written correctly. CDRTool version: 7.0 Freeradius version: 1.1.7-4 mediaproxy version: 2.3.10 Kamailio Version: 1.5.3 Using the dictionary files that ship with CDRTool From accounting: modparam(acc, db_url, mysql://openser:x...@localhost/openser) modparam(acc, db_flag, 2) modparam(acc, log_flag, 2) modparam(acc, db_missed_flag, 3) modparam(acc, radius_config, /etc/radiusclient-ng/radiusclient.conf) modparam(acc, radius_flag, 2) modparam(acc, radius_missed_flag, 3) modparam(acc, radius_extra, User-Name=$Au; \ Calling-Station-Id=$from; \ Called-Station-Id=$to; \ Sip-Translated-Request-URI=$avp(s:translated_uri); \ Sip-RPid=$avp(s:rpid); \ Source-IP=$si; \ Source-Port=$sp; \ Canonical-URI=$avp(s:can_uri); \ Billing-Party=$avp(s:billing_party); \ Divert-Reason=$avp(s:divert_reason); \ X-RTP-Stat=$hdr(X-RTP-Stat); \ Contact=$hdr(contact); \ Event=$hdr(event); \ SIP-Proxy-IP=$avp(s:sip_proxy_ip); \ ENUM-TLD=$avp(s:enum_tld)) Obviously it's not a show stopper but it's just bugging the hell out of me :) If any more info is required please let me know and I will provide ASAP. TIA, Stephen ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
[Kamailio-Users] RADIUS problem
I am configuring RADIUS with openser and CDRtool. when i dial a number it loges into in mysql of RADIUS server but it gives the following error. and when i check CDRs of CDRtool it shows all calls *inprogress. * Tue Nov 24 19:47:37 2009 : Error: rlm_sql (sql) in sql_accounting: stop packet with zero session length. [user '1...@ip address''1...@ip%20address', nas 'ipaddress'] -- Toqeer Ali Syed Red Hat Certified Engineer mob: +92 321 9059916 ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] RADIUS for billing
Alex, et al. Knowing that AG's CDRtool requires a RADIUS server (FreeRADIUS), is there a similar real-time rating engine project that will just use the acc module postings? Alex wrote: Import the 'acc' module table schema from the tarball into MySQL, configure the 'acc' module to log to the database, set the accounting flags in your code, and you're set. Cheers, Kyle -- Kyle Romulas Chief Technologist DH Platform-Services ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
[Kamailio-Users] RADIUS for billing
Dear All, I am trying to configure openSER for billing.After a lot og googling, i came to know that RADIUS is needed for anabling billing module. I would like to know if RADIUS is a MUST for billing or can i manage using mysql alone. I have configured accounting module in openser.can i use mysql and a CDR tool for billing?.. -- Regards, Rajesh Sreedharan Software Trainee-Wireless Mobile Technology SIPTECH Solutions Limited G4, Elnet Software City, CPT Road, Taramani, Chennai - 600 113, India. Tel : +91 (44) 2254 1473/ 74 Extn.:206 Fax : +91 (44) 2254 1475 E-Mail :rajesh.sreedha...@siptech.com Website : www.siptech.com ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] RADIUS for billing
Dear Alex, Thanks for the valuable post.Otherwise, I would have been toddling with RADIUS.Kindly let me know how do i proceed with openSER and using Mysql to do the billing.. Alex Balashov wrote: RADIUS is not a must; you can use plain database records the 'acc' module puts out for billing. In fact, unless you have a specific need for RADIUS due to billing software that operates on its record format, or have some other reason for it, it is unnecessary complexity you should avoid. There are some technical and resilience advantages to using RADIUS, but in my opinion they hardly justify the complexity (especially for a new user) unless you have an identifiable need to use it. Rajesh wrote: Dear All, I am trying to configure openSER for billing.After a lot og googling, i came to know that RADIUS is needed for anabling billing module. I would like to know if RADIUS is a MUST for billing or can i manage using mysql alone. I have configured accounting module in openser.can i use mysql and a CDR tool for billing?.. -- Regards, Rajesh Sreedharan Software Trainee-Wireless Mobile Technology SIPTECH Solutions Limited G4, Elnet Software City, CPT Road, Taramani, Chennai - 600 113, India. Tel : +91 (44) 2254 1473/ 74 Extn.:206 Fax : +91 (44) 2254 1475 E-Mail :rajesh.sreedha...@siptech.com mailto:rajesh.sreedha...@siptech.com? Website : www.siptech.com http://www.siptech.com/ http://www.siptech.com ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users -- Regards, Rajesh Sreedharan Software Trainee-Wireless Mobile Technology SIPTECH Solutions Limited G4, Elnet Software City, CPT Road, Taramani, Chennai - 600 113, India. Tel : +91 (44) 2254 1473/ 74 Extn.:206 Fax : +91 (44) 2254 1475 E-Mail :rajesh.sreedha...@siptech.com Website : www.siptech.com ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] RADIUS for billing
Rajesh wrote: Thanks for the valuable post.Otherwise, I would have been toddling with RADIUS.Kindly let me know how do i proceed with openSER and using Mysql to do the billing.. Import the 'acc' module table schema from the tarball into MySQL, configure the 'acc' module to log to the database, set the accounting flags in your code, and you're set. -- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671 ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
[Kamailio-Users] radius doesn't support in latest kamailio build, os and openser version combination recommendation needed
Does anybody have experience with kamailio for debian build ? I used debian etch and used this build kamailio_1.4.1_i386.deb and it can't work with radius. I had this proper configuration: loadmodule auth_radius.so .. modparam(acc, radius_flag, 1) modparam(acc, radius_missed_flag, 2) but the kamailio complains: Not starting kamailio: invalid configuration file! Feb 27 16:08:24 [1636] ERROR:core:set_mod_param_regex: parameter radius_flag not found in module acc Feb 27 16:08:24 [1636] CRITICAL:core:yyerror: parse error in config file, line 152, column 19-20: Can't set module parameter Feb 27 16:08:24 [1636] ERROR:core:main: bad config file (1 errors) does any body have a good recommendation for OS and custom build version ? I am trying to run it in xen 3.0 for debian etch, debian lenny, and I tried opensips 1.4.4 and kamailio 1.4.1, so far I found kamailio 1.4.1 having problem with openradius support, opensips having problem with documentation and hard to find answer. lenny kernel is not stable, some times the whole OS just crashes. Does any body have good exprience certain OS and kamailio/opensips version combination ? Jimmy ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] radius doesn't support in latest kamailio build, os and openser version combination recommendation needed
Hello, acc module does not compile the radius support by default. Before building the packages, go in the sources and edit: modules/acc/Makefile and uncomment line: #ENABLE_RADIUS_ACC=true Then build again, radius should be enabled in acc. I think you should update dependencies to lib radius client, if you want to be strict in packaging. Cheers, Daniel On 02/27/2009 06:17 PM, Jinsong Hu wrote: Does anybody have experience with kamailio for debian build ? I used debian etch and used this build kamailio_1.4.1_i386.deb and it can't work with radius. I had this proper configuration: loadmodule auth_radius.so .. modparam(acc, radius_flag, 1) modparam(acc, radius_missed_flag, 2) but the kamailio complains: Not starting kamailio: invalid configuration file! Feb 27 16:08:24 [1636] ERROR:core:set_mod_param_regex: parameter radius_flag not found in module acc Feb 27 16:08:24 [1636] CRITICAL:core:yyerror: parse error in config file, line 152, column 19-20: Can't set module parameter Feb 27 16:08:24 [1636] ERROR:core:main: bad config file (1 errors) does any body have a good recommendation for OS and custom build version ? I am trying to run it in xen 3.0 for debian etch, debian lenny, and I tried opensips 1.4.4 and kamailio 1.4.1, so far I found kamailio 1.4.1 having problem with openradius support, opensips having problem with documentation and hard to find answer. lenny kernel is not stable, some times the whole OS just crashes. Does any body have good exprience certain OS and kamailio/opensips version combination ? Jimmy ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users -- Daniel-Constantin Mierla http://www.asipto.com ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] radius doesn't support in latest kamailio build, os and openser version combination recommendation needed
On Friday 27 February 2009, Jinsong Hu wrote: Does anybody have experience with kamailio for debian build? I used debian etch and used this build kamailio_1.4.1_i386.deb and it can't work with radius. I had this proper configuration: loadmodule auth_radius.so .. modparam(acc, radius_flag, 1) modparam(acc, radius_missed_flag, 2) but the kamailio complains: Not starting kamailio: invalid configuration file! Feb 27 16:08:24 [1636] ERROR:core:set_mod_param_regex: parameter radius_flag not found in module acc Feb 27 16:08:24 [1636] CRITICAL:core:yyerror: parse error in config file, line 152, column 19-20: Can't set module parameter Feb 27 16:08:24 [1636] ERROR:core:main: bad config file (1 errors) Hi Jinsong, it seems that the accounting module was not build with the prober RADIUS define. You can either build it from the source yourself, or build your own debian packages. You need to enable some define, take a look to the modules/acc/Makefile file. does any body have a good recommendation for OS and custom build version ? Normally it should be just run fine on any recent linux system. I am trying to run it in xen 3.0 for debian etch, debian lenny, and I tried opensips 1.4.4 and kamailio 1.4.1, so far I found kamailio 1.4.1 having problem with openradius support, opensips having problem with documentation and hard to find answer. lenny kernel is not stable, some times the whole OS just crashes. This is strange, perhaps something related to the XEN environment? Does any body have good exprience certain OS and kamailio/opensips version combination ? We use normal debian and one stable version (still 1.3.x at the moment), but there are many people that uses 1.4.x also successful. Cheers, Henning ___ Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] Radius + openser
Hello, the document can be found under the new dns name: http://www.kamailio.net/docs/openser-radius-1.0.x.html Cheers, Daniel On 08/11/08 10:38, Amit Jain wrote: Hello everyone, I was looking for documentation for Radius AAA + Openser. I tried to google but the links provided are not working. i think since the site has been renamed. Can any provide me document if saved or any other related link. Link to which i was referring . http://openser.org/docs/openser-radius-1.0.x.html Regards, Amit Jain ___ Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users -- Daniel-Constantin Mierla http://www.asipto.com ___ Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users
Re: [Kamailio-Users] Radius + openser
Thanks you very much. On Mon, Aug 11, 2008 at 1:17 PM, Daniel-Constantin Mierla [EMAIL PROTECTED] wrote: Hello, the document can be found under the new dns name: http://www.kamailio.net/docs/openser-radius-1.0.x.html Cheers, Daniel On 08/11/08 10:38, Amit Jain wrote: Hello everyone, I was looking for documentation for Radius AAA + Openser. I tried to google but the links provided are not working. i think since the site has been renamed. Can any provide me document if saved or any other related link. Link to which i was referring . http://openser.org/docs/openser-radius-1.0.x.html Regards, Amit Jain ___ Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users -- Daniel-Constantin Mierla http://www.asipto.com ___ Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users