problem with config file on opensips 1.10

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

problem with config file on opensips 1.10

Johan De Clercq

Good morning,

 

When I start opensips with the attached config file : I have the following error

 

Oct 24 11:28:55 [29804] ERROR:core:fix_actions: called route 4 is not defined

Oct 24 11:28:55 [29804] ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 125

Oct 24 11:28:55 [29804] ERROR:core:main: failed to fix configuration with err code -6

 

The problem is that I have nowhere a route 4 defined ….

 

I do however manipulations on headers and I think I need to reroute then through route(0)

 

  if(is_method("REFER"))

  {

        #x contains the value of the Refer-To header==$rt

        $var(x)=$rt;

        #remove the Refer-To header

        remove_hf("Refer-To");

        #manipulate x : extract part before ; and add >

$var(x)=$(var(x){s.select,0,;});#{s.fill.right,>,1});

$var(x)=$var(x) + ">";

        append_hf("Refer-To:$var(x)");

        #re route through route[0]

        route(0);      

  }

 

Can it be that the problem is route(0); ?  

 

 

Please find config below, do you have an idea what is happening ? Secondly, I also  attached the b2bua scenario.  If route(0) does not work, then how do I need to change the refer-to header before the bridge action is done ?

 

BR, Johan.

 

 

 


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

opensips_problem.cfg (3K) Download Attachment
scenario_refer.xml (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: problem with config file on opensips 1.10

Bogdan-Andrei Iancu-2
Hi Johan,

as routes have names , there is no route with "0" named (probably, internally, the "0" route gets id 4). Better use a new route[processing] to be used both from main route (roure{}) and from places where you want to re-route.

Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 24.10.2016 12:53, johan de clercq wrote:

Good morning,

 

When I start opensips with the attached config file : I have the following error

 

Oct 24 11:28:55 [29804] ERROR:core:fix_actions: called route 4 is not defined

Oct 24 11:28:55 [29804] ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 125

Oct 24 11:28:55 [29804] ERROR:core:main: failed to fix configuration with err code -6

 

The problem is that I have nowhere a route 4 defined ….

 

I do however manipulations on headers and I think I need to reroute then through route(0)

 

  if(is_method("REFER"))

  {

        #x contains the value of the Refer-To header==$rt

        $var(x)=$rt;

        #remove the Refer-To header

        remove_hf("Refer-To");

        #manipulate x : extract part before ; and add >

$var(x)=$(var(x){s.select,0,;});#{s.fill.right,>,1});

$var(x)=$var(x) + ">";

        append_hf("Refer-To:$var(x)");

        #re route through route[0]

        route(0);      

  }

 

Can it be that the problem is route(0); ?  

 

 

Please find config below, do you have an idea what is happening ? Secondly, I also  attached the b2bua scenario.  If route(0) does not work, then how do I need to change the refer-to header before the bridge action is done ?

 

BR, Johan.

 

 

 



_______________________________________________
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: problem with config file on opensips 1.10

Johan De Clercq

Hello Bogdan and users,

 

I did the following :

 

Route[0] is now called route[processing] and

 

Route{} is changed to

 

Route{

               Route(processing);

}

 

So, now it starts.

 

Thanks for the help.

 

From: Bogdan-Andrei Iancu [mailto:[hidden email]]
Sent: Monday, October 24, 2016 12:03 PM
To: OpenSIPS users mailling list <[hidden email]>; johan de clercq <[hidden email]>
Subject: Re: [OpenSIPS-Users] problem with config file on opensips 1.10

 

Hi Johan,

as routes have names , there is no route with "0" named (probably, internally, the "0" route gets id 4). Better use a new route[processing] to be used both from main route (roure{}) and from places where you want to re-route.

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 24.10.2016 12:53, johan de clercq wrote:

Good morning,

 

When I start opensips with the attached config file : I have the following error

 

Oct 24 11:28:55 [29804] ERROR:core:fix_actions: called route 4 is not defined

Oct 24 11:28:55 [29804] ERROR:core:fix_actions: fixing failed (code=-6) at cfg line 125

Oct 24 11:28:55 [29804] ERROR:core:main: failed to fix configuration with err code -6

 

The problem is that I have nowhere a route 4 defined ….

 

I do however manipulations on headers and I think I need to reroute then through route(0)

 

  if(is_method("REFER"))

  {

        #x contains the value of the Refer-To header==$rt

        $var(x)=$rt;

        #remove the Refer-To header

        remove_hf("Refer-To");

        #manipulate x : extract part before ; and add >

$var(x)=$(var(x){s.select,0,;});#{s.fill.right,>,1});

$var(x)=$var(x) + ">";

        append_hf("Refer-To:$var(x)");

        #re route through route[0]

        route(0);      

  }

 

Can it be that the problem is route(0); ?  

 

 

Please find config below, do you have an idea what is happening ? Secondly, I also  attached the b2bua scenario.  If route(0) does not work, then how do I need to change the refer-to header before the bridge action is done ?

 

BR, Johan.

 

 

 




_______________________________________________
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

opensips_problem.cfg (3K) Download Attachment