Radius attribute <framed-ip-addr>- how to change its m

Discuss any topic about Brekeke SIP Server.

Moderator: Brekeke Support Team

Post Reply
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Radius attribute <framed-ip-addr>- how to change its m

Post by mbylica »

1. Brekeke Product Name and Version:
Brekeke SIP Server, Version 3.6.3.0 Advanced

2. Java version:
1.6.0_45

3. OS type and the version:
Linux centos 6.6

4. UA (phone), gateway or other hardware/software involved:
doesn't matter

5. Your problem:
We are using our BSS to work with external billing system.
So BSS exchange AUTH and ACC requests with that system.
For pre-authentication we are using following statement:

$radius.preauth($getSIPuser(From),$getUri(From),$getUri(To),$addr) = true

which in turn generates following AUTH request:
user-password => 10.10.10.148 ——————> 4) $addr
nas-ip-address => 10.10.10.245
user-name => 494949495999 —————————> 1) $getSIPuser(From)
incoming-req-uri => sip:44101101101@10.10.10.148
prev-hop-via => SIP/2.0/UDP 10.10.10.148:5060;branch=z9hG4bK2b47.0a062ca.0
framed-ip-address => 10.10.10.148
called-station-id => sip:44101101101@10.10.10.148 ———————> 3) $getUri(To)
service-type => Login-User
session-protocol => sipv2
dst-number-in => 44101101101
prev-hop-ip => 10.10.10.148:5060
acct-session-id => d56586cc-52a8-1235-6ea3-0025907cf91e
calling-station-id => sip:494949495999@10.20.20.73 ———————> 2) $getUri(From)
call-id => d56586cc-52a8-1235-6ea3-0025907cf91e
nas-port-type => Async
method => INVITE
nas-port => 5060
src-number-in => 494949495999

The question i have is about framed-ip-address. BSS do generate that attribute from incoming source address. Could we change this behavior and let BSS to take the IP from source domain of From header „From = @(.+)>”?

Thanks,
Maciej
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by Mike »

From-URI's host part will be a domain name.
Is it ok to put non IP address string at "framed-ip-address" attribute?
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Post by mbylica »

Hi

Thanks for reply.
It will be IP address taken from From header.
There are no domain names on our sip network.

So, yes we want to use pure IP address, but extracted from From header instead of source IP address.

Is there any chance to modify radius behavior as mentioned?

Thanks
Maciej
Mike
Posts: 733
Joined: Mon Mar 07, 2005 2:25 pm
Location: Sunny San Mateo
Contact:

Post by Mike »

RFC3261 allows us to put an FQDN in the host part of From-URI.

Therefore it will be a custom tuning in the Radius plugin for meeting your requirement.
mbylica
Posts: 41
Joined: Mon May 16, 2011 1:05 pm
Location: Poland

Post by mbylica »

Okay thanks for information.
I will also check with our billing system devs and contact you to proceed with custom changes.

Thanks
Maciej
Post Reply