<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Maybe a function to do these operations at once won't be that bad
    idea ... any volunteers for a patch to siputils module?<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <div class="moz-cite-prefix">On 17/03/14 21:47, Marc Soda wrote:<br>
    </div>
    <blockquote
cite="mid:CAFBTUUakf7OTZx9LRLn6LG2ZFrj11DXJdx+QYobR7KKBic4C7w@mail.gmail.com"
      type="cite">
      <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
                moz-do-not-send="true" 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 moz-do-not-send="true"
                  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 moz-do-not-send="true"><sip:2404441112@domain.com:5060;maddr=1.1.1.1></a>;q=0.5,<a
                          moz-do-not-send="true"><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
                            moz-do-not-send="true"
                            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 moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" href="http://www.asipto.com" target="_blank">http://www.asipto.com</a>
<a moz-do-not-send="true" href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a moz-do-not-send="true" 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 moz-do-not-send="true" 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 moz-do-not-send="true"
                href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
              <a moz-do-not-send="true"
                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>
    </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://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference - April 2-4, 2014, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.kamailioworld.com">http://www.kamailioworld.com</a></pre>
  </body>
</html>