<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <tt>Hi Johan,<br>
      <br>
      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.<br>
      <br>
      Regards,<br>
    </tt>
    <pre class="moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 24.10.2016 12:53, johan de clercq
      wrote:<br>
    </div>
    <blockquote cite="mid:005d01d22ddc$84fcf0f0$8ef6d2d0$@democon.be"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal">Good morning, <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">When I start opensips with the attached
          config file : I have the following error <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Oct 24 11:28:55 [29804]
          ERROR:core:fix_actions: called route 4 is not defined<o:p></o:p></p>
        <p class="MsoNormal">Oct 24 11:28:55 [29804]
          ERROR:core:fix_actions: fixing failed (code=-6) at cfg line
          125<o:p></o:p></p>
        <p class="MsoNormal">Oct 24 11:28:55 [29804] ERROR:core:main:
          failed to fix configuration with err code -6<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">The problem is that I have nowhere a route
          4 defined …. <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I do however manipulations on headers and I
          think I need to reroute then through route(0)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">  if(is_method("REFER"))<o:p></o:p></p>
        <p class="MsoNormal">  {<o:p></o:p></p>
        <p class="MsoNormal">        #x contains the value of the
          Refer-To header==$rt<o:p></o:p></p>
        <p class="MsoNormal">        $var(x)=$rt;<o:p></o:p></p>
        <p class="MsoNormal">        #remove the Refer-To header<o:p></o:p></p>
        <p class="MsoNormal">        remove_hf("Refer-To");<o:p></o:p></p>
        <p class="MsoNormal">        #manipulate x : extract part before
          ; and add &gt;<o:p></o:p></p>
        <p class="MsoNormal">$var(x)=$(var(x){s.select,0,;});#{s.fill.right,&gt;,1});<o:p></o:p></p>
        <p class="MsoNormal">$var(x)=$var(x) + "&gt;"; <o:p></o:p></p>
        <p class="MsoNormal">        append_hf("Refer-To:$var(x)");<o:p></o:p></p>
        <p class="MsoNormal">        #re route through route[0]<o:p></o:p></p>
        <p class="MsoNormal">        route(0);       <o:p></o:p></p>
        <p class="MsoNormal">  }<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Can it be that the problem is route(0); ?  
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">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 ?
          <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">BR, Johan. <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>