[Serusers] b2bua + SER + RADIUS

Lucas Aimaretto lucas at cyneric.com
Fri Jan 7 17:09:01 CET 2005


I've got some doubts with b2bua. If any body knows, I'd like 
to ask the following ..

This is the configuration.

SER: 			192.168.1.252:5060
b2bua:		192.168.1.253:5065
Radius-auth:	192.168.1.253:1812
Radius-acct:	192.168.1.253:1813
Tel SIP:		192.168.1.178:11005

(Note: I've SER, RADIUS and B2B running on the same PC. To 
identify each service, my linux has 2 IP address, 
192.168.1.253 and 192.168.1.252)

I've sniffed the net ... and got this.

Msg time     ms	    sniffing
1   12:41:39 606789 192.168.1.178.11005 > 192.168.1.253.5065:  udp 2
2   12:41:39 625476 192.168.1.178.11005 > 192.168.1.253.5065:  udp 465
3   12:41:39 793503 192.168.1.252.5065 > 192.168.1.252.5060:  udp 422
4   12:41:39 800937 192.168.1.252.5060 > 192.168.1.252.5065:  udp 673
5   12:41:39 990283 192.168.1.253.5065 > 192.168.1.178.11005:  udp 436
6   12:41:39 995814 192.168.1.178.11005 > 192.168.1.253.5065:  udp 646
7   12:41:40 184280 192.168.1.252.5065 > 192.168.1.252.5060:  udp 603
8   12:41:40 203387 192.168.1.253.41011 > 192.168.1.253.radius:
rad-access-req 271 [id 5] 
9   12:41:40 368387 192.168.1.253.radius > 192.168.1.253.41011:
rad-access-accept 52 [id 5]
10  12:41:40 374554 192.168.1.252.5060 > 192.168.1.252.5065:  udp 629
11  12:41:40 586069 192.168.1.253.5065 > 192.168.1.178.11005:  udp 391
12  12:41:49 632154 192.168.1.178.11005 > 192.168.1.253.5065:  udp 2
			
Which is, basically ...

TEL SIP		B2B		SER		RADIUS
   |------(1)----->|           |             |
   |------(2)----->|----(3)--->|             |
   |               |<---(4)----|             |
   |<-----(5)------|           |             |
   |------(6)----->|           |             |
   |               |----(7)--->|             |
   |               |-----------+--(8)------->|
   |               |<----------+--(9)--------|
   |               |<---(10)---|             |
   |<----(11)------|           |             |
   |-----(12)----->|           |             |

Well, the Tel SIP got registered at the SIP SERVER (SER), as 
usual, ... and I have authentication, with radius, configured 
in SER to be used at REGISTER time ...

[...]

 if (method=="REGISTER")
                {
                         log(1, "REGISTER message received\n");
                         # Lo siguiente es para auth con RADIUS
                         if (!radius_www_authorize(""))
                         {
                                 www_challenge("", "0");
                                 break;
                         };
                         save("location");
                         break;
                 };
 
[...]
 
QUESTION: Why is B2B talking to RADIUS instead of SER ??? 
Should not be SER the one talking to RADIUS ???

If it is really obvious, do not get mad at me ... ;-)

Regards,

Lucas

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.6.9 - Release Date: 06/01/2005
 




More information about the sr-users mailing list