<HTML>
<HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="Open WebMail 2.20 20031014" name=GENERATOR>
</HEAD>
<BODY bgColor=#ffffff>

<font size="2">The purpose of the module is to take care of that all for you.  I'm afraid I don't use the acc_radius module as I don't honestly see the point in separating out each and every logging function into separate modules (talk about backward thinking).  I still use the older acc module compiled with radius support. 
<br />
<br />The code block I sent you is all that's necessary for the logging of start/stop requests. 
<br />
<br />N.
<br />
<br />
<br />[UTF-8?]<b>On Wed, 31 May 2006 19:47:50 +0300, Ä°lker Aktuna \(Koç.net\) wrote</b>
<br />&gt; <font size="2" face="Arial" color="#0000ff"><span class="172584516-31052006">I tried that configuration. I get no errors but also no 
radius packet is created/sent.</span></font>

<br />&gt; <font size="2" face="Arial" color="#0000ff"><span class="172584516-31052006">after setting the flag by &quot;setflag()&quot; command , do I 
have to enter another command to send the accounting packet for that marked 
message ?</span></font>

<br />&gt; <font size="2" face="Arial" color="#0000ff"><span class="172584516-31052006"></span></font> 

<br />&gt; <font size="2" face="Arial" color="#0000ff"><span class="172584516-31052006">Thanks,</span></font>

<br />&gt; <font size="2" face="Arial" color="#0000ff"><span class="172584516-31052006">ilker</span></font>
<br />&gt; 
<br />&gt; 

<hr tabindex="-1" />
<font size="2" face="Tahoma"><b>From:</b> serusers-bounces@lists.iptel.org 
[mailto:serusers-bounces@lists.iptel.org] <b>On Behalf Of </b>&#304;lker Aktuna 
(Koç.net)
<br />&gt; <b>Sent:</b> Wednesday, May 31, 2006 5:26 PM
<br />&gt; <b>To:</b> sip; 
serusers@iptel.org
<br />&gt; <b>Subject:</b> RE: [Serusers] Radius accounting 
howto
<br />&gt; </font>
<br />&gt; 
<br />&gt; <span class="040222514-31052006"><font size="2" face="Arial" color="#0000ff">Thanks for that information. But, how does Ser know to send 
start or stop message to radius ?</font></span>

<br />&gt; <span class="040222514-31052006"></span> 

<br />&gt; <span class="040222514-31052006"><font size="2" face="Arial" color="#0000ff">Thanks,</font></span>

<br />&gt; <span class="040222514-31052006"><font size="2" face="Arial" color="#0000ff">ilker</font></span>
<br />&gt; 
<br />&gt; 

<hr tabindex="-1" />
<font size="2" face="Tahoma"><b>From:</b> sip [mailto:sip@arcdiv.com] 

<br />&gt; <b>Sent:</b> Wednesday, May 31, 2006 2:13 PM
<br />&gt; <b>To:</b> &#304;lker Aktuna 
(Koç.net); serusers@iptel.org
<br />&gt; <b>Subject:</b> RE: [Serusers] Radius 
accounting howto
<br />&gt; </font>
<br />&gt; 
<br />&gt; <font size="2">These are essentially log flags. 
<br />&gt; 
<br />&gt; In order to log 
an INVITE or a BYE to the radius server (assuming your log_flag param was set to 
1), you'd do something like: 

<br />&gt; 
<br />&gt;         if((method==&quot;INVITE&quot; 
&amp;&amp; !has_totag()) || method==&quot;BYE&quot;) 

<br />&gt;         { 

<br />&gt;                         
setflag(1); 
<br />&gt;         }; 
<br />&gt; 
<br />&gt; I 
stick that BEFORE the loose_route section of my config, as if I don't, it 
doesn't seem to catch things correctly. I've yet to debug why.  The reason 
I put the extra !has_totag() in there is for my accounting, so I don't end up 
logging reINVITES from the remote side. 
<br />&gt; 
<br />&gt; Basically, the parameter for 
log_flag determines which flag you set in order to log the packet to the radius 
server. 
<br />&gt; 
<br />&gt; N. 
<br />&gt; 
<br />&gt; [UTF-8?]<b>On Wed, 31 May 2006 10:48:42 +0300, 
Ä°lker Aktuna \(Koç.net\) wrote</b> 
<br />&gt; &gt; <font size="2">Hi, 
<br />&gt; &gt; 
<br />&gt; &gt; 
Thanks for your reply. I saw that in the source and changed according to them. 
But I still can't see any radius packets created/sent by Ser when a call is 
made. 
<br />&gt; &gt; What should I add to the configuration to send start/stop packets 

