<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello,<br>
    <br>
    On 12/8/11 11:13 PM, Peter Dunkley wrote:
    <blockquote cite="mid:1323382393.2596.0.camel@pd-laptop-linux"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="GENERATOR" content="GtkHTML/4.2.2">
      Hi,<br>
      <br>
      The record_route_advertised_address() config file function is now
      in git master.<br>
    </blockquote>
    from the readme I see that it takes the address from the function
    parameter, not from advertised_address global parameter, which is
    getting close to what record_route_preset() does, just that
    record_route_advertised_address() can do double rr with the address
    parameter based on auto-detection of transport change.<br>
    <br>
    Probably would be useful to have the option of no parameter for this
    new function, in which case the global parameter
    advertised_adress/advertised_port will be used for building rr.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote cite="mid:1323382393.2596.0.camel@pd-laptop-linux"
      type="cite">
      <br>
      Peter<br>
      <br>
      On Wed, 2011-12-07 at 10:27 +0000, Hugh Waite wrote:
      <blockquote type="CITE">
        <pre>Hi,
I've implemented the config file function for 
record_route_advertised_address and it should appear in git head later 
today. Just doing the documentation and some testing...

Hugh

On 05/12/2011 21:52, Daniel-Constantin Mierla wrote:
&gt; Hello,
&gt;
&gt; maybe the option for now is to set the parameters for 
&gt; record_route_preset() to advertised_address/port:
&gt;
&gt; <a moz-do-not-send="true" href="http://kamailio.org/docs/modules/stable/modules_k/rr.html#id2542169">http://kamailio.org/docs/modules/stable/modules_k/rr.html#id2542169</a>
&gt;
&gt; I have some deployments (like on EC2) where I use advertise_address 
&gt; for have the proper Via and record_route_preset() for record route 
&gt; headers.
&gt;
&gt; For simplicity, it would be good to have the function in config to 
&gt; take advertised address value for building the rr header.
&gt;
&gt; Cheers,
&gt; Daniel
&gt;
&gt; On 12/3/11 9:41 PM, Hugh Waite wrote:
&gt;&gt; Hi,
&gt;&gt; I do not think that record_route() uses the advertised_address 
&gt;&gt; variables. We have been using the advertised_address / 
&gt;&gt; advertised_port variables in the config file and although they are 
&gt;&gt; used in the Via headers, they are not substituted into the Record 
&gt;&gt; Route lines.
&gt;&gt;
&gt;&gt; record_route_advertised_address() was added about 2 weeks ago for 
&gt;&gt; exactly this reason - using an advertised address in record routes 
&gt;&gt; when the transport changes. It automatically inserts double (rr2=on) 
&gt;&gt; routes in these cases and extra custom parameters can be added later.
&gt;&gt;
&gt;&gt; However, we only needed the C API, so it isn't exported as a config 
&gt;&gt; file function yet. This won't be difficult.
&gt;&gt;
&gt;&gt; Regards,
&gt;&gt; Hugh
&gt;&gt;
&gt;&gt; On 03/12/11 15:57, Ovidiu Sas wrote:
&gt;&gt;&gt; Take a look at set_advertised_address:
&gt;&gt;&gt; <a moz-do-not-send="true" href="http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address">http://www.kamailio.org/dokuwiki/doku.php/core-cookbook:3.1.x#set_advertised_address</a> 
&gt;&gt;&gt;
&gt;&gt;&gt; Set it and then record_route() will properly fill the Record-Route 
&gt;&gt;&gt; header.
&gt;&gt;&gt;
&gt;&gt;&gt;
&gt;&gt;&gt; Regards,
&gt;&gt;&gt; Ovidiu Sas
&gt;&gt;&gt;
&gt;&gt;
&gt;&gt;
&gt;&gt; _______________________________________________
&gt;&gt; SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
&gt;&gt; <a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
&gt;&gt; <a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
&gt;


</pre>
      </blockquote>
      <br>
      <table cellpadding="0" cellspacing="0" width="100%">
        <tbody>
          <tr>
            <td>
              <pre>-- 
Peter Dunkley
Technical Director
Crocodile RCS Ltd
</pre>
            </td>
          </tr>
        </tbody>
      </table>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
  </body>
</html>