<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>Hello,</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>I am having some
performance issues with Openser and I tend to believe they are related with
DNS. So I am trying to figure out when and why Openser is doing DNS queries.
Doing ngrep on port 53 I realized that right before sending out the "100 trying
-- your call is important to us" message, Openser is doing a reverse DNS lookup
for the IP where the INVITE came from. So the sequence is something
like:</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>client
Openser
DNS</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2></FONT><FONT
face=Arial size=2>
|---INVITE------------------------>|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>
|<---407 Proxy Auth Reqd---|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>
|---ACK--------------------------->|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>
|---INVITE------------------------>|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>
|---client IP?-------->|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>
|<-------------------------|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2> |<--------------------100
trying---|</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>I am using
Openser-1.1.0-notls and in my script I have </FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>dns=no</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>rev_dns=no</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>So first
question is whether this DNS query is necessary and how I could avoid
it.</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>What is furthermore
confusing is that I have a test system with the same Openser version and same
script, where this DNS query is not happening. Looking into the production
system I found the following:</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>ser2:/usr/local/openser-1.1.0-notls/sbin# ldd
openser<BR> linux-gate.so.1
=> (0xffffe000)<BR>
libdl.so.2 => /lib/tls/libdl.so.2
(0x55571000)<BR> libresolv.so.2 =>
/lib/tls/libresolv.so.2
(0x55574000)<BR> libc.so.6 =>
/lib/tls/libc.so.6 (0x55587000)<BR>
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>whereas the test
system shows:</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>sertest:/usr/local/openser-1.1.0-notls/sbin# ldd
openser<BR> libdl.so.2 =>
/lib/libdl.so.2 (0x7002c000)<BR>
libresolv.so.2 => /lib/libresolv.so.2
(0x70040000)<BR> libc.so.6 =>
/lib/libc.so.6 (0x70064000)<BR>
/lib/ld-linux.so.2 (0x70000000)<BR></FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>So the two systems
link to different libresolv.so libraries. Is the tls/libresolve.so that is
responsible for the DNS query? Given that in both cases I am using the
notls version of Openser 1.1, why is there a difference between the two?
</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2>thank you for any
help</FONT></SPAN></DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=131412208-14122006><FONT face=Arial
size=2>George</DIV></FONT></SPAN>
<DIV><SPAN class=131412208-14122006><FONT face=Arial size=2></FONT></SPAN><SPAN
class=131412208-14122006><FONT face=Arial
size=2></FONT></SPAN> </DIV></BODY><!--[object_id=#altectelecoms.gr#]--><FONT face=Tahoma size=2><FONT color=#0000ff>
<H1><FONT face="Arial Greek" color=#c0c0c0 size=2><SPAN lang=EN-GB>Disclaimer</SPAN></FONT></H1>
<P class=MsoNormal style="MARGIN: 5pt 0cm; mso-layout-grid-align: none"><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">The information in this e-mail and any attachments is confidential. It is intended solely for the attention and use of the named addressee(s). If you are not the intended recipient, or person responsible for delivering this information to the intended recipient, please notify the sender immediately. Unless you are </SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US">the</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US"> intended recipient or his/her representative you are not authorized to, and must not, read, copy, distribute, use or retain this message or any part of it. E-mail transmission cannot be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">guaranteed to be secure or error-free as information could be</SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"> </SPAN><SPAN lang=EN-US style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-US; mso-fareast-language: EN-US">intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.</SPAN><SPAN lang=EN-GB style="FONT-SIZE: 8pt; COLOR: #999999; FONT-FAMILY: Arial; mso-ansi-language: EN-GB; mso-fareast-language: EN-US"><?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P></FONT></FONT></HTML>