<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body 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 class="moz-txt-link-freetext" href="http://tools.ietf.org/html/rfc3261#section-19.1.1">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<br>
<br>
<div class="moz-cite-prefix">On 17/03/14 17:42, Marc Soda wrote:<br>
</div>
<blockquote
cite="mid:CAFBTUUZNraebkTruy0w+Npcx7bstyTQ1XftqKR1_2zZuHkWhJg@mail.gmail.com"
type="cite">
<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 class="moz-txt-link-rfc2396E" href="sip:2404441112@domain.com:5060;maddr=1.1.1.1"><sip:2404441112@domain.com:5060;maddr=1.1.1.1></a>;q=0.5,<a class="moz-txt-link-rfc2396E" href="sip:2404441112@comain.com:5060;maddr=2.2.2.2"><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">domain.com</a>,
rather than 1.1.1.1.</div>
<div><br>
</div>
</div>
<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://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>