Hello,
for those interested in installing kamailio (openser) 1.5.0 from SVN repository, I have created a new wiki page: http://www.kamailio.org/dokuwiki/doku.php/install:kamailio-1.5.x-from-svn
If you find something missing or some error there, please update the page.
Hope it's useful! Daniel
Hi all, I compiled successful kamailio 1.5.0-notls, but when I execute it inform as the below. I think radius client dictionary missing attribute of Cisco but I don't know that attribute. Please help me ti fix it.
Mar 4 14:57:24 [18658] NOTICE:core:main: version: kamailio 1.5.0-notls (i386/linux) [root@sersipfone2 sbin]# Mar 4 14:57:24 [18658] ERROR:auth_radius:mod_init: auth_radius: can't get code for the Cisco-AVPair attribute Mar 4 14:57:24 [18658] ERROR:core:init_mod: failed to initialize module auth_radius Mar 4 14:57:24 [18658] ERROR:core:main: error while initializing modules
Hello,
the issue seems to be cause by the move of an if before setting that attribute name.
Is your installation from packages or from sources?
If you have sources, the it is easier to try foolowing:
- open modules/auth_radius/authrad_mod.c - locate mod_init function - inside the function move following piece of code: vend = rc_dict_findvend(rh, "Cisco"); if (vend == NULL) { LM_DBG("no `Cisco' vendor in Radius dictionary\n"); attrs[A_CISCO_AVPAIR].n = NULL; }
before the line:
INIT_AV(rh, attrs, n, vals, V_MAX, "auth_radius", -5, -6);
Try this fix, compile, install, test and report if works ok.
Juha who is the developer and maintainer of this module can confirm if this fixes the issue and commit to svn.
Cheers, Daniel
On 03/04/2009 10:15 AM, Nguyen Duc Phi wrote:
Hi all, I compiled successful kamailio 1.5.0-notls, but when I execute it inform as the below. I think radius client dictionary missing attribute of Cisco but I don't know that attribute. Please help me ti fix it.
Mar 4 14:57:24 [18658] NOTICE:core:main: version: kamailio 1.5.0-notls (i386/linux) [root@sersipfone2 sbin]# Mar 4 14:57:24 [18658] ERROR:auth_radius:mod_init: auth_radius: can't get code for the Cisco-AVPair attribute Mar 4 14:57:24 [18658] ERROR:core:init_mod: failed to initialize module auth_radius Mar 4 14:57:24 [18658] ERROR:core:main: error while initializing modules
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
Hi, I remove # from below line of radius client dictionary then the ERROR go away.
VENDOR Cisco 9 ATTRIBUTE Cisco-AVPair 1 string Cisco # VSA, auth_radius
Thanks a lot, Duc Phi
Daniel-Constantin Mierla wrote:
Hello,
the issue seems to be cause by the move of an if before setting that attribute name.
Is your installation from packages or from sources?
If you have sources, the it is easier to try foolowing:
- open modules/auth_radius/authrad_mod.c
- locate mod_init function
- inside the function move following piece of code: vend = rc_dict_findvend(rh, "Cisco"); if (vend == NULL) { LM_DBG("no `Cisco' vendor in Radius dictionary\n"); attrs[A_CISCO_AVPAIR].n = NULL; }
before the line:
INIT_AV(rh, attrs, n, vals, V_MAX, "auth_radius", -5, -6);
Try this fix, compile, install, test and report if works ok.
Juha who is the developer and maintainer of this module can confirm if this fixes the issue and commit to svn.
Cheers, Daniel
On 03/04/2009 10:15 AM, Nguyen Duc Phi wrote:
Hi all, I compiled successful kamailio 1.5.0-notls, but when I execute it inform as the below. I think radius client dictionary missing attribute of Cisco but I don't know that attribute. Please help me ti fix it.
Mar 4 14:57:24 [18658] NOTICE:core:main: version: kamailio 1.5.0-notls (i386/linux) [root@sersipfone2 sbin]# Mar 4 14:57:24 [18658] ERROR:auth_radius:mod_init: auth_radius: can't get code for the Cisco-AVPair attribute Mar 4 14:57:24 [18658] ERROR:core:init_mod: failed to initialize module auth_radius Mar 4 14:57:24 [18658] ERROR:core:main: error while initializing modules
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 writes:
- open modules/auth_radius/authrad_mod.c
- locate mod_init function
- inside the function move following piece of code: vend = rc_dict_findvend(rh, "Cisco"); if (vend == NULL) { LM_DBG("no `Cisco' vendor in Radius dictionary\n"); attrs[A_CISCO_AVPAIR].n = NULL; }
before the line:
INIT_AV(rh, attrs, n, vals, V_MAX, "auth_radius", -5, -6);
daniel,
the above piece of Cisco specific code is already located before INIT_AV call.
-- juha
Hello Juha,
On 03/06/2009 10:42 AM, Juha Heinanen wrote:
Daniel-Constantin Mierla writes:
- open modules/auth_radius/authrad_mod.c
- locate mod_init function
- inside the function move following piece of code: vend = rc_dict_findvend(rh, "Cisco"); if (vend == NULL) { LM_DBG("no `Cisco' vendor in Radius dictionary\n"); attrs[A_CISCO_AVPAIR].n = NULL; }
before the line:
INIT_AV(rh, attrs, n, vals, V_MAX, "auth_radius", -5, -6);
daniel,
the above piece of Cisco specific code is already located before INIT_AV call.
yes, but it is also before: attrs[A_CISCO_AVPAIR].n = "Cisco-AVPair";
Should be after as I understood the logic there.
Cheers, Daniel