Local_route problem

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

Local_route problem

ASHWINI NAIDU
hi all,

    When i try to implement local_route in opensips.cfg i get the following errors

debian:/var/www/CDRTool/library# /etc/init.d/opensips start
Not starting opensips: invalid configuration file!

Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config file, line 842, column 12-13: syntax error
Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config file, line 842, column 12-13: invalid local_route statement
Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config file, line 842, column 13-14:
Apr  3 18:26:11 [6886] ERROR:core:main: bad config file (3 errors)



--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

Bogdan-Andrei Iancu
Hi Ashwini,

See http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6

The local_route does not have an index in definition....

Regards,
Bogdan

ASHWINI NAIDU wrote:

> hi all,
>
>     When i try to implement *local_route* in opensips.cfg i get the
> following errors
> *
> debian:/var/www/CDRTool/library# /etc/init.d/opensips start
> Not starting opensips: invalid configuration file!
>
> Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config
> file, line 842, column 12-13: syntax error
> Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config
> file, line 842, column 12-13: invalid local_route statement
> Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config
> file, line 842, column 13-14:
> Apr  3 18:26:11 [6886] ERROR:core:main: bad config file (3 errors)*
>
>
> --
> Thanking You,
> Ashwini BR Naidu
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>  


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

ASHWINI NAIDU
hi Bogdan,

with out index also i am getting the same error.

On Fri, Apr 3, 2009 at 8:35 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Ashwini,

See http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6

The local_route does not have an index in definition....

Regards,
Bogdan

ASHWINI NAIDU wrote:
hi all,

   When i try to implement *local_route* in opensips.cfg i get the following errors
*
debian:/var/www/CDRTool/library# /etc/init.d/opensips start
Not starting opensips: invalid configuration file!

Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config file, line 842, column 12-13: syntax error
Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config file, line 842, column 12-13: invalid local_route statement
Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in config file, line 842, column 13-14:
Apr  3 18:26:11 [6886] ERROR:core:main: bad config file (3 errors)*


--
Thanking You,
Ashwini BR Naidu
------------------------------------------------------------------------

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
 




--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

Bogdan-Andrei Iancu
could you post the exact content of the line 842 ? (the one reported in
the error msg) ?

Regards,
Bogdan

PS: be sure you properly closed all the brackets from the previous routes!!!


ASHWINI NAIDU wrote:

> hi Bogdan,
>
> with out index also i am getting the same error.
>
> On Fri, Apr 3, 2009 at 8:35 PM, Bogdan-Andrei Iancu
> <[hidden email] <mailto:[hidden email]>> wrote:
>
>     Hi Ashwini,
>
>     See http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6
>
>     The local_route does not have an index in definition....
>
>     Regards,
>     Bogdan
>
>     ASHWINI NAIDU wrote:
>
>         hi all,
>
>            When i try to implement *local_route* in opensips.cfg i get
>         the following errors
>         *
>         debian:/var/www/CDRTool/library# /etc/init.d/opensips start
>         Not starting opensips: invalid configuration file!
>
>         Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
>         config file, line 842, column 12-13: syntax error
>         Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
>         config file, line 842, column 12-13: invalid local_route statement
>         Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
>         config file, line 842, column 13-14:
>         Apr  3 18:26:11 [6886] ERROR:core:main: bad config file (3
>         errors)*
>
>
>         --
>         Thanking You,
>         Ashwini BR Naidu
>         ------------------------------------------------------------------------
>
>         _______________________________________________
>         Users mailing list
>         [hidden email] <mailto:[hidden email]>
>         http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>          
>
>
>
>
>
> --
> Thanking You,
> Ashwini BR Naidu


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

ASHWINI NAIDU
hi Bogdan,
  
