Hello,
When radius accounting is in use and radius_extra is used like this:
modparam("acc","radius_extra","Sip-Source-IP-Address=$si;Sip-Source-Port=$sp")
and when freeradius gets an accounting-request packet, it includes:
Sip-Source-IP-Address = 46.50.57.49 Sip-Source-Port = 808857653
Is this a known issue?
BR, Henri Keski-Sikkila
The current radius implementation doesn't handle integer AVPs (it handles only string AVPs). Pls check: http://sourceforge.net/tracker/index.php?func=detail&aid=1703003&gro... You may try to workaround this by storing the source port into a string AVP.
Regards, Ovidiu Sas
On Sun, Mar 2, 2008 at 10:11 AM, Henri Keski-Sikkila hekeski@jyu.fi wrote:
Hello,
When radius accounting is in use and radius_extra is used like this:
modparam("acc","radius_extra","Sip-Source-IP-Address=$si;Sip-Source-Port=$sp")
and when freeradius gets an accounting-request packet, it includes:
Sip-Source-IP-Address = 46.50.57.49 Sip-Source-Port = 808857653
Is this a known issue?
BR, Henri Keski-Sikkila
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
El Domingo, 2 de Marzo de 2008, Ovidiu Sas escribió:
The current radius implementation doesn't handle integer AVPs (it handles only string AVPs). Pls check: http://sourceforge.net/tracker/index.php?func=detail&aid=1703003&gro... 39143&atid=743023 You may try to workaround this by storing the source port into a string AVP.
At least in OpenSer 1.3 svn 3733 I can use integer AVP's in radius extra-accounting:
modparam("acc", "radius_extra", SIP-Proxy-IP=$avp(i:28);
Also note that Henri is not using AVP's but pseudovariables $si and $sp.
The radius implementation will convert an integer into a string and it will send the string out. Please check the report carefully.
You are sending a string out (SIP-Proxy-IP is a string). The issue is when you want to sent an _integer_ out. Check the mailing list archive as this issue was discussed before.
Regards, Ovidiu Sas
On Sun, Mar 2, 2008 at 11:32 AM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Domingo, 2 de Marzo de 2008, Ovidiu Sas escribió:
The current radius implementation doesn't handle integer AVPs (it handles only string AVPs). Pls check: http://sourceforge.net/tracker/index.php?func=detail&aid=1703003&gro... 39143&atid=743023 You may try to workaround this by storing the source port into a string AVP.
At least in OpenSer 1.3 svn 3733 I can use integer AVP's in radius extra-accounting:
modparam("acc", "radius_extra", SIP-Proxy-IP=$avp(i:28);
Also note that Henri is not using AVP's but pseudovariables $si and $sp.
-- Iñaki Baz Castillo
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users
El Domingo, 2 de Marzo de 2008, Ovidiu Sas escribió:
The radius implementation will convert an integer into a string and it will send the string out. Please check the report carefully.
You are sending a string out (SIP-Proxy-IP is a string). The issue is when you want to sent an _integer_ out. Check the mailing list archive as this issue was discussed before.
Ok ok, sorry, I thought it was related to AVP(i:number).
Understood now. Thanks.
This things are not easy to explain/put down into an e-mail :| Bu it is good that we reached common ground :)
Regards, Ovidiu Sas
On Sun, Mar 2, 2008 at 12:04 PM, Iñaki Baz Castillo ibc@aliax.net wrote:
El Domingo, 2 de Marzo de 2008, Ovidiu Sas escribió:
The radius implementation will convert an integer into a string and it will send the string out. Please check the report carefully.
You are sending a string out (SIP-Proxy-IP is a string). The issue is when you want to sent an _integer_ out. Check the mailing list archive as this issue was discussed before.
Ok ok, sorry, I thought it was related to AVP(i:number).
Understood now. Thanks.
--
Iñaki Baz Castillo
Users mailing list Users@lists.openser.org http://lists.openser.org/cgi-bin/mailman/listinfo/users