<div dir="ltr">The branch route worked perfectly.  Thanks.<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 4:26 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    IIRC, there was no automatic handling of maddr in request uri, only
    record route module does it (or at least did it) for route headers
    via loose route. The sip rfc discouraged use of maddr:<br>
    <br>
    - <a href="http://tools.ietf.org/html/rfc3261#section-19.1.1" target="_blank">http://tools.ietf.org/html/rfc3261#section-19.1.1</a><br>
    <br>
    But you can handle it in branch route, for your specific case. After
    using get_redirect() and before relaying, set a branch route, inside
    it you can use:<br>
    <br>
    $(ru{uri.maddr}) to get its value and use it as outbound proxy:<br>
    <br>
    $du = "sip:" + $(ru{uri.maddr});<br>
    <br>
    subst_uri() from textops should help removing the parameter.<br>
    <br>
    Cheers,<br>
    Daniel<div><div class="h5"><br>
    <br>
    <div>On 17/03/14 17:42, Marc Soda wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">I'm trying to handle a redirect with
        get_redirects().  It seems that Kamailio is ignoring the maddr
        param on the contact header.  Is there a way to force maddr to
        be used?
        <div><br>
        </div>
        The Contact header on the 302 looks like this:<br>
        <br>
<a><sip:2404441112@domain.com:5060;maddr=1.1.1.1></a>;q=0.5,<a><sip:2404441112@comain.com:5060;maddr=2.2.2.2></a>;q=0.25<br>
        <br>
        <div>The message is then being sent to <a href="http://domain.com" target="_blank">domain.com</a>,
          rather than 1.1.1.1.</div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      </div></div><pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre><span class="HOEnZb"><font color="#888888">
    </font></span></blockquote><span class="HOEnZb"><font color="#888888">
    <br>
    <pre cols="72">-- 
Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
<a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
  </font></span></div>

<br>_______________________________________________<br>
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list<br>
<a href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
<a href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
<br></blockquote></div><br>
</div></div>