<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
Kyriakos wrote:
<blockquote cite="mid20060627133304.EDD6236A2@oberon.otenet-telecom.net"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
  <style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style>
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Hi,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">&nbsp;&nbsp; I have
two questions regarding&nbsp;
user location.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">1) Is there
a way of getting the user location info
for manipulating it in ser.cfg ? Something like lookup but without
rewriting
anything. Basically what I want to do is check if the caller and the
caller are
NATed and belong to a certain same network then I should not use media
proxy. The
criterion for the same network would be that both sides are originating
from
the same &nbsp;public ip.&nbsp; Thus I would have to retrieve the &#8220;received&#8221;
field value for the calee &nbsp;and compare it with the ip contained in the
contact header field of the caller in the INVITE . &nbsp;&nbsp;&nbsp;Perhaps
there is also another way to do this?<o:p></o:p></span></font></p>
  </div>
</blockquote>
Not that I know of. However, cvs head has a new type of route where you
can access the actual destination ip and port.<br>
<blockquote cite="mid20060627133304.EDD6236A2@oberon.otenet-telecom.net"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">2) What
happens when I have multiple phones
registered under one user? How lookup(location) works when I have more
than one
ips in location table for the user? During tests I had a UA&nbsp; behind NAT
&nbsp;registering
to SER with an ip assigned from the dhcp. After a while I had the UA
assigned a
different ip from the dhcp and the Register on SER under the same user
name. The
problem was that during registration SER would respond back to the UA
for
requesting authorisation credentials but when it was time to send the
200 OK
message for registration , it would send it only to the previous
location of
the UA and not the one it sent the REGISTER message from with of course
failure
to register because UA would not get the OK from SER. I noticed that in
Contact
header of the 200 message there were more than one return ips (the old
one and
the new one), Of course as soon as the old location timed out the
registration
would go ok.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  </div>
</blockquote>
This has nothing to do with how location works. A new REGISTER should
not NOT hit lookup(location), so you have an error in your script. You
should run fix_nated_register() on the message. By default, SER will
respond to the rcvd address and not Contact if they are different.<br>
g-)<br>
<blockquote cite="mid20060627133304.EDD6236A2@oberon.otenet-telecom.net"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Thanks<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">KM<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
  <div>
  <p class="MsoNormal" style=""><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font face="Times New Roman" size="3"><span
 style="font-size: 12pt;" lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
  </div>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
Serusers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Serusers@lists.iptel.org">Serusers@lists.iptel.org</a>
<a class="moz-txt-link-freetext" href="http://lists.iptel.org/mailman/listinfo/serusers">http://lists.iptel.org/mailman/listinfo/serusers</a>
  </pre>
</blockquote>
</body>
</html>