<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Hi<br>
</p>
<p><br>
</p>
<p>I've a question about NAPTR lockup and rewriting the RURI.<br>
</p>
<p><br>
</p>
<p>Following a little example:<br>
</p>
<p>- Alice at location A tries to call Bob at location B<br>
</p>
<p>- location A uses the RURI naptr.locationB.com to reach location B<br>
</p>
<p>- this NAPTR resolves to hostb.locationB.com and host B is listening on port 5070<br>
</p>
<p><br>
</p>
<p>hostb has the following alias defined:<br>
</p>
<p>- udp:hostb.locationB.com:5070<br>
</p>
<p><br>
</p>
<p>The problem now is, that the incoming RURI is "sip:bob@naptr.locationB.com" and the check to myself is not True.<br>
</p>
<p><br>
</p>
<p>Is there a possibility to rewrite the RURI to the result of the NAPTR query?<br>
</p>
<p><br>
</p>
<p>If I would add a second alias like "udp:naptr.locationB.com:5070" a check to myself would still fail as the RURI does not contain a port.<br>
</p>
<p><br>
</p>
<p>So I would have to add an alias like "udp:naptr.locationB.com" without port, then it would work.​ Is this the way to go? Because the documentation says it is important to include the port, otherwise the loose_route() will not work as expected...<br>
</p>
<p><br>
</p>
<p>Thanks for your replies!<br>
</p>
<p>Mathias<br>
</p>
</body>
</html>