<div class="gmail_quote">On Wed, Jan 12, 2011 at 9:04 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@voice-system.ro">bogdan@voice-system.ro</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Gareth,<div class="im"><br>
<br>
Gareth Blades wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am having a problem with running opensips in debug level 6. When opensips is set to this I am finding that it takes a long time to respond to register requests (over 5 seconds compared to a fraction of a second) which means that my phone times out when trying to register so I cannot then debug trying to send calls through.<br>
</blockquote></div>
woow...that is really strange.....never encountered something like that....do you log to stderror(console) or to syslog ?<div class="im"><br></div></blockquote><div><br></div><div>Bogdan / Gareth,</div><div>I've seen this on several installations. Exactly as you describe. If you search the archives, you'll see others have reported this as well. The problem seems to be in the syslog configuration. If you switch your configuration to use asynchronous writes, you'll see performance improve dramatically. In syslog, this is done by placing a minus sign before the filename. For example /var/log/opensips.log becomes -/var/log/opensips. Your distribution / syslogger may vary.</div>
<div><br></div><div>And yes, this is apparent on a system with no load, and SINGLE SIP users. With full logging and no modifications to syslog, I've seen on *many* systems REGISTER timeouts. Took me a while to track it down; suspecting all sorts of other IO issues. </div>
<div><br></div><div>Bogdan, I'm not sure if this should be expected or if it's an indication of a more serious problem in OpenSIPs. If it's not an indication of a coding problem, then I believe this information should be in the documentation somewhere (if it's not already)?</div>
<div><br></div><div>Thanks,</div><div>Brett</div><div><br></div></div>