how to log out opensips

classic Classic list List threaded Threaded
14 messages Options
Reply | Threaded
Open this post in threaded view
|

how to log out opensips

老鬼

I get a linphone client for my phone and construct a opensips servers on my Ubuntu computer. I register my linphone client on the opensips servers by user name 101, and register user name 102 for another phone , and establish a video call between these two users successfully. But when I replace the user 101 with 103, and use 102 to call 101 it was also call the phone that register by user 103. How to unregister the user ? It's there a command to unregister a user?Please help me, thank you .




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

Mike Tesliuk
Take a look here

http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748


You can define how many contact a user can have , so, if you put 1
just the last registration will be used.



2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:

> I get a linphone client for my phone and construct a opensips servers on my
> Ubuntu computer. I register my linphone client on the opensips servers by
> user name 101, and register user name 102 for another phone , and establish
> a video call between these two users successfully. But when I replace the
> user 101 with 103, and use 102 to call 101 it was also call the phone that
> register by user 103. How to unregister the user ? It's there a command to
> unregister a user?Please help me, thank you .
>
>
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

老鬼
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  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,  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.
At 2014-05-08 19:54:00,"Mike Tesliuk" <[hidden email]> wrote:

>Take a look here
>
>http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748
>
>
>You can define how many contact a user can have , so, if you put 1
>just the last registration will be used.
>
>
>
>2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:
>> I get a linphone client for my phone and construct a opensips servers on my
>> Ubuntu computer. I register my linphone client on the opensips servers by
>> user name 101, and register user name 102 for another phone , and establish
>> a video call between these two users successfully. But when I replace the
>> user 101 with 103, and use 102 to call 101 it was also call the phone that
>> register by user 103. How to unregister the user ? It's there a command to
>> unregister a user?Please help me, thank you .
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

seanchann
你的意思是一个客户端只让注册一个账号,是这个意思?


2014-05-09 11:21 GMT+08:00 老鬼 <[hidden email]>:
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  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,  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.
At 2014-05-08 19:54:00,"Mike Tesliuk" <[hidden email]> wrote:
>Take a look here
>
>http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748
>
>
>You can define how many contact a user can have , so, if you put 1
>just the last registration will be used.
>
>
>
>2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:
>> I get a linphone client for my phone and construct a opensips servers on my
>> Ubuntu computer. I register my linphone client on the opensips servers by
>> user name 101, and register user name 102 for another phone , and establish
>> a video call between these two users successfully. But when I replace the
>> user 101 with 103, and use 102 to call 101 it was also call the phone that
>> register by user 103. How to unregister the user ? It's there a command to
>> unregister a user?Please help me, thank you .
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

老鬼
是的~现在就是没办法正常的退出这个账号,我只是简单的换个账号注册,结果服务器上记录的前一个账号的客户端地址没有被消除掉。

在 2014-05-09 11:43:40,"Xiaoqiang Zhou" <[hidden email]> 写道:
你的意思是一个客户端只让注册一个账号,是这个意思?


2014-05-09 11:21 GMT+08:00 老鬼 <[hidden email]>:
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  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,  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.
At 2014-05-08 19:54:00,"Mike Tesliuk" <[hidden email]> wrote:
>Take a look here
>
>http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748
>
>
>You can define how many contact a user can have , so, if you put 1
>just the last registration will be used.
>
>
>
>2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:
>> I get a linphone client for my phone and construct a opensips servers on my
>> Ubuntu computer. I register my linphone client on the opensips servers by
>> user name 101, and register user name 102 for another phone , and establish
>> a video call between these two users successfully. But when I replace the
>> user 101 with 103, and use 102 to call 101 it was also call the phone that
>> register by user 103. How to unregister the user ? It's there a command to
>> unregister a user?Please help me, thank you .
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

seanchann
在退出账号的时候,客户端是否发送了unregistered的sip请求?


2014-05-09 14:35 GMT+08:00 老鬼 <[hidden email]>:
是的~现在就是没办法正常的退出这个账号,我只是简单的换个账号注册,结果服务器上记录的前一个账号的客户端地址没有被消除掉。

