<!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">
Hi Toyima,<br>
<br>
That when you un-Register and the phone sends expires=0 you get that
reply with contact and expires is correct, because of what you
already had in database. There were two contacts and only one was
deleted. In the reply all the registered contacts are retrieved.<br>
The question is how you got with the two contacts - and probably it
was because you closed the client and did not unregister. <br>
You can test this by looking that there is no contact, open up the
client and close it. Also run a message trace from the beginning to
see clearly what the client sends.<br>
<br>
Regards,<br>
<pre class="moz-signature" cols="72">--
Anca Vamanu
OpenSIPS Developer</pre>
<br>
<br>
<br>
<br>
On 02/09/2011 12:30 PM, Toyima Dias wrote:
<blockquote
cite="mid:AANLkTimGMDoev2H3-cG6kQ2detw0=oYpsAjc_FScirJE@mail.gmail.com"
type="cite">
<div><font face="verdana,sans-serif">I've seen something
interesting here, </font></div>
<div> </div>
<div><font face="verdana,sans-serif">When the zoiper softphone
send the REGISTER with expires=0 (normal behavior as i'm
restarting the phone), Opensips answers with the following:
(take a look at the trace)</font></div>
<div> </div>
<div><font face="verdana,sans-serif">#<br>
U 2011/02/09 12:22:19.307852 <a moz-do-not-send="true"
href="http://172.30.140.47:5060">172.30.140.47:5060</a>
-> <a moz-do-not-send="true"
href="http://172.30.140.57:5060">172.30.140.57:5060</a><br>
REGISTER <a class="moz-txt-link-freetext" href="sip:172.30.140.57;transport=UDP">sip:172.30.140.57;transport=UDP</a> SIP/2.0<br>
Via: SIP/2.0/UDP
172.30.140.47:5060;branch=z9hG4bK-d8754z-15075d40ba64fa00-1---d8754z-<br>
Max-Forwards: 70<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="sip:1001@172.30.140.47:5060;rinstance=bd724156614686a6;transport=UDP"><sip:1001@172.30.140.47:5060;rinstance=bd724156614686a6;transport=UDP></a>;<strong>expires=0<br>
</strong>To: "1001"<<a moz-do-not-send="true"
href="mailto:sip%3A1001@172.30.140.57">sip:1001@172.30.140.57</a>;transport=UDP><br>
From: "1001"<<a moz-do-not-send="true"
href="mailto:sip%3A1001@172.30.140.57">sip:1001@172.30.140.57</a>;transport=UDP>;tag=8e1f5910<br>
Call-ID: NTAwOGYyNDVhNzY4NjNhMjY0NTZlNTcwN2VjN2RhYWM.<br>
CSeq: 4 REGISTER<br>
Allow: INVITE, ACK, CANCEL, BYE, NOTIFY, REFER, MESSAGE,
OPTIONS, INFO, SUBSCRIBE<br>
User-Agent: Zoiper rev.5324<br>
Authorization: Digest
username="1001",realm="172.30.140.57",nonce="4d5279090000001c0a15fa778702ef3d4d1139dfda7a275e",uri=<a class="moz-txt-link-rfc2396E" href="sip:172.30.140.57;transport=UDP">"sip:172.30.140.57;transport=UDP"</a>,response="859420dd3fefcccbf4d2727ff4db611d",algorithm=MD5<br>
Allow-Events: presence<br>
Content-Length: 0</font></div>
<div><font face="verdana,sans-serif"><br>
#<br>
U 2011/02/09 12:22:19.308281 <a moz-do-not-send="true"
href="http://172.30.140.57:5060">172.30.140.57:5060</a>
-> <a moz-do-not-send="true"
href="http://172.30.140.47:5060">172.30.140.47:5060</a><br>
SIP/2.0 200 OK<br>
Via: SIP/2.0/UDP
172.30.140.47:5060;branch=z9hG4bK-d8754z-15075d40ba64fa00-1---d8754z-<br>
To: "1001"<<a moz-do-not-send="true"
href="mailto:sip%3A1001@172.30.140.57">sip:1001@172.30.140.57</a>;transport=UDP>;tag=c1aca2eceea8b9ed63a816bcd8cf10b1.e871<br>
From: "1001"<<a moz-do-not-send="true"
href="mailto:sip%3A1001@172.30.140.57">sip:1001@172.30.140.57</a>;transport=UDP>;tag=8e1f5910<br>
Call-ID: NTAwOGYyNDVhNzY4NjNhMjY0NTZlNTcwN2VjN2RhYWM.<br>
CSeq: 4 REGISTER<br>
Contact:
<a class="moz-txt-link-rfc2396E" href="sip:1001@172.30.140.47:5060;rinstance=a03689bfb7cef683;transport=UDP"><sip:1001@172.30.140.47:5060;rinstance=a03689bfb7cef683;transport=UDP></a>;<strong>expires=2149<br>
</strong>Server: OpenSIPS (1.6.3-notls (i386/linux))<br>
Content-Length: 0</font></div>
<div> </div>
<div><font face="verdana,sans-serif">As you can see, Opensips
answers with a expires of 2149; that's why opensips keep this
registration untill the expiration time reachs 0, any ideas
why opensips answer with this value?</font></div>
<div> </div>
<div><font face="Verdana">Thanks!</font></div>
<div> </div>
<div><font face="verdana,sans-serif"> </font></div>
<div><br>
<br>
</div>
<div class="gmail_quote">2011/2/9 Toyima Dias <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:toyimads@gmail.com">toyimads@gmail.com</a>></span><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204);
margin: 0px 0px 0px 0.8ex; padding-left: 1ex;"
class="gmail_quote">
<div><font face="verdana,sans-serif">Hello, </font></div>
<div> </div>
<div><font face="verdana,sans-serif">I've a doubt about a
little problem in my opensips server, right now i just
have 2 softphones registered with my opensips
server, every time i restart the phones opensips creates
the following:</font></div>
<div> </div>
<div><font face="verdana,sans-serif">OpenSIPS:/usr/src/opensips-1.6.3-tls#opensipsctl
ul show<br>
Domain:: location table=512 records=2<br>
AOR:: 1000<br>
Contact::
<a class="moz-txt-link-freetext" href="sip:1000@172.30.140.47:26612;rinstance=4975490f64787658">sip:1000@172.30.140.47:26612;rinstance=4975490f64787658</a> Q=<br>
Expires:: 3565<br>
Callid::
OWE3Y2NmYTI3MWNjNzRjOTkxNDU0YTQ1ZTMxM2RhNTU.<br>
Cseq:: 2<br>
User-agent:: X-Lite release 1011s
stamp 41150<br>
State:: CS_SYNC<br>
Flags:: 0<br>
Cflag:: 0<br>
Socket:: udp:<a
moz-do-not-send="true" href="http://172.30.140.57:5060/"
target="_blank">172.30.140.57:5060</a><br>
Methods:: 5951<br>
AOR:: 1001<br>
Contact::
<a class="moz-txt-link-freetext" href="sip:1001@172.30.140.47:5060;rinstance=a03689bfb7cef683;transport=UDP">sip:1001@172.30.140.47:5060;rinstance=a03689bfb7cef683;transport=UDP</a>
Q=<br>
Expires:: 2641<br>
Callid::
NGQ4ZjBmMDhiMGIyNDc5MTA5NmExMDE1YzFhZjFlMjg.<br>
Cseq:: 2<br>
User-agent:: Zoiper rev.5324<br>
State:: CS_SYNC<br>
Flags:: 0<br>
Cflag:: 0<br>
Socket:: udp:<a
moz-do-not-send="true" href="http://172.30.140.57:5060/"
target="_blank">172.30.140.57:5060</a><br>
Methods:: 5951<br>
Contact::
<a class="moz-txt-link-freetext" href="sip:1001@172.30.140.47:5060;rinstance=333586886a503975;transport=UDP">sip:1001@172.30.140.47:5060;rinstance=333586886a503975;transport=UDP</a>
Q=<br>
Expires:: 3597<br>
Callid::
NTI0Y2VlYWJjNzI3NDEyMjkzYTNkZTYzMTdhMGEwYmY.<br>
Cseq:: 2<br>
User-agent:: Zoiper rev.5324<br>
State:: CS_SYNC<br>
Flags:: 0<br>
Cflag:: 0<br>
Socket:: udp:<a
moz-do-not-send="true" href="http://172.30.140.57:5060/"
target="_blank">172.30.140.57:5060</a><br>
Methods:: 5951<br>
</font></div>
<div><font face="verdana,sans-serif">As you can see, user 1001
has created 2 registrations (don't now why, it should sent
an expires=0 when the softphone was restarted...it might
be a problem of the zoiper softphone?); the problem is
when 1000 calls 1001, Opensips send INVITE to both
registrations of 1001 (the same equipment), and this phone
send a 482 Merged Request...i've been checking the section
8.2.2.2 at RFC 3261 but i'm quite confuse...what should i
check?</font></div>
<div><br>
</div>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>