Hi Dmitry,<br><br>starting of 1.2 version OpenSER does not add anymore any attribute automatically, you must instead add your wishlist manually with radius_extra parameter:<br><a href="http://www.openser.org/docs/modules/1.3.x/acc.html#AEN319">http://www.openser.org/docs/modules/1.3.x/acc.html#AEN319</a><br>
<br>An example of config:<br><br>modparam("acc", "radius_extra", "<br> Called-Station-Id=$tu;<br> Calling-Station-Id=$fu;<br>
Canonical-URI=$(avp(s:canonical_uri));<br> User-Name=$fu;<br> Sip-User-Realm=$ar;<br> Source-IP=$si;<br>
Source-Port=$sp;<br> Acct-Authentic=$(avp(s:authentic));<br> From-Header=$(hdr(from));<br> User-Agent=$(hdr(user-agent));<br>
Contact=$(hdr(contact));<br> Event=$(hdr(event))<br> ")<br><br>Cheers,<br>DanB<br><br><div class="gmail_quote">
On Mon, Jun 2, 2008 at 12:39 PM, Dmitry Lyubimkov <<a href="mailto:loft@onego.ru">loft@onego.ru</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
But we did it!!! I don't need to remove this attributes. We need User-Name, Called-Station-Id, Calling-Station-Id, etc for billing purpose. But our RADIUS server does not receive them from OpenSER! Look at our Start/Stop messages. There are not such important attributes as User-Name, etc.<br>
Is this bug of OpenSER or bug of our script? If it is bug of script, then what commands, what modules, what modparam can lead to such result?<br>
<br>
Dmitry<br>
<br>
-----Original Message-----<br>
From: Mike O'Connor [mailto:<a href="mailto:mike@pineview.net">mike@pineview.net</a>]<br>
Sent: Monday, June 02, 2008 1:07 PM<br>
To: Dmitry Lyubimkov<br>
Subject: Re: [OpenSER-Users] Trouble with RADIUS Accounting<br>
<br>
Hi Dmitry<br>
<br>
You not can remove them from OpenSER with out adjusting the code,<br>
instead you need to put the radius packets thought something like a<br>
radius proxy which removes them.<br>
<br>
Mike<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
Dmitry Lyubimkov wrote:<br>
> Hi.<br>
> We have new installation of OpenSER V.1.3.1 with new script. All work fine<br>
> except RADIUS accounting. Accounting Start and Stop records come to RADIUS<br>
> server, but there are no some attributes in them - User-Name,<br>
> Called-Station-Id, Calling-Station-Id,...<br>
> Example of Start and Stop records (FreeRADIUS log):<br>
> Acct-Status-Type = Start<br>
> Service-Type = IAPP-Register<br>
> Sip-Response-Code = 200<br>
> Sip-Method = 1<br>
> Event-Timestamp = "Jun 2 2008 10:34:05 MSD"<br>
> Sip-From-Tag = "5d12c92c"<br>
> Sip-To-Tag = "6845627C-1EF5"<br>
> Acct-Session-Id = "ODhmMjE4MmUxNzc3ZmZjN2U3MjJlM2I4NzQ0MjMzNTU."<br>
> NAS-Port = 5060<br>
> Acct-Delay-Time = 0<br>
> NAS-IP-Address = <a href="http://172.16.2.10" target="_blank">172.16.2.10</a><br>
> Client-IP-Address = <a href="http://172.16.2.10" target="_blank">172.16.2.10</a><br>
> Timestamp = 1212388445<br>
><br>
> Acct-Status-Type = Stop<br>
> Service-Type = IAPP-Register<br>
> Sip-Response-Code = 200<br>
> Sip-Method = 8<br>
> Event-Timestamp = "Jun 2 2008 10:34:12 MSD"<br>
> Sip-From-Tag = "5d12c92c"<br>
> Sip-To-Tag = "6845627C-1EF5"<br>
> Acct-Session-Id = "ODhmMjE4MmUxNzc3ZmZjN2U3MjJlM2I4NzQ0MjMzNTU."<br>
> NAS-Port = 5060<br>
> Acct-Delay-Time = 0<br>
> NAS-IP-Address = <a href="http://172.16.2.10" target="_blank">172.16.2.10</a><br>
> Client-IP-Address = <a href="http://172.16.2.10" target="_blank">172.16.2.10</a><br>
> Timestamp = 1212388452<br>
><br>
> Where is trouble? Required attributes are described in dictionary file. If I<br>
> remove it then OpenSER says<br>
> Jun 2 11:02:23 [4064] ERROR:auth_radius:mod_init: auth_radius: can't get<br>
> code for the User-Name attribute<br>
> Jun 2 11:02:23 [4064] ERROR:core:init_mod: failed to initialize module<br>
> auth_radius<br>
> Jun 2 11:02:23 [4064] ERROR:core:main: error while initializing modules<br>
><br>
> How and where in script we can prohibit send of some attributes?<br>
><br>
> Dmitry<br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>
> <a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
><br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.openser.org">Users@lists.openser.org</a><br>
<a href="http://lists.openser.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.openser.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>