<div>
<div>
<div>Dear Teigre:</div>
<div> How can I slove this problem?</div>
<div> Thanks.</div>
<div> </div>
<div>Sincerely</div>
<div>Caxton</div></div>
<div> </div>
<div> </div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Message: 6<br>Date: Tue, 11 Jul 2006 08:47:40 +0200<br>From: "Greger V. Teigre" <<a href="mailto:greger@teigre.com">
greger@teigre.com</a>><br>Subject: Re: [Serusers] Radius Accounting<br>To: Caxton <<a href="mailto:kaifu.chan@gmail.com">kaifu.chan@gmail.com</a>><br>Cc: <a href="mailto:serusers@lists.iptel.org">serusers@lists.iptel.org
</a>, <a href="mailto:serusers-request@lists.iptel.org">serusers-request@lists.iptel.org</a><br>Message-ID: <<a href="mailto:44B3498C.7020003@teigre.com">44B3498C.7020003@teigre.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"
<br><br>The BYE is loose routed, thus it will go to route(1).<br>g-)<br><br>Caxton wrote:<br>> Hi all:<br>><br>> I have installed radius server, and I also configure the "ser.cfg"<br>> for the radius accounting. However, there is a problem confues me.
<br>><br>> While the sip session have set up, the radiusclient send a<br>> Request-Account packet to radius server immediately, than radius server<br>> can save the start-up time of the session into database. But
<br>> after the session terminated, radiusclient do nothing(it should send a<br>> Accounting-Stop packet to radius server)!! Therefore, I can<br>> not have a complete time record.<br>><br>> I try to look up the solution in seruser mailing list, but I can
<br>> not find what I want. Please help me, thanks.<br>><br>> Sincerely<br>><br>> Caxton<br>><br>> -----ser.cfg-----<br>><br>> [cut]<br>><br>> # -- acc params --<br>> modparam("acc", "radius_config",
<br>> "/usr/local/etc/radiusclient-ng/radiusclient.conf")<br>> modparam("acc", "log_level", 2)<br>> modparam("acc", "radius_flag", 1)<br>> modparam("acc", "report_ack", 0)
<br>> # ------------------------- request routing logic -------------------<br>><br>> # main routing logic<br>> route{<br>><br>> # initial sanity checks -- messages with<br>> # max_forwards==0, or excessively long requests
<br>> if (!mf_process_maxfwd_header("10")) {<br>> sl_send_reply("483","Too Many Hops");<br>> break;<br>> };<br>> if (msg:len >= 2048 ) {
<br>> sl_send_reply("513", "Message too big");<br>> break;<br>> };<br>> # we record-route all messages -- to make sure that<br>> # subsequent messages will go through our proxy; that's
<br>> # particularly good if upstream and downstream entities<br>> # use different transport protocol<br>> if (!method=="REGISTER") record_route();<br>><br>> # subsequent messages withing a dialog should take the
<br>> # path determined by record-routing<br>> if (loose_route()) {<br>> # mark routing logic in request<br>> append_hf("P-hint: rr-enforced\r\n");<br>
> route(1);<br>> break;<br>> };<br>><br>> if (!uri==myself) {<br>> # mark routing logic in request<br>> append_hf("P-hint: outbound\r\n");
<br>> route(1);<br>> break;<br>> };<br>><br>> # if the request is for other domain use UsrLoc<br>> # (in case, it does not work, use the following command
<br>> # with proper names and addresses in it)<br>> if (uri==myself) {<br>><br>> if (method=="REGISTER") {<br>> log(1, "REGISTER: Authenticating user\n");
<br>> # Uncomment this if you want to use digest authentication<br>> if (!www_authorize("<a href="http://pc80.s206.tj.mcu.edu.tw">pc80.s206.tj.mcu.edu.tw</a><br>> <<a href="http://pc80.s206.tj.mcu.edu.tw/">
http://pc80.s206.tj.mcu.edu.tw/</a>>", "subscriber")) {<br>> log(1, "REGISTER: Chanllenging user\n");<br>> www_challenge("
<br>> <a href="http://pc80.s206.tj.mcu.edu.tw">pc80.s206.tj.mcu.edu.tw</a> <<a href="http://pc80.s206.tj.mcu.edu.tw/">http://pc80.s206.tj.mcu.edu.tw/</a>>", "0");<br>> break;
<br>> };<br>> save("location");<br>> break;<br>> };<br>> if(method=="INVITE") {<br>
> log(1, "INVITE\n");<br>> setflag(1);<br>> }<br>> if(method=="MESSAGE") {<br>> log(1, "MESSAGE\n");
<br>> setflag(1);<br>> }<br>> if(method=="BYE"||method== "CANCEL") {<br>> log(1, "BYE or CANCEL\n");
<br>> setflag(1);<br>> }<br>><br>> [cut]<br>> ------------------------------------------------------------------------<br>><br>> _______________________________________________
<br>> Serusers mailing list<br>> <a href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a><br>> <a href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers
</a></blockquote></div>