在 2014-05-09 11:43:40,"Xiaoqiang Zhou" <[hidden email]> 写道:

你的意思是一个客户端只让注册一个账号,是这个意思?


2014-05-09 11:21 GMT+08:00 老鬼 <[hidden email]>:
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  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,  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.
At 2014-05-08 19:54:00,"Mike Tesliuk" <[hidden email]> wrote:
>Take a look here
>
>http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748
>
>
>You can define how many contact a user can have , so, if you put 1
>just the last registration will be used.
>
>
>
>2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:
>> I get a linphone client for my phone and construct a opensips servers on my
>> Ubuntu computer. I register my linphone client on the opensips servers by
>> user name 101, and register user name 102 for another phone , and establish
>> a video call between these two users successfully. But when I replace the
>> user 101 with 103, and use 102 to call 101 it was also call the phone that
>> register by user 103. How to unregister the user ? It's there a command to
>> unregister a user?Please help me, thank you .
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

老鬼
客户端是用linphone,是一个开源的软件~估计是没有发送这个请求~在退出软件后再进入软件原来的登录信息依旧在···而且我一般都是直接更改用户名和密码的,应该不会发这个请求,那请问这个unregistered的sip请求要怎么弄~

在 2014-05-09 17:25:27,"Xiaoqiang Zhou" <[hidden email]> 写道:
在退出账号的时候,客户端是否发送了unregistered的sip请求?


2014-05-09 14:35 GMT+08:00 老鬼 <[hidden email]>:
是的~现在就是没办法正常的退出这个账号,我只是简单的换个账号注册,结果服务器上记录的前一个账号的客户端地址没有被消除掉。

在 2014-05-09 11:43:40,"Xiaoqiang Zhou" <[hidden email]> 写道:

你的意思是一个客户端只让注册一个账号,是这个意思?


2014-05-09 11:21 GMT+08:00 老鬼 <[hidden email]>:
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  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,  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.
At 2014-05-08 19:54:00,"Mike Tesliuk" <[hidden email]> wrote:
>Take a look here
>
>http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748
>
>
>You can define how many contact a user can have , so, if you put 1
>just the last registration will be used.
>
>
>
>2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:
>> I get a linphone client for my phone and construct a opensips servers on my
>> Ubuntu computer. I register my linphone client on the opensips servers by
>> user name 101, and register user name 102 for another phone , and establish
>> a video call between these two users successfully. But when I replace the
>> user 101 with 103, and use 102 to call 101 it was also call the phone that
>> register by user 103. How to unregister the user ? It's there a command to
>> unregister a user?Please help me, thank you .
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

老鬼
In reply to this post by seanchann
会不会是我opensips的版本太低了,我的opensips是1.9的,我在他的源码里的register模块的源码中没有看到remove或者unregister函数,但是我在1.11版本中看到了remove函数

在 2014-05-09 17:25:27,"Xiaoqiang Zhou" <[hidden email]> 写道:
在退出账号的时候,客户端是否发送了unregistered的sip请求?


2014-05-09 14:35 GMT+08:00 老鬼 <[hidden email]>:
是的~现在就是没办法正常的退出这个账号,我只是简单的换个账号注册,结果服务器上记录的前一个账号的客户端地址没有被消除掉。

在 2014-05-09 11:43:40,"Xiaoqiang Zhou" <[hidden email]> 写道:

你的意思是一个客户端只让注册一个账号,是这个意思?


2014-05-09 11:21 GMT+08:00 老鬼 <[hidden email]>:
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  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,  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.
At 2014-05-08 19:54:00,"Mike Tesliuk" <[hidden email]> wrote:
>Take a look here
>
>http://www.opensips.org/html/docs/modules/devel/registrar.html#id293748
>
>
>You can define how many contact a user can have , so, if you put 1
>just the last registration will be used.
>
>
>
>2014-05-08 8:09 GMT-03:00 老鬼 <[hidden email]>:
>> I get a linphone client for my phone and construct a opensips servers on my
>> Ubuntu computer. I register my linphone client on the opensips servers by
>> user name 101, and register user name 102 for another phone , and establish
>> a video call between these two users successfully. But when I replace the
>> user 101 with 103, and use 102 to call 101 it was also call the phone that
>> register by user 103. How to unregister the user ? It's there a command to
>> unregister a user?Please help me, thank you .
>>
>>
>>
>>
>> _______________________________________________
>> Users mailing list
>> [hidden email]
>> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users





