Hi Bogdan,<br>   <br>I have edited the code to <br><br>  local_route {<br>
<br>
            if ( method == &quot;BYE&quot; ) {<br>
                    setflag(1);<br>
                    acc_db_request(&quot;Internally generated BYE&quot;, &quot;acc&quot;); <br>                   acc_rad_request(&quot;BYE&quot;);   // This is sending an Bye to the radius server to create the stop time.<br>
           }<br>
     }<br><br>               <br><div class="gmail_quote">On Sun, Apr 5, 2009 at 6:17 PM, Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Ashwini,<br>
<br>
what was the problem? some missing bracket as I suspected?<div class="im"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
ASHWINI NAIDU wrote:<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
Hi Bogdan,<br>
<br>
    I have fixed the problem.<br>
<br>
<br></div><div class="im">
On Sat, Apr 4, 2009 at 10:53 AM, ASHWINI NAIDU &lt;<a href="mailto:ashwini.naidu@gmail.com" target="_blank">ashwini.naidu@gmail.com</a> &lt;mailto:<a href="mailto:ashwini.naidu@gmail.com" target="_blank">ashwini.naidu@gmail.com</a>&gt;&gt; wrote:<br>

<br>
    hi Bogdan,<br>
          local_route {<br>
<br>
            if ( is_method(&quot;BYE&quot;) {<br>
                    setflag(1);<br>
                    acc_db_request(&quot;Internally generated BYE&quot;, &quot;acc&quot;);<br>
            }<br>
     }<br>
<br>
    This is the local_route. and line no. 842<br>
<br>
<br>
<br>
<br>
<br>
<br>
    On Fri, Apr 3, 2009 at 9:39 PM, Bogdan-Andrei Iancu<br></div><div><div></div><div class="h5">
    &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt; wrote:<br>
<br>
        could you post the exact content of the line 842 ? (the one<br>
        reported in the error msg) ?<br>
<br>
        Regards,<br>
        Bogdan<br>
<br>
        PS: be sure you properly closed all the brackets from the<br>
        previous routes!!!<br>
<br>
<br>
        ASHWINI NAIDU wrote:<br>
<br>
            hi Bogdan,<br>
<br>
            with out index also i am getting the same error.<br>
<br>
            On Fri, Apr 3, 2009 at 8:35 PM, Bogdan-Andrei Iancu<br>
            &lt;<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a> &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;<br>
            &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a><br>
            &lt;mailto:<a href="mailto:bogdan@voice-system.ro" target="_blank">bogdan@voice-system.ro</a>&gt;&gt;&gt; wrote:<br>
<br>
               Hi Ashwini,<br>
<br>
               See<br>
            <a href="http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6" target="_blank">http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6</a><br>
<br>
               The local_route does not have an index in definition....<br>
<br>
               Regards,<br>
               Bogdan<br>
<br>
               ASHWINI NAIDU wrote:<br>
<br>
                   hi all,<br>
<br>
                      When i try to implement *local_route* in<br>
            opensips.cfg i get<br>
                   the following errors<br>
                   *<br>
                   debian:/var/www/CDRTool/library#<br>
            /etc/init.d/opensips start<br>
                   Not starting opensips: invalid configuration file!<br>
<br>
                   Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse<br>
            error in<br>
                   config file, line 842, column 12-13: syntax error<br>
                   Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse<br>
            error in<br>
                   config file, line 842, column 12-13: invalid<br>
            local_route statement<br>
                   Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse<br>
            error in<br>
                   config file, line 842, column 13-14:<br>
                   Apr  3 18:26:11 [6886] ERROR:core:main: bad config<br>
            file (3<br>
                   errors)*<br>
<br>
<br>
                   --        Thanking You,<br>
                   Ashwini BR Naidu<br>
                              ------------------------------------------------------------------------<br>
<br>
                   _______________________________________________<br>
                   Users mailing list<br>
                   <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
            &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt;<br>
            &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
            &lt;mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>&gt;&gt;<br>
<br>
                              <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
                   <br>
<br>
<br>
<br>
            --             Thanking You,<br>
            Ashwini BR Naidu<br>
<br>
<br>
<br>
<br>
<br>
    --     Thanking You,<br>
    Ashwini BR Naidu<br>
<br>
<br>
<br>
<br>
-- <br>
Thanking You,<br>
Ashwini BR Naidu<br>
</div></div></blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>Thanking You,<br>Ashwini BR Naidu<br>