[OpenSIPS-Users] Opensips 1.10.1 and radius problem

Bogdan-Andrei Iancu bogdan at opensips.org
Thu May 29 09:25:39 CEST 2014


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/20140529/de299a86/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/20140529/de299a86/attachment.gif>


More information about the Users mailing list