Brekeke Forum Index » Brekeke SIP Server Forum

Post new topic   Reply to topic
Radius attribute <framed-ip-addr>- how to change its m
Author Message
mbylica
Brekeke Addict


Joined: 16 May 2011
Posts: 41
Location: Poland

PostPosted: Thu Jan 12, 2017 10:29 am    Post subject: Radius attribute <framed-ip-addr>- how to change its m Reply with quote

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
Back to top
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Mon Jan 16, 2017 11:20 am    Post subject: Reply with quote

From-URI's host part will be a domain name.
Is it ok to put non IP address string at "framed-ip-address" attribute?
Back to top
View user's profile Visit poster's website
mbylica
Brekeke Addict


Joined: 16 May 2011
Posts: 41
Location: Poland

PostPosted: Tue Jan 17, 2017 2:34 am    Post subject: Reply with quote

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
Back to top
View user's profile
Mike
Support Team


Joined: 07 Mar 2005
Posts: 731
Location: Sunny San Mateo

PostPosted: Tue Jan 17, 2017 3:25 am    Post subject: Reply with quote

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.
Back to top
View user's profile Visit poster's website
mbylica
Brekeke Addict


Joined: 16 May 2011
Posts: 41
Location: Poland

PostPosted: Tue Jan 17, 2017 3:53 am    Post subject: Reply with quote

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

Thanks
Maciej
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    Brekeke Forum Index » Brekeke SIP Server Forum All times are GMT - 7 Hours
Page 1 of 1