[OpenSIPS-Users] Opensips 1.10.1 and radius problem
dpa
denis7979 at mail.ru
Tue Jun 3 06:01:43 CEST 2014
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:bogdan at opensips.org]
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
Users at lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20140603/30efc5d6/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 906 bytes
Desc: not available
URL: <http://lists.opensips.org/pipermail/users/attachments/20140603/30efc5d6/attachment.gif>
More information about the Users
mailing list