local_route {

        if ( is_method("BYE") {
                setflag(1);
                acc_db_request("Internally generated BYE", "acc");
        }
 }

This is the local_route. and line no. 842





On Fri, Apr 3, 2009 at 9:39 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
could you post the exact content of the line 842 ? (the one reported in the error msg) ?

Regards,
Bogdan

PS: be sure you properly closed all the brackets from the previous routes!!!


ASHWINI NAIDU wrote:
hi Bogdan,

with out index also i am getting the same error.

On Fri, Apr 3, 2009 at 8:35 PM, Bogdan-Andrei Iancu <[hidden email] <mailto:[hidden email]>> wrote:

   Hi Ashwini,

   See http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6

   The local_route does not have an index in definition....

   Regards,
   Bogdan

   ASHWINI NAIDU wrote:

       hi all,

          When i try to implement *local_route* in opensips.cfg i get
       the following errors
       *
       debian:/var/www/CDRTool/library# /etc/init.d/opensips start
       Not starting opensips: invalid configuration file!

       Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
       config file, line 842, column 12-13: syntax error
       Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
       config file, line 842, column 12-13: invalid local_route statement
       Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
       config file, line 842, column 13-14:
       Apr  3 18:26:11 [6886] ERROR:core:main: bad config file (3
       errors)*


       --        Thanking You,
       Ashwini BR Naidu
       ------------------------------------------------------------------------

       _______________________________________________
       Users mailing list
       [hidden email] <mailto:[hidden email]>

       http://lists.opensips.org/cgi-bin/mailman/listinfo/users
       




--
Thanking You,
Ashwini BR Naidu




--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

ASHWINI NAIDU
Hi Bogdan,

    I have fixed the problem.


On Sat, Apr 4, 2009 at 10:53 AM, ASHWINI NAIDU <[hidden email]> wrote:
hi Bogdan,
  
local_route {

        if ( is_method("BYE") {
                setflag(1);
                acc_db_request("Internally generated BYE", "acc");
        }
 }

This is the local_route. and line no. 842






On Fri, Apr 3, 2009 at 9:39 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
could you post the exact content of the line 842 ? (the one reported in the error msg) ?

Regards,
Bogdan

PS: be sure you properly closed all the brackets from the previous routes!!!


ASHWINI NAIDU wrote:
hi Bogdan,

with out index also i am getting the same error.

On Fri, Apr 3, 2009 at 8:35 PM, Bogdan-Andrei Iancu <[hidden email] <mailto:[hidden email]>> wrote:

   Hi Ashwini,

   See http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6

   The local_route does not have an index in definition....

   Regards,
   Bogdan

   ASHWINI NAIDU wrote:

       hi all,

          When i try to implement *local_route* in opensips.cfg i get
       the following errors
       *
       debian:/var/www/CDRTool/library# /etc/init.d/opensips start
       Not starting opensips: invalid configuration file!

       Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
       config file, line 842, column 12-13: syntax error
       Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
       config file, line 842, column 12-13: invalid local_route statement
       Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse error in
       config file, line 842, column 13-14:
       Apr  3 18:26:11 [6886] ERROR:core:main: bad config file (3
       errors)*


       --        Thanking You,
       Ashwini BR Naidu
       ------------------------------------------------------------------------

       _______________________________________________
       Users mailing list
       [hidden email] <mailto:[hidden email]>

       http://lists.opensips.org/cgi-bin/mailman/listinfo/users
       




--
Thanking You,
Ashwini BR Naidu




--
Thanking You,
Ashwini BR Naidu



--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

Bogdan-Andrei Iancu
Hi Ashwini,

what was the problem? some missing bracket as I suspected?

Regards,
Bogdan

ASHWINI NAIDU wrote:

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


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Local_route problem

ASHWINI NAIDU
Hi Bogdan,
  
I have edited the code to

  local_route {

           if ( method == "BYE" ) {
                   setflag(1);
                   acc_db_request("Internally generated BYE", "acc");
                   acc_rad_request("BYE");   // This is sending an Bye to the radius server to create the stop time.
           }
    }

              
On Sun, Apr 5, 2009 at 6:17 PM, Bogdan-Andrei Iancu <[hidden email]> wrote:
Hi Ashwini,

what was the problem? some missing bracket as I suspected?


Regards,
Bogdan

ASHWINI NAIDU wrote:
Hi Bogdan,

   I have fixed the problem.


On Sat, Apr 4, 2009 at 10:53 AM, ASHWINI NAIDU <[hidden email] <mailto:[hidden email]>> wrote:

   hi Bogdan,
         local_route {

           if ( is_method("BYE") {
                   setflag(1);
                   acc_db_request("Internally generated BYE", "acc");
           }
    }

   This is the local_route. and line no. 842






   On Fri, Apr 3, 2009 at 9:39 PM, Bogdan-Andrei Iancu
   <[hidden email] <mailto:[hidden email]>> wrote:

       could you post the exact content of the line 842 ? (the one
       reported in the error msg) ?

       Regards,
       Bogdan

       PS: be sure you properly closed all the brackets from the
       previous routes!!!


       ASHWINI NAIDU wrote:

           hi Bogdan,

           with out index also i am getting the same error.

           On Fri, Apr 3, 2009 at 8:35 PM, Bogdan-Andrei Iancu
           <[hidden email] <mailto:[hidden email]>
           <mailto:[hidden email]
           <mailto:[hidden email]>>> wrote:

              Hi Ashwini,

              See
           http://www.opensips.org/index.php?n=Resources.DocsCoreRoutes#toc6

              The local_route does not have an index in definition....

              Regards,
              Bogdan

              ASHWINI NAIDU wrote:

                  hi all,

                     When i try to implement *local_route* in
           opensips.cfg i get
                  the following errors
                  *
                  debian:/var/www/CDRTool/library#
           /etc/init.d/opensips start
                  Not starting opensips: invalid configuration file!

                  Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse
           error in
                  config file, line 842, column 12-13: syntax error
                  Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse
           error in
                  config file, line 842, column 12-13: invalid
           local_route statement
                  Apr  3 18:26:11 [6886] CRITICAL:core:yyerror: parse
           error in
                  config file, line 842, column 13-14:
                  Apr  3 18:26:11 [6886] ERROR:core:main: bad config
           file (3
                  errors)*


                  --        Thanking You,
                  Ashwini BR Naidu
                            ------------------------------------------------------------------------

                  _______________________________________________
                  Users mailing list
                  [hidden email]
           <mailto:[hidden email]>
           <mailto:[hidden email]
           <mailto:[hidden email]>>

                            http://lists.opensips.org/cgi-bin/mailman/listinfo/users
                 



           --            Thanking You,
           Ashwini BR Naidu





   --    Thanking You,
   Ashwini BR Naidu




--
Thanking You,
Ashwini BR Naidu




--
Thanking You,
Ashwini BR Naidu

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users