<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
hello<br><br>All my Register request take longer than normal to process, what I mean is that an UAC sends a Register and kamailio responds almost 0.5 secs later, causing the UAC to re-transmit its request several times<br><br> 0.000000 192.168.10.10 -> 192.168.1.20 SIP Request: REGISTER sip:192.168.1.20<br> 0.469256 192.168.1.20 -> 192.168.10.10 SIP Status: 401 Unauthorized (0 bindings)<br> 0.518263 192.168.10.10 -> 192.168.1.20 SIP Request: REGISTER sip:192.168.1.20<br> 0.628294 192.168.10.10 -> 192.168.1.20 SIP Request: REGISTER sip:192.168.1.20<br> 1.130722 192.168.10.10 -> 192.168.1.20 SIP Request: REGISTER sip:192.168.1.20<br> 1.269301 192.168.1.20 -> 192.168.10.10 SIP Status: 401 Unauthorized (0 bindings)<br> 2.224942 192.168.10.10 -> 192.168.1.20 SIP Request: REGISTER sip:192.168.1.20<br> 2.325358 192.168.1.20 -> 192.168.10.10 SIP Status: 200 OK (1 bindings)<br> 3.457509 192.168.1.20 -> 192.168.10.10 SIP Status: 200 OK (1 bindings)<br> 4.497532 192.168.1.20 -> 192.168.10.10 SIP Status: 200 OK (1 bindings)<br><div>
<div> <br><br>the cpu shows almost 100 % idle at that time and the pc were kamailio is running has nothing else running but kamailio. this is my config file:<br><br><br><br>####### Routing Logic ########<br><br><br># main request routing logic<br><br><br>route{<br> # initial sanity checks -- messages with<br> # max_forwards==0, or excessively long requests<br> xlog("L_DBG", "mylog, time [$Tf] : starting_main_logic.\n");<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");<br> xlog("L_DGB","mylog, time [$Tf] : Too Many Hops.\n");<br> exit;<br> };<br><br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");<br> xlog("L_DGB","mylog, time [$Tf] : Message too big.\n");<br> exit;<br> };<br><br><br> if (!method=="REGISTER")<br> record_route();<br><br> if (loose_route()) {<br> # mark routing logic in request<br> append_hf("P-hint: rr-enforced\r\n");<br> route(1);<br> };<br><br><br> if (uri==myself) {<br> if (method=="REGISTER") {<br> xlog("L_DGB","mylog, time [$Tf] : starting to process REGISTER.Info: [$au,$ad,$ci,$ct,$cs,$rd,$si,$sp].\n");<br> if (!www_authorize("", "subscriber")) {<br> xlog("L_DGB","mylog, time [$Tf] : REGISTER came without auth, sending challenge.\n");<br> www_challenge("", "0");<br> exit;<br> };<br> save("location");<br> xlog("L_DBG","mylog, time [$Tf] : save-location successful.\n");<br> exit;<br> };<br><br><br> if (!lookup("location")) {<br> sl_send_reply("404", "Not Found");<br> xlog("L_DGB","mylog, time [$Tf] : lookup-location failed, sending 404 Not Found.\n");<br> exit;<br> };<br> append_hf("P-hint: usrloc applied\r\n");<br> };<br> route(1);<br>}<br><br>route[1] {<br> if (!t_relay()) {<br> sl_reply_error();<br> };<br> exit;<br>}<br></div></div><br><br><br /><hr />Stay up to date on your PC, the Web, and your mobile phone with Windows Live <a href='http://clk.atdmt.com/MRT/go/119462413/direct/01/' target='_new'>Click here</a></body>
</html>