<br />&gt; &gt; 
<br />&gt; &gt; Regards, 
<br />&gt; &gt; ilker 
<br />&gt; &gt; 
<br />&gt; &gt; -----Original 
Message----- 
<br />&gt; &gt; From: serusers-bounces@lists.iptel.org [<a href="mailto:serusers-bounces@lists.iptel.org">mailto:serusers-bounces@lists.iptel.org</a>] 
On Behalf Of sip 
<br />&gt; &gt; Sent: Tuesday, May 30, 2006 8:28 PM 
<br />&gt; &gt; To: 
serusers@iptel.org 
<br />&gt; &gt; Subject: Re: [Serusers] Radius accounting howto 

<br />&gt; &gt; 
<br />&gt; &gt; Those params are valid for the old acc module compiled with 
radius support. 
<br />&gt; &gt; The acc_radius module I think uses log_flag and 
log_missed_flag (according to the source). 
<br />&gt; &gt; 
<br />&gt; &gt; N. 
<br />&gt; &gt; 

<br />&gt; &gt; On Tue, 30 May 2006 17:54:40 +0300, İlker Aktuna (Koç.net) wrote 

<br />&gt; &gt; &gt; Hi everyone, 
<br />&gt; &gt; &gt;  
<br />&gt; &gt; &gt; I am trying to use 
acc_radius module with presence CVS sources. 
<br />&gt; &gt; &gt; I compiled the 
radiusclient library and compiled ser with acc_radius module. 
<br />&gt; &gt; 
&gt;  
<br />&gt; &gt; &gt; Then I added following lines to the config: 
<br />&gt; &gt; 
&gt;  
<br />&gt; &gt; &gt; loadmodule &quot;/root/ser/lib/ser/modules/acc_radius.so&quot; 

<br />&gt; &gt; &gt; modparam(&quot;acc_radius&quot;, &quot;radius_config&quot;, 
<br />&gt; &gt; 
&quot;/usr/local/etc/radiusclient-ng/radiusclient.conf&quot;) 
<br />&gt; &gt; &gt; 
modparam(&quot;acc_radius&quot;, &quot;service_type&quot;, 15) modparam(&quot;acc_radius&quot;, 
<br />&gt; &gt; &gt; 
&quot;radius_flag&quot;, 1) modparam(&quot;acc_radius&quot;, &quot;radius_missed_flag&quot;, 3) 
<br />&gt; &gt; &gt; 
modparam(&quot;acc_radius&quot;, &quot;report_ack&quot;, 0) 
<br />&gt; &gt; &gt;  
<br />&gt; &gt; &gt;  

<br />&gt; &gt; &gt; But when I try to start ser, it doesn't accept 2 parameters: 

<br />&gt; &gt; &gt; modparam(&quot;acc_radius&quot;, &quot;radius_flag&quot;, 1) modparam(&quot;acc_radius&quot;, 

<br />&gt; &gt; &gt; &quot;radius_missed_flag&quot;, 3) 
<br />&gt; &gt; &gt;  
<br />&gt; &gt; &gt; What 
should be the correct syntax for these parameters ? are they required ? 
<br />&gt; &gt; 
&gt;  
<br />&gt; &gt; &gt; And what else should I add to the configuration to send 
radius-start 
<br />&gt; &gt; &gt; and 
<br />&gt; &gt; radius-stop messages to the radius 
server ? 
<br />&gt; &gt; &gt;  
<br />&gt; &gt; &gt; Thanks, 
<br />&gt; &gt; &gt; ilker 
<br />&gt; &gt; 
&gt; 
<br />&gt; &gt; &gt;  
<br />&gt; &gt; &gt; 
<br />&gt; &gt; &gt; 

<br />&gt; </font></font>

<br />&gt; 
<br />&gt; <a href="http://387555.sigclick.mailinfo.com/sigclick/0B0A0607/040C4D0A/00034D00/28212191.jpg"><img border="0" nosend="1" src="http://387555.signature1.mailinfo.com/confirm2.6/0B0A0607/040C4D0A/00034D00/28212191.jpg" /></a>
                                                                
<br />&gt; 
<br />&gt; _____________________________________________________________________________________________________________________________________________
                                                                                
<br />&gt; Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,  icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz  ve  tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.  Bu e-posta mesaji viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak hicbir sorumlulugu kabul etmez. 
                                                                                
<br />&gt; This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential  information. If you are not the intended recipient of this message or you receive this mail in error, you should refrain from making any use of the contents and from opening any attachment. In that case, please notify the sender immediately and return the message to the sender, then, delete and destroy all copies. This e-mail message, can not be copied, published or sold for any reason. This e-mail message has been swept by anti-virus systems for the presence of computer viruses. In doing so, however,  sender  cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.
                                                                                
<br />&gt; _____________________________________________________________________________________________________________________________________________
                                                                                
<br />
<br />
<br />
</font>
</BODY>
</HTML>