<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">

                                                                <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-16">


                                                                
<META HTTP-EQUIV="EXPIRES" CONTENT="0">
<META HTTP-EQUIV="EXPIRESABSOLUTE" CONTENT="Tue, 01 Jun 1999 12:00:00 GMT">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="PRIVATE">
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">


<META content="MSHTML 6.00.2900.2838" name=GENERATOR></HEAD>
                                                        <BODY bgColor=#ffffff>
                                                                <DIV>
                                                                <DIV>
<DIV dir=ltr align=left><SPAN class=040222514-31052006><FONT face=Arial 
color=#0000ff size=2>Thanks for that information. But, how does Ser know to send 
start or stop message to radius ?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=040222514-31052006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=040222514-31052006><FONT face=Arial 
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=040222514-31052006><FONT face=Arial 
color=#0000ff size=2>ilker</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sip [mailto:sip@arcdiv.com] 
<BR><B>Sent:</B> Wednesday, May 31, 2006 2:13 PM<BR><B>To:</B> &#304;lker Aktuna 
(Ko&#231;.net); serusers@iptel.org<BR><B>Subject:</B> RE: [Serusers] Radius 
accounting howto<BR></FONT><BR></DIV>
<DIV></DIV><FONT size=2>These are essentially log flags. <BR><BR>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><BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if((method=="INVITE" 
&amp;&amp; !has_totag()) || method=="BYE") 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { 
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
setflag(1); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }; <BR><BR><BR>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.&nbsp; 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><BR>Basically, the parameter for 
log_flag determines which flag you set in order to log the packet to the radius 
server. <BR><BR>N. <BR><BR><BR>[UTF-8?]<B>On Wed, 31 May 2006 10:48:42 +0300, 
&#196;&#176;lker Aktuna \(Ko&#195;&#167;.net\) wrote</B> <BR>&gt; <FONT size=2>Hi, <BR>&gt; <BR>&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; What should I add to the configuration to send start/stop packets 
? <BR>&gt; <BR>&gt; Regards, <BR>&gt; ilker <BR>&gt; <BR>&gt; -----Original 
Message----- <BR>&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; Sent: Tuesday, May 30, 2006 8:28 PM <BR>&gt; To: 
serusers@iptel.org <BR>&gt; Subject: Re: [Serusers] Radius accounting howto 
<BR>&gt; <BR>&gt; Those params are valid for the old acc module compiled with 
radius support. <BR>&gt; The acc_radius module I think uses log_flag and 
log_missed_flag (according to the source). <BR>&gt; <BR>&gt; N. <BR>&gt; 
<BR>&gt; On Tue, 30 May 2006 17:54:40 +0300, &#221;lker Aktuna (Ko&#231;.net) wrote 
<BR>&gt; &gt; Hi everyone, <BR>&gt; &gt;&nbsp; <BR>&gt; &gt; I am trying to use 
acc_radius module with presence CVS sources. <BR>&gt; &gt; I compiled the 
radiusclient library and compiled ser with acc_radius module. <BR>&gt; 
&gt;&nbsp; <BR>&gt; &gt; Then I added following lines to the config: <BR>&gt; 
&gt;&nbsp; <BR>&gt; &gt; loadmodule "/root/ser/lib/ser/modules/acc_radius.so" 
<BR>&gt; &gt; modparam("acc_radius", "radius_config", <BR>&gt; 
"/usr/local/etc/radiusclient-ng/radiusclient.conf") <BR>&gt; &gt; 
modparam("acc_radius", "service_type", 15) modparam("acc_radius", <BR>&gt; &gt; 
"radius_flag", 1) modparam("acc_radius", "radius_missed_flag", 3) <BR>&gt; &gt; 
modparam("acc_radius", "report_ack", 0) <BR>&gt; &gt;&nbsp; <BR>&gt; &gt;&nbsp; 
<BR>&gt; &gt; But when I try to start ser, it doesn't accept 2 parameters: 
<BR>&gt; &gt; modparam("acc_radius", "radius_flag", 1) modparam("acc_radius", 
<BR>&gt; &gt; "radius_missed_flag", 3) <BR>&gt; &gt;&nbsp; <BR>&gt; &gt; What 
should be the correct syntax for these parameters ? are they required ? <BR>&gt; 
&gt;&nbsp; <BR>&gt; &gt; And what else should I add to the configuration to send 
radius-start <BR>&gt; &gt; and <BR>&gt; radius-stop messages to the radius 
server ? <BR>&gt; &gt;&nbsp; <BR>&gt; &gt; Thanks, <BR>&gt; &gt; ilker <BR>&gt; 
&gt; <BR>&gt; &gt;&nbsp; <BR>&gt; &gt; <BR>&gt; &gt; <BR>&gt; _</FONT> <BR>&gt; 
<BR>&gt; <A 
href="http://387555.sigclick.mailinfo.com/sigclick/02090504/00064E0A/07084E03/21121532.jpg"><IMG 
src="http://387555.signature1.mailinfo.com/confirm2.6/02090504/00064E0A/07084E03/21121532.jpg" 
border=0 nosend="1"></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,&nbsp; icerigini hic bir 
sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta 
mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj 
kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin 
cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; 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&nbsp; 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,&nbsp; sender&nbsp; 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>
<!--445D5241795C-->
<br><br><a href="http://387555.sigclick.mailinfo.com/sigclick/00090204/03044D0A/0B014903/23151611.jpg"><img src="http://387555.signature1.mailinfo.com/confirm2.6/00090204/03044D0A/0B014903/23151611.jpg" border="0" nosend="1"></a><!--445D5241795C//--></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; 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. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; 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,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></DIV>
                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                        <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">Bu e-posta mesaji kisiye ozel olup, gizli bilgiler iceriyor olabilir. Eger bu e-posta mesaji size yanlislikla ulasmissa,&nbsp; icerigini hic bir sekilde kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini kullaniciya hemen geri gonderiniz&nbsp; ve&nbsp; tum kopyalarini mesaj kutunuzdan siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.&nbsp; 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. </DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">This message is intended solely for the use of the individual or entity to whom it is addressed , and may contain confidential&nbsp; 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,&nbsp; sender&nbsp; cannot warrant that virus or other forms of data corruption may not be present and do not take any responsibility in any occurrence.</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana">_____________________________________________________________________________________________________________________________________________</DIV>
                                                                                <DIV STYLE="FONT-SIZE: 7pt; COLOR: gray; FONT-FAMILY: verdana" ALIGN="justify">
</DIV>
</DIV>
</DIV></BODY></HTML>