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.

 

No.     Time        Source                Destination           Protocol Length 
    Info
      3 3.268497    1.1.1.1                2.2.2.2               RADIUS   113   
 Access-Request(1) (id=50, l=69)

Frame 3: 113 bytes on wire (904 bits), 113 bytes captured (904 bits)
Linux cooked capture
Internet Protocol Version 4, Src: 1.1.1.1 (1.1.1.1), Dst: 2.2.2.2 (2.2.2.2)
User Datagram Protocol, Src Port: 42580 (42580), Dst Port: radius (1812)
Radius Protocol
    Code: Access-Request (1)
    Packet identifier: 0x32 (50)
    Length: 69
    Authenticator: 9283df0bc7566891b5103fdcb78ae86d
    [The response to this request is in frame 4]
    Attribute Value Pairs
        AVP: l=13  t=Called-Station-Id(30): 89213039240
        AVP: l=12  t=Calling-Station-Id(31): 8612033848
        AVP: l=12  t=User-Name(1): 8612033848
        AVP: l=6  t=NAS-Port(5): 5060
        AVP: l=6  t=NAS-IP-Address(4): 1.1.1.1

No.     Time        Source                Destination           Protocol Length 
    Info
      4 4.275556    2.2.2.2                 1.1.1.1              RADIUS   64    
 Access-Reject(3) (id=50, l=20)

Frame 4: 64 bytes on wire (512 bits), 64 bytes captured (512 bits)
Linux cooked capture
Internet Protocol Version 4, Src: 2.2.2.2 (2.2.2.2), Dst: 1.1.1.1 (1.1.1.1)
User Datagram Protocol, Src Port: radius (1812), Dst Port: 42580 (42580)
Radius Protocol
    Code: Access-Reject (3)
    Packet identifier: 0x32 (50)
    Length: 20
    Authenticator: a41bae3fb27b20d439161eb531fd74a9
    [This is a response to a request in frame 3]
    [Time from request: 1.007059000 seconds]


_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to