Hello Bogdan
What I can see in logs during test call "ERROR:aaa_radius:send_auth_func: radius authentication message failed with ERROR" From: Bogdan-Andrei Iancu [mailto:[email protected]] Sent: Thursday, June 05, 2014 6:20 PM To: dpa; 'OpenSIPS users mailling list' Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem Hi, -1 ret code means some internal error - check the opensips logs for any error. Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 03.06.2014 07:01, dpa wrote: Hello Bogdan Sorry for long answer. I changed opensips.cfg just a little .. radius_send_auth("set1","set2"); switch($rc){ case -2: xlog ("Case -2 in radius route detected"); break; case -1: xlog ("Case -1 in radius route detected"); break; } .. In log file I see "Jun 3 07:19:13 opensips-mirror /usr/local/opensipsdev/sbin/opensips[14956]: Case -1 in radius route detected" Meanwhile tcpdump shows that radius server answers "Rejected" on the request. From: Bogdan-Andrei Iancu [mailto:[email protected]] Sent: Thursday, May 29, 2014 11:26 AM To: OpenSIPS users mailling list; Denis Putyato Subject: Re: [OpenSIPS-Users] Opensips 1.10.1 and radius problem Hi, On each "case", please an "xlog" to print something from the script - in this way you can double check which way your script went. Or, you can use the script_trace() function to do that . See: http://www.opensips.org/Documentation/Script-CoreFunctions-1-11#toc42 Regards, Bogdan-Andrei Iancu OpenSIPS Founder and Developer http://www.opensips-solutions.com On 29.05.2014 09:22, dpa wrote: Hello! I have such configuration in opensips.cfg .. radius_send_auth("set1","set2"); switch($rc){ case -2: exec_msg("echo '$avp(500) $rU $time(%c) rejected' >> /opensips/alarmradius.txt"); break; case -1: exec_msg("echo '$avp(500) $rU $time(%c) radius' >> /opensips/alarmradius.txt"); break; } . In attachment you can see communication of Opensips with radius server during making some test call (1.1.1.1 - Opensips, 2.2.2.2 - radius server) After making a test call i see in alarmradius.txt record with "radius" word. The question is why do I see "radius" word (and it means that Opensips detected "retcode -1") but not "rejected" ("retcode -2") word? Thank you for any help. _______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________ Users mailing list [email protected] http://lists.opensips.org/cgi-bin/mailman/listinfo/users
