Hi, I have a question:
the user A is register, the ip of register is 192.168.0.55. the user change PC, and this PC have the ip 192.168.0.66
the user register again, in the new machine, but, how to unregister the firsth registration from 192.168.0.55 ?
best regards Javier
If the user closes the sip client on 0.55, then the client should automatically un-register. If not, then the user will have two contacts and both phones will ring.
If you want to limit the number of registered contacts, you can do it via max_contacts parameter of registrar module:
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233
Cheers, Daniel
On 09/22/06 23:47, Javier Ramirez wrote:
Hi, I have a question:
the user A is register, the ip of register is 192.168.0.55. the user change PC, and this PC have the ip 192.168.0.66
the user register again, in the new machine, but, how to unregister the firsth registration from 192.168.0.55 ?
best regards Javier
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
can I unregister the the firsth register ?
----- Original Message ----- From: Daniel-Constantin Mierla To: Javier Ramirez Cc: users Sent: Saturday, September 23, 2006 5:36 PM Subject: Re: [Users] UN-REGISTER
If the user closes the sip client on 0.55, then the client should automatically un-register. If not, then the user will have two contacts and both phones will ring.
If you want to limit the number of registered contacts, you can do it via max_contacts parameter of registrar module:
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233
Cheers, Daniel
On 09/22/06 23:47, Javier Ramirez wrote:
Hi, I have a question:
the user A is register, the ip of register is 192.168.0.55. the user change PC, and this PC have the ip 192.168.0.66
the user register again, in the new machine, but, how to unregister the firsth registration from 192.168.0.55 ?
best regards Javier
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
__________ NOD32 1.1768 (20060922) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
Hi Javier,
that must be done by the phone.
regards, bogdan
Javier wrote:
can I unregister the the firsth register ?
----- Original Message ----- *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro> *To:* Javier Ramirez <mailto:jvr_78@yahoo.com.ar> *Cc:* users <mailto:users@openser.org> *Sent:* Saturday, September 23, 2006 5:36 PM *Subject:* Re: [Users] UN-REGISTER If the user closes the sip client on 0.55, then the client should automatically un-register. If not, then the user will have two contacts and both phones will ring. If you want to limit the number of registered contacts, you can do it via max_contacts parameter of registrar module: http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 Cheers, Daniel On 09/22/06 23:47, Javier Ramirez wrote: > Hi, I have a question: > > the user A is register, the ip of register is 192.168.0.55. > the user change PC, and this PC have the ip 192.168.0.66 > > the user register again, in the new machine, but, how to unregister > the firsth registration from 192.168.0.55 ? > > best regards > Javier > > ------------------------------------------------------------------------ > > _______________________________________________ > Users mailing list > Users@openser.org <mailto:Users@openser.org> > http://openser.org/cgi-bin/mailman/listinfo/users > __________ NOD32 1.1768 (20060922) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55) { sl_send_reply("404", "User not found..");
};
On 9/28/06, Bogdan-Andrei Iancu bogdan@voice-system.ro wrote:
Hi Javier,
that must be done by the phone.
regards, bogdan
Javier wrote:
can I unregister the the firsth register ?
----- Original Message ----- *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro> *To:* Javier Ramirez <mailto:jvr_78@yahoo.com.ar> *Cc:* users <mailto:users@openser.org> *Sent:* Saturday, September 23, 2006 5:36 PM *Subject:* Re: [Users] UN-REGISTER If the user closes the sip client on 0.55, then the client should automatically un-register. If not, then the user will have two contacts and both phones will ring. If you want to limit the number of registered contacts, you can do
it
via max_contacts parameter of registrar module: http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 Cheers, Daniel On 09/22/06 23:47, Javier Ramirez wrote: > Hi, I have a question: > > the user A is register, the ip of register is 192.168.0.55. > the user change PC, and this PC have the ip 192.168.0.66 > > the user register again, in the new machine, but, how to
unregister
> the firsth registration from 192.168.0.55 ? > > best regards > Javier > >
> > _______________________________________________ > Users mailing list > Users@openser.org <mailto:Users@openser.org> > http://openser.org/cgi-bin/mailman/listinfo/users > __________ NOD32 1.1768 (20060922) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
You could also get creative and upon successful registration exec a script that will examine the location table and remove (or manipulate as you want) specific registrations. If these moves happen often this approach will not scale well. If you only need one registration per user then setting the max_contacts parameter is the easiest way to accomplish this goal.
_Steve
Max Gregorian wrote:
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55 http://192.168.0.55/) { sl_send_reply("404", "User not found..");
};
On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro mailto:bogdan@voice-system.ro> wrote:
Hi Javier, that must be done by the phone. regards, bogdan Javier wrote: > can I unregister the the firsth register ? > > > ----- Original Message ----- > *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar>> > *Cc:* users <mailto:users@openser.org <mailto:users@openser.org>> > *Sent:* Saturday, September 23, 2006 5:36 PM > *Subject:* Re: [Users] UN-REGISTER > > If the user closes the sip client on 0.55, then the client should > automatically un-register. If not, then the user will have two > contacts > and both phones will ring. > > If you want to limit the number of registered contacts, you can do it > via max_contacts parameter of registrar module: > > http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 > > Cheers, > Daniel > > > On 09/22/06 23:47, Javier Ramirez wrote: > > Hi, I have a question: > > > > the user A is register, the ip of register is 192.168.0.55 <http://192.168.0.55>. > > the user change PC, and this PC have the ip 192.168.0.66 <http://192.168.0.66> > > > > the user register again, in the new machine, but, how to unregister > > the firsth registration from 192.168.0.55 <http://192.168.0.55> ? > > > > best regards > > Javier > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Users mailing list > > Users@openser.org <mailto:Users@openser.org> <mailto:Users@openser.org <mailto:Users@openser.org>> > > http://openser.org/cgi-bin/mailman/listinfo/users > > > > __________ NOD32 1.1768 (20060922) Information __________ > > This message was checked by NOD32 antivirus system. > http://www.eset.com > >------------------------------------------------------------------------ > >_______________________________________________ >Users mailing list >Users@openser.org <mailto:Users@openser.org> >http://openser.org/cgi-bin/mailman/listinfo/users > > _______________________________________________ Users mailing list Users@openser.org <mailto:Users@openser.org> http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Steve Blair wrote:
You could also get creative and upon successful registration exec a script that will examine the location table and remove (or manipulate as you want) specific registrations. If these moves happen often this approach will not scale well. If you only need one registration per user then setting the max_contacts parameter is the easiest way to accomplish this goal.
_Steve
Max Gregorian wrote:
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55 http://192.168.0.55/) { sl_send_reply("404", "User not found..");
};
On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro mailto:bogdan@voice-system.ro> wrote:
Hi Javier, that must be done by the phone. regards, bogdan Javier wrote: > can I unregister the the firsth register ? > > > ----- Original Message ----- > *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar>> > *Cc:* users <mailto:users@openser.org <mailto:users@openser.org>> > *Sent:* Saturday, September 23, 2006 5:36 PM > *Subject:* Re: [Users] UN-REGISTER > > If the user closes the sip client on 0.55, then the client should > automatically un-register. If not, then the user will have two > contacts > and both phones will ring. > > If you want to limit the number of registered contacts, you can do it > via max_contacts parameter of registrar module: > >
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 > > Cheers, > Daniel > > > On 09/22/06 23:47, Javier Ramirez wrote: > > Hi, I have a question: > > > > the user A is register, the ip of register is 192.168.0.55 http://192.168.0.55. > > the user change PC, and this PC have the ip 192.168.0.66 http://192.168.0.66 > > > > the user register again, in the new machine, but, how to unregister > > the firsth registration from 192.168.0.55 http://192.168.0.55 ? > > > > best regards > > Javier > >
the parameter desc_time_order ( set to 1) order the conctact in descending time order, and use the most recently updated/created user. and, if I understand, if the user A register from address 1 (Home), and more later register from address 2 (work) (the REGISTER is sent every minute from two address) and the soft re-send the register from address 1
how recognize openser that address 2 is the valid address? I attach the doc from this two parameters.
1.3.12. desc_time_order (integer) If set to 1 then all contacts will be ordered in descending modification time order. In this case the most recently updated/created contact will be used.
Default value is 0.
Example 1-12. Set desc_time_order parameter
... modparam("registrar", "desc_time_order", 1)
1.3.9. append_branches (integer) The parameter controls how lookup function processes multiple contacts. If there are multiple contacts for the given username in usrloc and this parameter is set to 1, Request-URI will be overwritten with the highest-q rated contact and the rest will be appended to sip_msg structure and can be later used by tm for forking. If the parameter is set to 0, only Request-URI will be overwritten with the highest-q rated contact and the rest will be left unprocessed.
Default value is 1.
Example 1-9. Set append_branches parameter
... modparam("registrar", "append_branches", 0) ... ----- Original Message ----- From: Bogdan-Andrei Iancu To: Steve Blair Cc: users Sent: Thursday, September 28, 2006 10:52 AM Subject: Re: [Users] UN-REGISTER
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Steve Blair wrote:
You could also get creative and upon successful registration exec a script that will examine the location table and remove (or manipulate as you want) specific registrations. If these moves happen often this approach will not scale well. If you only need one registration per user then setting the max_contacts parameter is the easiest way to accomplish this goal.
_Steve
Max Gregorian wrote:
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55 http://192.168.0.55/) { sl_send_reply("404", "User not found..");
};
On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro mailto:bogdan@voice-system.ro> wrote:
Hi Javier, that must be done by the phone. regards, bogdan Javier wrote: > can I unregister the the firsth register ? > > > ----- Original Message ----- > *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar>> > *Cc:* users <mailto:users@openser.org <mailto:users@openser.org>> > *Sent:* Saturday, September 23, 2006 5:36 PM > *Subject:* Re: [Users] UN-REGISTER > > If the user closes the sip client on 0.55, then the client should > automatically un-register. If not, then the user will have two > contacts > and both phones will ring. > > If you want to limit the number of registered contacts, you can do it > via max_contacts parameter of registrar module: > >
http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 > > Cheers, > Daniel > > > On 09/22/06 23:47, Javier Ramirez wrote: > > Hi, I have a question: > > > > the user A is register, the ip of register is 192.168.0.55 http://192.168.0.55. > > the user change PC, and this PC have the ip 192.168.0.66 http://192.168.0.66 > > > > the user register again, in the new machine, but, how to unregister > > the firsth registration from 192.168.0.55 http://192.168.0.55 ? > > > > best regards > > Javier > >
_______________________________________________ Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
__________ NOD32 1.1776 (20060926) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
Javier,
not sure what you are trying to achieve here: 1) to have only one phone per account and to try to deal with IP changing 2) multiple phones per account
regards, bogdan
Javier wrote:
the parameter desc_time_order ( set to 1) order the conctact in descending time order, and use the most recently updated/created user. and, if I understand, if the user A register from address 1 (Home), and more later register from address 2 (work) (the REGISTER is sent every minute from two address) and the soft re-send the register from address 1
how recognize openser that address 2 is the valid address? I attach the doc from this two parameters.
1.3.12. desc_time_order (integer) If set to 1 then all contacts will be ordered in descending modification time order. In this case the most recently updated/created contact will be used.
Default value is 0.
Example 1-12. Set desc_time_order parameter
... modparam("registrar", "desc_time_order", 1)
1.3.9. append_branches (integer) The parameter controls how lookup function processes multiple contacts. If there are multiple contacts for the given username in usrloc and this parameter is set to 1, Request-URI will be overwritten with the highest-q rated contact and the rest will be appended to sip_msg structure and can be later used by tm for forking. If the parameter is set to 0, only Request-URI will be overwritten with the highest-q rated contact and the rest will be left unprocessed.
Default value is 1.
Example 1-9. Set append_branches parameter
... modparam("registrar", "append_branches", 0) ... ----- Original Message -----
*From:* Bogdan-Andrei Iancu <mailto:bogdan@voice-system.ro> *To:* Steve Blair <mailto:blairs@isc.upenn.edu> *Cc:* users <mailto:users@openser.org> *Sent:* Thursday, September 28, 2006 10:52 AM *Subject:* Re: [Users] UN-REGISTER of course there is contact timeout as each contact is registered for a limited time period. a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html regards, bogdan Steve Blair wrote: > > You could also get creative and upon successful registration exec a > script that will examine the location table and remove (or manipulate > as you want) specific registrations. If these moves happen often this > approach will not scale well. If you only need one registration per > user then setting the max_contacts parameter is the easiest way to > accomplish this goal. > > _Steve > > Max Gregorian wrote: > >> Perhaps implement Registration Timeouts. >> >> If the aim is to stop the user from connecting using that IP address, >> then you could, on OpenSER, do something along the lines of: >> >> >> if(src_ip==192.168.0.55 <http://192.168.0.55/>) >> { >> sl_send_reply("404", "User not found.."); >> >> }; >> >> >> >> >> >> On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro <mailto:bogdan@voice-system.ro> >> <mailto:bogdan@voice-system.ro>> wrote: >> >> Hi Javier, >> >> that must be done by the phone. >> >> regards, >> bogdan >> >> Javier wrote: >> >> > can I unregister the the firsth register ? >> > >> > >> > ----- Original Message ----- >> > *From:* Daniel-Constantin Mierla >> <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> >> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar> >> <mailto:jvr_78@yahoo.com.ar>> >> > *Cc:* users <mailto:users@openser.org >> <mailto:users@openser.org>> >> > *Sent:* Saturday, September 23, 2006 5:36 PM >> > *Subject:* Re: [Users] UN-REGISTER >> > >> > If the user closes the sip client on 0.55, then the client >> should >> > automatically un-register. If not, then the user will have two >> > contacts >> > and both phones will ring. >> > >> > If you want to limit the number of registered contacts, you >> can do it >> > via max_contacts parameter of registrar module: >> > >> > >> http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 >> > >> > Cheers, >> > Daniel >> > >> > >> > On 09/22/06 23:47, Javier Ramirez wrote: >> > > Hi, I have a question: >> > > >> > > the user A is register, the ip of register is 192.168.0.55 >> <http://192.168.0.55>. >> > > the user change PC, and this PC have the ip 192.168.0.66 >> <http://192.168.0.66> >> > > >> > > the user register again, in the new machine, but, how to >> unregister >> > > the firsth registration from 192.168.0.55 >> <http://192.168.0.55> ? >> > > >> > > best regards >> > > Javier >> > > > _______________________________________________ Users mailing list Users@openser.org <mailto:Users@openser.org> http://openser.org/cgi-bin/mailman/listinfo/users __________ NOD32 1.1776 (20060926) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
I need this:
steps: 1 - one user register from your house, and not close. 2 - then go to the office, and register with the same acount from the office. 3 - like a msn, that in this case, close automatic the soft in the house of the user.
I need thar openser send a sip message, that close the soft.
----- Original Message ----- From: Bogdan-Andrei Iancu To: Javier Cc: Steve Blair ; users Sent: Thursday, September 28, 2006 2:34 PM Subject: Re: [Users] UN-REGISTER
Javier,
not sure what you are trying to achieve here: 1) to have only one phone per account and to try to deal with IP changing 2) multiple phones per account
regards, bogdan
Javier wrote:
the parameter desc_time_order ( set to 1) order the conctact in descending time order, and use the most recently updated/created user. and, if I understand, if the user A register from address 1 (Home), and more later register from address 2 (work) (the REGISTER is sent every minute from two address) and the soft re-send the register from address 1
how recognize openser that address 2 is the valid address? I attach the doc from this two parameters.
1.3.12. desc_time_order (integer) If set to 1 then all contacts will be ordered in descending modification time order. In this case the most recently updated/created contact will be used.
Default value is 0.
Example 1-12. Set desc_time_order parameter
... modparam("registrar", "desc_time_order", 1)
1.3.9. append_branches (integer) The parameter controls how lookup function processes multiple contacts. If there are multiple contacts for the given username in usrloc and this parameter is set to 1, Request-URI will be overwritten with the highest-q rated contact and the rest will be appended to sip_msg structure and can be later used by tm for forking. If the parameter is set to 0, only Request-URI will be overwritten with the highest-q rated contact and the rest will be left unprocessed.
Default value is 1.
Example 1-9. Set append_branches parameter
... modparam("registrar", "append_branches", 0) ... ----- Original Message -----
*From:* Bogdan-Andrei Iancu <mailto:bogdan@voice-system.ro> *To:* Steve Blair <mailto:blairs@isc.upenn.edu> *Cc:* users <mailto:users@openser.org> *Sent:* Thursday, September 28, 2006 10:52 AM *Subject:* Re: [Users] UN-REGISTER of course there is contact timeout as each contact is registered for a limited time period. a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html regards, bogdan Steve Blair wrote: > > You could also get creative and upon successful registration exec a > script that will examine the location table and remove (or manipulate > as you want) specific registrations. If these moves happen often this > approach will not scale well. If you only need one registration per > user then setting the max_contacts parameter is the easiest way to > accomplish this goal. > > _Steve > > Max Gregorian wrote: > >> Perhaps implement Registration Timeouts. >> >> If the aim is to stop the user from connecting using that IP address, >> then you could, on OpenSER, do something along the lines of: >> >> >> if(src_ip==192.168.0.55 <http://192.168.0.55/>) >> { >> sl_send_reply("404", "User not found.."); >> >> }; >> >> >> >> >> >> On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro <mailto:bogdan@voice-system.ro> >> <mailto:bogdan@voice-system.ro>> wrote: >> >> Hi Javier, >> >> that must be done by the phone. >> >> regards, >> bogdan >> >> Javier wrote: >> >> > can I unregister the the firsth register ? >> > >> > >> > ----- Original Message ----- >> > *From:* Daniel-Constantin Mierla >> <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> >> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar> >> <mailto:jvr_78@yahoo.com.ar>> >> > *Cc:* users <mailto:users@openser.org >> <mailto:users@openser.org>> >> > *Sent:* Saturday, September 23, 2006 5:36 PM >> > *Subject:* Re: [Users] UN-REGISTER >> > >> > If the user closes the sip client on 0.55, then the client >> should >> > automatically un-register. If not, then the user will have two >> > contacts >> > and both phones will ring. >> > >> > If you want to limit the number of registered contacts, you >> can do it >> > via max_contacts parameter of registrar module: >> > >> > >> http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 >> > >> > Cheers, >> > Daniel >> > >> > >> > On 09/22/06 23:47, Javier Ramirez wrote: >> > > Hi, I have a question: >> > > >> > > the user A is register, the ip of register is 192.168.0.55 >> <http://192.168.0.55>. >> > > the user change PC, and this PC have the ip 192.168.0.66 >> <http://192.168.0.66> >> > > >> > > the user register again, in the new machine, but, how to >> unregister >> > > the firsth registration from 192.168.0.55 >> <http://192.168.0.55> ? >> > > >> > > best regards >> > > Javier >> > > > _______________________________________________ Users mailing list Users@openser.org <mailto:Users@openser.org> http://openser.org/cgi-bin/mailman/listinfo/users __________ NOD32 1.1776 (20060926) Information __________ This message was checked by NOD32 antivirus system. http://www.eset.com
__________ NOD32 1.1776 (20060926) Information __________
This message was checked by NOD32 antivirus system. http://www.eset.com
I'm afraid this is not possible - in SIP, a server cannot close a soft/hard phone as in MSN or Yahoo.
why don't you use both devices in parallel?? an incoming call will be parallel forked t both.
regards, bogdan
Javier wrote:
I need this:
steps: 1 - one user register from your house, and not close. 2 - then go to the office, and register with the same acount from the office. 3 - like a msn, that in this case, *close automatic the soft in the house of the user*.
I need thar openser send a sip message, that close the soft.
Hi,
Actually i thought, this might be a good solution, but unfortunately it did not work out properly. What i found out was, that:
a) The Contacts however are not sorted at startup => Upon reload not the newest one is used but the first one loaded. b) The desc_time_order seems only to work with maximum two contacts per user (if the third contact gets updated, it seems like it is only pushed to the second entry and not to the first)
Am i correct, that really the registrar module was meant? The usrloc module also has a parameter (desc_time_order, http://openser.org/docs/modules/1.1.x/usrloc.html#AEN219) and from my point of view it make more sense to have this functionality in usrloc more than in the registrar. I'll test this.
Carsten
Bogdan-Andrei Iancu schrieb:
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Steve Blair wrote:
You could also get creative and upon successful registration exec a script that will examine the location table and remove (or manipulate as you want) specific registrations. If these moves happen often this approach will not scale well. If you only need one registration per user then setting the max_contacts parameter is the easiest way to accomplish this goal.
_Steve
Max Gregorian wrote:
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55 http://192.168.0.55/) { sl_send_reply("404", "User not found..");
};
On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro mailto:bogdan@voice-system.ro> wrote:
Hi Javier, that must be done by the phone. regards, bogdan Javier wrote: > can I unregister the the firsth register ? > > > ----- Original Message ----- > *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar>> > *Cc:* users <mailto:users@openser.org <mailto:users@openser.org>> > *Sent:* Saturday, September 23, 2006 5:36 PM > *Subject:* Re: [Users] UN-REGISTER > > If the user closes the sip client on 0.55, then the client should > automatically un-register. If not, then the user will have
two > contacts > and both phones will ring. > > If you want to limit the number of registered contacts, you can do it > via max_contacts parameter of registrar module: > > http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 > > Cheers, > Daniel > > > On 09/22/06 23:47, Javier Ramirez wrote: > > Hi, I have a question: > > > > the user A is register, the ip of register is 192.168.0.55 http://192.168.0.55. > > the user change PC, and this PC have the ip 192.168.0.66 http://192.168.0.66 > > > > the user register again, in the new machine, but, how to unregister > > the firsth registration from 192.168.0.55 http://192.168.0.55 ? > > > > best regards > > Javier > >
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi,
After testing this, it works if you set the desc_time_order Parameter in the usrloc module instead of in the registrar module. Now it even works properly after restarting the proxy. I think, the desc_time_order Parameter should be removed from the registrar module, since it does not work as described in the manual.
Carsten
Carsten Bock schrieb:
Hi,
Actually i thought, this might be a good solution, but unfortunately it did not work out properly. What i found out was, that:
a) The Contacts however are not sorted at startup => Upon reload not the newest one is used but the first one loaded. b) The desc_time_order seems only to work with maximum two contacts per user (if the third contact gets updated, it seems like it is only pushed to the second entry and not to the first)
Am i correct, that really the registrar module was meant? The usrloc module also has a parameter (desc_time_order, http://openser.org/docs/modules/1.1.x/usrloc.html#AEN219) and from my point of view it make more sense to have this functionality in usrloc more than in the registrar. I'll test this.
Carsten
Bogdan-Andrei Iancu schrieb:
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Steve Blair wrote:
You could also get creative and upon successful registration exec a script that will examine the location table and remove (or manipulate as you want) specific registrations. If these moves happen often this approach will not scale well. If you only need one registration per user then setting the max_contacts parameter is the easiest way to accomplish this goal.
_Steve
Max Gregorian wrote:
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55 http://192.168.0.55/) { sl_send_reply("404", "User not found..");
};
On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro mailto:bogdan@voice-system.ro> wrote:
Hi Javier, that must be done by the phone. regards, bogdan Javier wrote: > can I unregister the the firsth register ? > > > ----- Original Message ----- > *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar>> > *Cc:* users <mailto:users@openser.org <mailto:users@openser.org>> > *Sent:* Saturday, September 23, 2006 5:36 PM > *Subject:* Re: [Users] UN-REGISTER > > If the user closes the sip client on 0.55, then the client should > automatically un-register. If not, then the user will
have two > contacts > and both phones will ring. > > If you want to limit the number of registered contacts, you can do it > via max_contacts parameter of registrar module: > > http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 > > Cheers, > Daniel > > > On 09/22/06 23:47, Javier Ramirez wrote: > > Hi, I have a question: > > > > the user A is register, the ip of register is 192.168.0.55 http://192.168.0.55. > > the user change PC, and this PC have the ip 192.168.0.66 http://192.168.0.66 > > > > the user register again, in the new machine, but, how to unregister > > the firsth registration from 192.168.0.55 http://192.168.0.55 ? > > > > best regards > > Javier > >
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Hi,
I've made a patch for the registrar module (and it's documentation) in order to remove this parameter (attached). I suggest we should remove this parameter in the next version...
Carsten
Carsten Bock schrieb:
Hi,
After testing this, it works if you set the desc_time_order Parameter in the usrloc module instead of in the registrar module. Now it even works properly after restarting the proxy. I think, the desc_time_order Parameter should be removed from the registrar module, since it does not work as described in the manual.
Carsten
Carsten Bock schrieb:
Hi,
Actually i thought, this might be a good solution, but unfortunately it did not work out properly. What i found out was, that:
a) The Contacts however are not sorted at startup => Upon reload not the newest one is used but the first one loaded. b) The desc_time_order seems only to work with maximum two contacts per user (if the third contact gets updated, it seems like it is only pushed to the second entry and not to the first)
Am i correct, that really the registrar module was meant? The usrloc module also has a parameter (desc_time_order, http://openser.org/docs/modules/1.1.x/usrloc.html#AEN219) and from my point of view it make more sense to have this functionality in usrloc more than in the registrar. I'll test this.
Carsten
Bogdan-Andrei Iancu schrieb:
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Steve Blair wrote:
You could also get creative and upon successful registration exec a script that will examine the location table and remove (or manipulate as you want) specific registrations. If these moves happen often this approach will not scale well. If you only need one registration per user then setting the max_contacts parameter is the easiest way to accomplish this goal.
_Steve
Max Gregorian wrote:
Perhaps implement Registration Timeouts.
If the aim is to stop the user from connecting using that IP address, then you could, on OpenSER, do something along the lines of:
if(src_ip==192.168.0.55 http://192.168.0.55/) { sl_send_reply("404", "User not found..");
};
On 9/28/06, *Bogdan-Andrei Iancu* <bogdan@voice-system.ro mailto:bogdan@voice-system.ro> wrote:
Hi Javier, that must be done by the phone. regards, bogdan Javier wrote: > can I unregister the the firsth register ? > > > ----- Original Message ----- > *From:* Daniel-Constantin Mierla <mailto:daniel@voice-system.ro <mailto:daniel@voice-system.ro>> > *To:* Javier Ramirez <mailto: jvr_78@yahoo.com.ar <mailto:jvr_78@yahoo.com.ar>> > *Cc:* users <mailto:users@openser.org <mailto:users@openser.org>> > *Sent:* Saturday, September 23, 2006 5:36 PM > *Subject:* Re: [Users] UN-REGISTER > > If the user closes the sip client on 0.55, then the client should > automatically un-register. If not, then the user will
have two > contacts > and both phones will ring. > > If you want to limit the number of registered contacts, you can do it > via max_contacts parameter of registrar module: > > http://www.openser.org/docs/modules/1.1.x/registrar.html#AEN233 > > Cheers, > Daniel > > > On 09/22/06 23:47, Javier Ramirez wrote: > > Hi, I have a question: > > > > the user A is register, the ip of register is 192.168.0.55 http://192.168.0.55. > > the user change PC, and this PC have the ip 192.168.0.66 http://192.168.0.66 > > > > the user register again, in the new machine, but, how to unregister > > the firsth registration from 192.168.0.55 http://192.168.0.55 ? > > > > best regards > > Javier > >
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users
--- /usr/src/orig/openser-1.1.0-tls/modules/registrar/doc/registrar_faq.sgml 2005-06-13 18:47:44.000000000 +0200 +++ registrar_faq.sgml 2006-10-04 16:01:21.000000000 +0200 @@ -60,6 +60,16 @@ </para> </answer> </qandaentry> + <qandaentry> + <question> + <para>What happened to the desc_time_order parameter?</para> + </question> + <answer> + <para> + It was removed, since it did only work for updated contacts and for not more than two contacts. + </para> + </answer> + </qandaentry> </qandaset> </chapter>
--- /usr/src/orig/openser-1.1.0-tls/modules/registrar/doc/registrar_user.sgml 2006-04-13 18:44:04.000000000 +0200 +++ registrar_user.sgml 2006-10-04 16:01:21.000000000 +0200 @@ -364,28 +364,6 @@ </section>
<section> - <title><varname>desc_time_order</varname> (integer)</title> - <para> - If set to 1 then all contacts will be ordered in descending - modification time order. In this case the most recently - updated/created contact will be used. - </para> - <para> - <emphasis> - Default value is 0. - </emphasis> - </para> - <example> - <title>Set <varname>desc_time_order</varname> parameter</title> - <programlisting format="linespecific"> -... -modparam("registrar", "desc_time_order", 1) -... -</programlisting> - </example> - </section> - - <section> <title><varname>received_avp</varname> (integer)</title> <para> Registrar will store the value of the AVP configured by this
--- /usr/src/orig/openser-1.1.0-tls/modules/registrar/reg_mod.c 2006-04-13 18:44:04.000000000 +0200 +++ reg_mod.c 2006-10-04 15:59:16.000000000 +0200 @@ -29,6 +29,9 @@ * sobomax@portaone.com (janakj) * 2005-07-11 added sip_natping_flag for nat pinging with SIP method * instead of UDP package (bogdan) + * 2006-10-04 removed the "desc_time_order" parameter, since it does not + * work as described and the "desc_time_order" parameter is also + * available in the usrloc module. (Carsten Bock, BASIS AudioNet GmbH) */
#include <stdio.h> @@ -63,8 +66,6 @@ int append_branches = 1; /* If set to 1, username in aor will be case sensitive */ int case_sensitive = 0; -/* By default do not order according to the descending modification time */ -int desc_time_order = 0; /* flag marking contacts behind NAT */ int nat_flag = -1; /* if the TCP connection should be kept open */ @@ -145,7 +146,6 @@ {"default_q", INT_PARAM, &default_q }, {"append_branches", INT_PARAM, &append_branches }, {"case_sensitive", INT_PARAM, &case_sensitive }, - {"desc_time_order", INT_PARAM, &desc_time_order }, {"nat_flag", INT_PARAM, &nat_flag }, {"sip_natping_flag", INT_PARAM, &sip_natping_flag }, {"tcp_persistent_flag",INT_PARAM, &tcp_persistent_flag }, --- /usr/src/orig/openser-1.1.0-tls/modules/registrar/reg_mod.h 2006-04-13 18:44:04.000000000 +0200 +++ reg_mod.h 2006-10-04 15:51:00.000000000 +0200 @@ -54,7 +54,6 @@ extern qvalue_t default_q; extern int append_branches; extern int case_sensitive; -extern int desc_time_order; extern int nat_flag; extern int sip_natping_flag; extern int tcp_persistent_flag; --- /usr/src/orig/openser-1.1.0-tls/modules/registrar/save.c 2006-07-04 12:58:32.000000000 +0200 +++ save.c 2006-10-04 15:51:00.000000000 +0200 @@ -60,41 +60,6 @@ static int mem_only = 0; int_str rcv_avp;
-void remove_cont(urecord_t* _r, ucontact_t* _c) -{ - if (_c->prev) { - _c->prev->next = _c->next; - if (_c->next) { - _c->next->prev = _c->prev; - } - } else { - _r->contacts = _c->next; - if (_c->next) { - _c->next->prev = 0; - } - } -} - - -void move_on_top(urecord_t* _r, ucontact_t* _c) -{ - ucontact_t* prev; - - if (!_r->contacts) return; - if (_c->prev == 0) return; - - prev = _c->prev; - - remove_cont(_r, _c); - - _c->next = _r->contacts; - _c->prev = 0; - - _r->contacts->prev = _c; - _r->contacts = _c; -} - - /* * Process request that contained a star, in that case, * we will remove all bindings with the given username @@ -670,10 +635,6 @@ "update contact\n"); goto error; } - - if (desc_time_order) { - move_on_top(_r, c); - } } } #ifdef USE_TCP
Hi Carsten,
well...things are not quite so simple.
the "desc_time_order" in usrloc controls how the contacts are ordered at insert time - when a new contact is received, it maybe inserted in the contacts list (for the AOR record) based on q or time criteria.
the "desc_time_order" in register controls the update process - when a contact is updated, it will be moved first if the option is enabled. Initial insert is not affected at all.
So, it looks like these parameters (from different modules) controls different things: usrloc - insert order registrar - update order
which IMHO doesn't look so consistent....What people what to achieve is to have the contacts ordered either by q, either by modification time (insert or update)...which means you have to set the param in both modules....
I think will make sense to remove the param from registrar module, but to move it's functionality in usrloc module.
regards, bogdan
Carsten Bock wrote:
Hi,
I've made a patch for the registrar module (and it's documentation) in order to remove this parameter (attached). I suggest we should remove this parameter in the next version...
Carsten
Carsten Bock schrieb:
Hi,
After testing this, it works if you set the desc_time_order Parameter in the usrloc module instead of in the registrar module. Now it even works properly after restarting the proxy. I think, the desc_time_order Parameter should be removed from the registrar module, since it does not work as described in the manual.
Carsten
Carsten Bock schrieb:
Hi,
Actually i thought, this might be a good solution, but unfortunately it did not work out properly. What i found out was, that:
a) The Contacts however are not sorted at startup => Upon reload not the newest one is used but the first one loaded. b) The desc_time_order seems only to work with maximum two contacts per user (if the third contact gets updated, it seems like it is only pushed to the second entry and not to the first)
Am i correct, that really the registrar module was meant? The usrloc module also has a parameter (desc_time_order, http://openser.org/docs/modules/1.1.x/usrloc.html#AEN219) and from my point of view it make more sense to have this functionality in usrloc more than in the registrar. I'll test this.
Carsten
Bogdan-Andrei Iancu schrieb:
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Hi Bogdan,
I guess your right. In my test-case i actually did only insert new contacts, i did not update any existing contacts; and that is why it worked as i thought it should. I will set both parameters in my config, then everything should be happy. Tomorrow i will look into the usrloc-source, to see if i can create a patch to move the functionality completely into the usrloc-module.
Thanks in advance, Carsten
Bogdan-Andrei Iancu schrieb:
Hi Carsten,
well...things are not quite so simple.
the "desc_time_order" in usrloc controls how the contacts are ordered at insert time - when a new contact is received, it maybe inserted in the contacts list (for the AOR record) based on q or time criteria.
the "desc_time_order" in register controls the update process - when a contact is updated, it will be moved first if the option is enabled. Initial insert is not affected at all.
So, it looks like these parameters (from different modules) controls different things: usrloc - insert order registrar - update order
which IMHO doesn't look so consistent....What people what to achieve is to have the contacts ordered either by q, either by modification time (insert or update)...which means you have to set the param in both modules....
I think will make sense to remove the param from registrar module, but to move it's functionality in usrloc module.
regards, bogdan
Carsten Bock wrote:
Hi,
I've made a patch for the registrar module (and it's documentation) in order to remove this parameter (attached). I suggest we should remove this parameter in the next version...
Carsten
Carsten Bock schrieb:
Hi,
After testing this, it works if you set the desc_time_order Parameter in the usrloc module instead of in the registrar module. Now it even works properly after restarting the proxy. I think, the desc_time_order Parameter should be removed from the registrar module, since it does not work as described in the manual.
Carsten
Carsten Bock schrieb:
Hi,
Actually i thought, this might be a good solution, but unfortunately it did not work out properly. What i found out was, that:
a) The Contacts however are not sorted at startup => Upon reload not the newest one is used but the first one loaded. b) The desc_time_order seems only to work with maximum two contacts per user (if the third contact gets updated, it seems like it is only pushed to the second entry and not to the first)
Am i correct, that really the registrar module was meant? The usrloc module also has a parameter (desc_time_order, http://openser.org/docs/modules/1.1.x/usrloc.html#AEN219) and from my point of view it make more sense to have this functionality in usrloc more than in the registrar. I'll test this.
Carsten
Bogdan-Andrei Iancu schrieb:
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Hi Carsten,
I already moved the entire functionality to the parameter in usrloc module. Also I applied your patch for removing the param from registrar module. Thanks.
regards, bogdan
Carsten Bock wrote:
Hi Bogdan,
I guess your right. In my test-case i actually did only insert new contacts, i did not update any existing contacts; and that is why it worked as i thought it should. I will set both parameters in my config, then everything should be happy. Tomorrow i will look into the usrloc-source, to see if i can create a patch to move the functionality completely into the usrloc-module.
Thanks in advance, Carsten
Bogdan-Andrei Iancu schrieb:
Hi Carsten,
well...things are not quite so simple.
the "desc_time_order" in usrloc controls how the contacts are ordered at insert time - when a new contact is received, it maybe inserted in the contacts list (for the AOR record) based on q or time criteria.
the "desc_time_order" in register controls the update process - when a contact is updated, it will be moved first if the option is enabled. Initial insert is not affected at all.
So, it looks like these parameters (from different modules) controls different things: usrloc - insert order registrar - update order
which IMHO doesn't look so consistent....What people what to achieve is to have the contacts ordered either by q, either by modification time (insert or update)...which means you have to set the param in both modules....
I think will make sense to remove the param from registrar module, but to move it's functionality in usrloc module.
regards, bogdan
Carsten Bock wrote:
Hi,
I've made a patch for the registrar module (and it's documentation) in order to remove this parameter (attached). I suggest we should remove this parameter in the next version...
Carsten
Carsten Bock schrieb:
Hi,
After testing this, it works if you set the desc_time_order Parameter in the usrloc module instead of in the registrar module. Now it even works properly after restarting the proxy. I think, the desc_time_order Parameter should be removed from the registrar module, since it does not work as described in the manual.
Carsten
Carsten Bock schrieb:
Hi,
Actually i thought, this might be a good solution, but unfortunately it did not work out properly. What i found out was, that:
a) The Contacts however are not sorted at startup => Upon reload not the newest one is used but the first one loaded. b) The desc_time_order seems only to work with maximum two contacts per user (if the third contact gets updated, it seems like it is only pushed to the second entry and not to the first)
Am i correct, that really the registrar module was meant? The usrloc module also has a parameter (desc_time_order, http://openser.org/docs/modules/1.1.x/usrloc.html#AEN219) and from my point of view it make more sense to have this functionality in usrloc more than in the registrar. I'll test this.
Carsten
Bogdan-Andrei Iancu schrieb:
of course there is contact timeout as each contact is registered for a limited time period.
a more elegant solution is to use the "desc_time_order" and "append_branches" module parameter in order to retrieve from usrloc only the latest contact. See: http://openser.org/docs/modules/1.1.x/registrar.html
regards, bogdan
Users mailing list Users@openser.org http://openser.org/cgi-bin/mailman/listinfo/users