Re: [OpenSIPS-Users] uac_registrant : Is there any way to de register particular registrant ?
Hello Donat, Thanks for your reply. However my case is different from what you have mentioned. In my case OpenSIPS is acting as a UAC and not as Registrar. I am using the uac_registrant[1] module to make opensips register ( just like any SIP phone) with Remote SIP Server( Freeswitch). 1 : https://opensips.org/html/docs/modules/1.10.x/uac_registrant.html On Thu, Dec 10, 2020 at 7:27 PM Donat Zenichev wrote: > Good day Sagar! > Following the RFC 3261 requirements, which is the mostly used version of > the RFC for the SIP protocol, we have the following ways to do that: > - send a registration from behalf of a currently registered subscriber, > with the "Expires:" header set to "0" value ; > - send a registration from behalf of a currently registered subscriber, > with the ";expires=" parameter of the "Contact:" header set to "0" value ; > - send a registration from behalf of a currently registered subscriber, > with the "Contact:" header set to "*" value ; > > I should mention that the last definition, with a "Contact:" header set to > "*" might be a non-working solution. > I haven't ever tested this with OpenSIPS. So better to stick to the first > two options. > > Other than that, I'm not sure if the location record can be deleted > manually without an impact on the subscriber's experience. > What I mean to say by that, is that even though you delete a location > record from mysql, the subscriber still expects that the location is modern > and inbound calls are available. > So this method looks a bit harsh. > > On the other hand, the way how the OpenSIPS treats your location records, > in terms of using the backend, depends on which "db_mode" you have picked > out for "usrloc.so": > https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_db_mode > > So in case, if you just want to strictly delete certain location record of > certain subscriber, and by doing that, you expect the user to drift away, > this will not work out if your "db_mode" of the "usrloc.so" is set to > "single-instance-sql-write-back". As the general source here would be the > cache and not sql backend. > > Still I might be mistaken at some point, and I would first of all advise > you to read this articles: > - Section "Registrations" in the RFC 3261 - > https://tools.ietf.org/html/rfc3261#section-10 > - Documentation for the "usrloc.so" module of OpenSIPS - > https://opensips.org/html/docs/modules/3.0.x/usrloc.html > - Documentation for the "registrar.so" module of OpenSIPS - > https://opensips.org/docs/modules/3.0.x/registrar.html > > And also there might be a sense to read about MI functionality (as this > can have somehow help to achieve your goal): > https://www.opensips.org/Documentation/Interface-MI-3-0 > > I hope my answer was useful for you. > > On Thu, Dec 10, 2020 at 2:56 PM sagar malam wrote: > >> Hello, >> >> I am using uac registrant module to register with Remote SIP server(RSS) >> . I would like to have a way to tell opensips to de >> register particular registrant from RSS. Is there a way to do it ? >> >> I tried to remove the registrant entry from the database and reload list >> via MI command but that does not work. >> -- >> Thanks, >> >> Sagar >> ___ >> Users mailing list >> Users@lists.opensips.org >> http://lists.opensips.org/cgi-bin/mailman/listinfo/users >> > > > -- > > Best regards, > Donat Zenichev > > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Thanks, Sagar ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] Db_mode=3(sql only) in USRLOC module in opensips_3.1
Good morning Saurabh, that sounds a bit odd, as the sql only mode supposes that usrloc.so updates the backend sql right away. Do you have any warnings occurring in the OpenSIPS log? There might be a case for an inability of OpenSIPS to reach the sql server at the moment of de-registration. See if there are any re-connections to the database. And also did you try to gather opensips logs with a debug level? Try to see which log rows both "db_mysql.so" (if you are using mysql as a backend db) and "usrloc.so" are throwing out into the log, when you send a de-registration. Otherwise, you might also try to use either "single-instance-sql-write-through" or "single-instance-sql-write-back", which perhaps can better fit your demands. On Fri, Dec 11, 2020 at 9:00 AM Saurabh Chopra wrote: > Hi All, > > I am testing a usrloc module with db_mode=3(sql only) and a strange thing > is happening, when we send an unregistration request the user entry is not > deleting from the database . However the entry is deleted after > expiry timer. > > loadmodule "usrloc.so" > modparam("usrloc", "nat_bflag", "NAT") > modparam("usrloc", "db_mode", 3) > modparam("usrloc", "db_url", "mysql://root:g1c@localhost/opensips") > > > Does db_mode=3 used to work like this? Or I am missing something? > > Best Regards > Saurabh Chopra > +918861979979 > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Best regards, Donat Zenichev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] Db_mode=3(sql only) in USRLOC module in opensips_3.1
Hi All, I am testing a usrloc module with db_mode=3(sql only) and a strange thing is happening, when we send an unregistration request the user entry is not deleting from the database . However the entry is deleted after expiry timer. loadmodule "usrloc.so" modparam("usrloc", "nat_bflag", "NAT") modparam("usrloc", "db_mode", 3) modparam("usrloc", "db_url", "mysql://root:g1c@localhost/opensips") Does db_mode=3 used to work like this? Or I am missing something? Best Regards Saurabh Chopra +918861979979 ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Re: [OpenSIPS-Users] uac_registrant : Is there any way to de register particular registrant ?
Good day Sagar! Following the RFC 3261 requirements, which is the mostly used version of the RFC for the SIP protocol, we have the following ways to do that: - send a registration from behalf of a currently registered subscriber, with the "Expires:" header set to "0" value ; - send a registration from behalf of a currently registered subscriber, with the ";expires=" parameter of the "Contact:" header set to "0" value ; - send a registration from behalf of a currently registered subscriber, with the "Contact:" header set to "*" value ; I should mention that the last definition, with a "Contact:" header set to "*" might be a non-working solution. I haven't ever tested this with OpenSIPS. So better to stick to the first two options. Other than that, I'm not sure if the location record can be deleted manually without an impact on the subscriber's experience. What I mean to say by that, is that even though you delete a location record from mysql, the subscriber still expects that the location is modern and inbound calls are available. So this method looks a bit harsh. On the other hand, the way how the OpenSIPS treats your location records, in terms of using the backend, depends on which "db_mode" you have picked out for "usrloc.so": https://opensips.org/html/docs/modules/3.0.x/usrloc.html#param_db_mode So in case, if you just want to strictly delete certain location record of certain subscriber, and by doing that, you expect the user to drift away, this will not work out if your "db_mode" of the "usrloc.so" is set to "single-instance-sql-write-back". As the general source here would be the cache and not sql backend. Still I might be mistaken at some point, and I would first of all advise you to read this articles: - Section "Registrations" in the RFC 3261 - https://tools.ietf.org/html/rfc3261#section-10 - Documentation for the "usrloc.so" module of OpenSIPS - https://opensips.org/html/docs/modules/3.0.x/usrloc.html - Documentation for the "registrar.so" module of OpenSIPS - https://opensips.org/docs/modules/3.0.x/registrar.html And also there might be a sense to read about MI functionality (as this can have somehow help to achieve your goal): https://www.opensips.org/Documentation/Interface-MI-3-0 I hope my answer was useful for you. On Thu, Dec 10, 2020 at 2:56 PM sagar malam wrote: > Hello, > > I am using uac registrant module to register with Remote SIP server(RSS) . > I would like to have a way to tell opensips to de > register particular registrant from RSS. Is there a way to do it ? > > I tried to remove the registrant entry from the database and reload list > via MI command but that does not work. > -- > Thanks, > > Sagar > ___ > Users mailing list > Users@lists.opensips.org > http://lists.opensips.org/cgi-bin/mailman/listinfo/users > -- Best regards, Donat Zenichev ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users
[OpenSIPS-Users] uac_registrant : Is there any way to de register particular registrant ?
Hello, I am using uac registrant module to register with Remote SIP server(RSS) . I would like to have a way to tell opensips to de register particular registrant from RSS. Is there a way to do it ? I tried to remove the registrant entry from the database and reload list via MI command but that does not work. -- Thanks, Sagar ___ Users mailing list Users@lists.opensips.org http://lists.opensips.org/cgi-bin/mailman/listinfo/users