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

Reply via email to