<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div><span style="font-size: 12pt;">Hi Guys,</span><br>
</div>
<div><br>
</div>
<div>I have an interesting issue and wondered if anyone else has seen this issue.</div>
<div><br>
</div>
<div>We have a user who is registered with the platform and can make and receive calls, however the registration is only ever in the cache, it is not being populated in the location table.</div>
<div><br>
</div>
<div>When I check its state I can see it registered, and I see its state go from CS_DIRTY, to CS_SYNC as it re-registers;</div>
<div><br>
</div>
<div>opensipsctl ul show 02033279460@sip.provider</div>
<div>AOR:: 02033279460</div>
<div>        Contact:: sip:02033279460@WANIP:5060 Q=</div>
<div>                Expires:: 266</div>
<div>                Callid:: 5820966e249dce1b6796222708c8d94b@sip.provider</div>
<div>                Cseq:: 11070</div>
<div>                User-agent:: Asterisk PBX</div>
<div>                State:: CS_DIRTY</div>
<div>                Flags:: 0</div>
<div>                Cflags::</div>
<div>                Socket:: udp:91.X.X.X:5060</div>
<div>                Methods:: 4294967295</div>
<div><br>
</div>
<div>opensipsctl ul show 02033279460@sip.provider</div>
<div>AOR:: 02033279460</div>
<div>        Contact:: sip:02033279460@WANIP:5060 Q=</div>
<div>                Expires:: 224</div>
<div>                Callid:: 5820966e249dce1b6796222708c8d94b@sip.provider</div>
<div>                Cseq:: 11070</div>
<div>                User-agent:: Asterisk PBX</div>
<div>                State:: CS_SYNC</div>
<div>                Flags:: 0</div>
<div>                Cflags::</div>
<div>                Socket:: udp:91.X.X.X:5060</div>
<div>                Methods:: 4294967295</div>
<div><br>
</div>
<div><br>
</div>
<div>However it isn't contained within the location table, even though other registrations are contained in both, as we have the following set;</div>
<div><br>
</div>
<div>modparam("usrloc", "db_url", "DBURL")</div>
<div>modparam("usrloc", "db_mode",   2)</div>
<div>modparam("usrloc", "timer_interval", 60)</div>
<div><br>
</div>
<div>I have tried to reproduce the issue but cant seem to, the REGISTER message being sent looks like the below;</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Request-Line: REGISTER sip:sip.provider SIP/2.0</div>
<div>    Message Header</div>
<div>        Via: SIP/2.0/UDP 91.X.X.X:5060;branch=z9hG4bK-25033-1-3</div>
<div>        Max-Forwards: 70</div>
<div>        From: <sip:02033279460@sip.provider>;tag=1</div>
<div>        To: <sip:02033279460@sip.provider></div>
<div>        Call-ID: 1-25033@91.X.X.X</div>
<div>        CSeq: 8 REGISTER</div>
<div>        Supported: replaces, timer</div>
<div>        User-Agent: Asterisk PBX</div>
<div>        Authorization: Digest username="02033279460",realm="sip.provider",uri="sip:91.X.X.X:5060",nonce="59e4d0ae000000019388ae5161ff1f5d2666a1d2adb6e77d",response="e2f9ffb2ccf33c864adb76c950c2221c",algorithm=MD5</div>
<div>        Expires: 120</div>
<div>        Contact: sip:02033279460@91.X.X.X:5060</div>
<div>        Content-Length: 0</div>
<div><br>
</div>
<div><span style="font-size: 12pt;">Note its send the Auth header in initial REGISTER before the 401 challenge.</span></div>
<div><span style="font-size: 12pt;"><br>
</span></div>
<div><span style="font-size: 12pt;">Does anyone have any tips please on where the issue might be or how best to trouble-shoot on a busy live platform?</span><br>
</div>
<div><br>
</div>
<div>Many thanks!</div>
<div><br>
</div>
<div>Jon</div>
<br>
<p></p>
</div>
</body>
</html>