_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

Chen-Che Huang
Hello,

You can set expire=0 in REGISTER request to do something like unregistration. Besides, you need to set modparam("usrloc", "timer_interval", 100) # 100 is a sample value
to make OpenSIPS periodically delete out-of-dated location records. By doing so, you shall be able to let the previous account to be removed.

Best wishes,
Chen-Che
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

seanchann
你可以使用eyebeam进行下测试,这个软件在退出的时候回发送unregister的消息。


2014-05-12 9:18 GMT+08:00 microx <[hidden email]>:
Hello,

You can set expire=0 in REGISTER request to do something like
unregistration. Besides, you need to set modparam("usrloc",
"timer_interval", 100) # 100 is a sample value
to make OpenSIPS periodically delete out-of-dated location records. By doing
so, you shall be able to let the previous account to be removed.

Best wishes,
Chen-Che



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-log-out-opensips-tp7591271p7591326.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users


_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

老鬼
In reply to this post by Chen-Che Huang
Oh! Thank you very much! Your method is effective
At 2014-05-12 09:18:51,microx <[hidden email]> wrote:

>Hello,
>
>You can set expire=0 in REGISTER request to do something like
>unregistration. Besides, you need to set modparam("usrloc",
>"timer_interval", 100) # 100 is a sample value
>to make OpenSIPS periodically delete out-of-dated location records. By doing
>so, you shall be able to let the previous account to be removed.
>
>Best wishes,
>Chen-Che
>
>
>
>--
>View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-log-out-opensips-tp7591271p7591326.html
>Sent from the OpenSIPS - Users mailing list archive at Nabble.com.
>
>_______________________________________________
>Users mailing list
>[hidden email]
>http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: how to log out opensips

老鬼
In reply to this post by seanchann
好的~谢谢~我去研究一下它怎么发的~~刚还有一个网友回复说在注册的时候把expire 时间改成0就可以和注销的效果一样了,测试了一下可行~但是感觉还是有必要去研究一下怎么发注销的消息···

在 2014-05-12 16:25:53,"Xiaoqiang Zhou" <[hidden email]> 写道:
你可以使用eyebeam进行下测试,这个软件在退出的时候回发送unregister的消息。


2014-05-12 9:18 GMT+08:00 microx <[hidden email]>:
Hello,

You can set expire=0 in REGISTER request to do something like
unregistration. Besides, you need to set modparam("usrloc",
"timer_interval", 100) # 100 is a sample value
to make OpenSIPS periodically delete out-of-dated location records. By doing
so, you shall be able to let the previous account to be removed.

Best wishes,
Chen-Che



--
View this message in context: http://opensips-open-sip-server.1449251.n2.nabble.com/how-to-log-out-opensips-tp7591271p7591326.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users




_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

NEWBIE question.

Ozz Nixon
We have installed OpenSIPs - we have two PBX's setup - they communicate to one another perfectly... now, we are ready to point OpenSIPs to our up-stream SIPTrunk... could someone explain how to do this in just a couple steps? Everything we are reading and trying, seem to be overly complex.

Thanks in advance!
O.
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: NEWBIE question.

Ovidiu Sas

There's no standard way to route via a SIP trunk. In the end, you need to rewrite the RURI of the incoming INVITE and there are several way to do that. If you have the two PBXs connected via OpenSIPS, then you already know that.
If you want to use OpenSIPS, you need to understand SIP and how it works. Once you are familiar with SIP, everything will come easy.

Regards,
Ovidiu Sas

On May 12, 2014 2:45 PM, "Ozz Nixon" <[hidden email]> wrote:
We have installed OpenSIPs - we have two PBX's setup - they communicate to one another perfectly... now, we are ready to point OpenSIPs to our up-stream SIPTrunk... could someone explain how to do this in just a couple steps? Everything we are reading and trying, seem to be overly complex.

Thanks in advance!
O.
_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users