会不会是我opensips的版本太低了,我的opensips是1.9的,我在他的源码里的register模块的源码中没有看到remove或者unregister函数,但是我在1.11版本中看到了remove函数<br><br>在 2014-05-09 17:25:27,"Xiaoqiang&nbsp;Zhou"&nbsp;&lt;zhouxiaoqiang.mstech@gmail.com&gt; 写道:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr">在退出账号的时候,客户端是否发送了unregistered的sip请求?</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-09 14:35 GMT+08:00 老鬼 <span dir="ltr">&lt;<a href="mailto:hfggw@126.com" target="_blank">hfggw@126.com</a>&gt;</span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">是的~现在就是没办法正常的退出这个账号,我只是简单的换个账号注册,结果服务器上记录的前一个账号的客户端地址没有被消除掉。<br><br>在 2014-05-09 11:43:40,"Xiaoqiang&nbsp;Zhou"&nbsp;&lt;<a href="mailto:zhouxiaoqiang.mstech@gmail.com" target="_blank">zhouxiaoqiang.mstech@gmail.com</a>&gt; 写道:<div class="HOEnZb">
<div class="h5"><br> <blockquote style="PADDING-LEFT:1ex;MARGIN:0px 0px 0px 0.8ex;BORDER-LEFT:#ccc 1px solid"><div dir="ltr">你的意思是一个客户端只让注册一个账号,是这个意思?</div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-05-09 11:21 GMT+08:00 老鬼 <span dir="ltr">&lt;<a href="mailto:hfggw@126.com" target="_blank">hfggw@126.com</a>&gt;</span>:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thank you for your answer, but this method seem just to make a opensip's user can only register on a phone at the same time , it can avoid two phone to register a user like 101 on the opensip's server at the same time , but it can't avoid a phone to register two different user like 101 and 103 at a time. After I defined max_contacts as 1, I found that if I register phone A as user 101 and phone B as user 102 first , then I replace user 101 with 103 at the phone A , it can register successful , but when I make phone B to call 101 , the phone A ring and can build a dialog between phone A and B successful, it mean the 101 do not unregister successful. And then I make phone B to call phone A it can also &nbsp;build a dialog between phone A and B successful . And when I make phone C to register user 101 , it can not register successful , it mean the parameter max_contacts just can avoid two phone to register same user on the opensip's server at the same time, &nbsp;but it can't avoid a phone to register two different user like 101 and 103 at a time , this is where my problem is.<br>


<div><div>At 2014-05-08 19:54:00,"Mike Tesliuk" &lt;<a href="mailto:mike@ultra.net.br" target="_blank">mike@ultra.net.br</a>&gt; wrote:<br>
&gt;Take a look here<br>
&gt;<br>
&gt;<a href="http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748" target="_blank">http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748</a><br>
&gt;<br>
&gt;<br>
&gt;You can define how many contact a user can have , so, if you put 1<br>
&gt;just the last registration will be used.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;2014-05-08 8:09 GMT-03:00 老鬼 &lt;<a href="mailto:hfggw@126.com" target="_blank">hfggw@126.com</a>&gt;:<br>
&gt;&gt; I get a linphone client for my phone and construct a opensips servers on my<br>
&gt;&gt; Ubuntu computer. I register my linphone client on the opensips servers by<br>
&gt;&gt; user name 101, and register user name 102 for another phone , and establish<br>
&gt;&gt; a video call between these two users successfully. But when I replace the<br>
&gt;&gt; user 101 with 103, and use 102 to call 101 it was also call the phone that<br>
&gt;&gt; register by user 103. How to unregister the user ? It's there a command to<br>
&gt;&gt; unregister a user?Please help me, thank you .<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Users mailing list<br>
&gt;&gt; <a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
&gt;&gt; <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;Users mailing list<br>
&gt;<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
&gt;<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>
</blockquote><br><br><span title="neteasefooter"><span></span></span></div></div><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>
</blockquote><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>