<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Hi Robers,<br>
    <br>
    There are 2 things here :<br>
    <br>
    1) the uac_replace_from() changes only display name and URI part of
    FROM hdr - you cannot change (add) header parameters with it (keep
    in mind the TAG param is a header param, not an URI param)<br>
    <br>
    2) the function cannot be used from failure route - if you want to
    do changes per branch (like of a new branch created from failure
    route), use the branch route . see : <br>
    &nbsp;&nbsp;&nbsp; <a class="moz-txt-link-freetext" href="http://www.opensips.org/Resources/DocsCoreRoutes18#toc2">http://www.opensips.org/Resources/DocsCoreRoutes18#toc2</a><br>
    <br>
    Regards,<br>
    Bogdan<br>
    <br>
    <br>
    On 03/22/2012 05:48 PM, Robert R wrote:
    <blockquote
cite="mid:CAF1-QqTOfupzVp8mibhdE5+KzOzU36YrocTForbX8Ksx88R=rg@mail.gmail.com"
      type="cite"><span style="font-family: courier new,monospace;">Hi,</span><br
        style="font-family: courier new,monospace;">
      <br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">When I am trying
        to modify FROM field in the "failure_route" block I get an error
        message:</span><br style="font-family: courier new,monospace;">
      <br style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">failure_route[1]</span><br
        style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">{<br>
        &nbsp;&nbsp; ...<br>
      </span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <span style="font-family: courier new,monospace;">uac_replace_from("$avp(i:204)");</span><br>
      <span style="font-family: courier new,monospace;">&nbsp;&nbsp;
        append_branch();</span><br style="font-family: courier
        new,monospace;">
      <span style="font-family: courier new,monospace;">&nbsp;&nbsp; t_relay();</span><br
        style="font-family: courier new,monospace;">
      <span style="font-family: courier new,monospace;">}</span><br>
      <br>
      <span style="color: rgb(255, 0, 0);">Not starting openser: invalid
        configuration file!</span><br style="color: rgb(255, 0, 0);">
      <span style="color: rgb(255, 0, 0);">Mar 22 10:51:39 [6457]
        CRITICAL:core:yyerror: parse error in config file, line 662,
        column 32-33: Command cannot be used in the block</span><br
        style="color: rgb(255, 0, 0);">
      <span style="color: rgb(255, 0, 0);">Mar 22 10:51:39 [6457]
        ERROR:core:main: bad config file (1 errors)</span><br>
      <br>
      <span style="font-family: courier new,monospace;">It seems
        "uac_replace_from()" can not be used in the "failure_route"
        block. <br>
        What's the correct way to modify (appending a tag) FROM field in
        the "failure_route" block?<br>
        <br>
        Thanks,<br>
        <font color="#888888">R</font></span>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>
    <br>
    <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>
  </body>
</html>