Hello,

 

please have a look to the docs, its all there.

 

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: Ahmed Fouad <afouad@gmail.com>
Sent: Thursday, April 14, 2022 10:54 AM
To: Henning Westerholt <hw@gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC parameter for enabling and disabling remote registration

 

Thanks and how can I control that timer after enabling the contact ?

 

Regarding the dbase flag I don't see the current values saved there , it's only shown when dumping.


From: Henning Westerholt <hw@gilawa.com>
Sent: Thursday, April 14, 2022 10:50:15 AM
To: Ahmed Fouad <afouad@gmail.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: RE: [SR-Users] UAC parameter for enabling and disabling remote registration

 

Hello,

 

if you do the reg enable and it shows also enabled in the flags, there should be (maybe after a timer run period) a new REGISTER send out.

 

Regarding your request, I would try to add the DB records with “disabled” flag in the database, and then using the uac_reg_enable/_disable function in the cfg file.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: Ahmed Fouad <afouad@gmail.com>
Sent: Wednesday, April 13, 2022 9:15 PM
To: Henning Westerholt <hw@gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC parameter for enabling and disabling remote registration

 

Hi,

I did many tests with some combinations and I'm afraid I've a problem here with registration after being disabled

1 - Having modparam("uac", "reg_active", 0)

Completely disable the remote registration and can't be overridden any other options trying to enable single registration from the code or from kamcmd.

 

2 - Having modparam("uac", "reg_active", 1)

Remote registration is automatic and sent when kamailio is restarted and all expiration is being handled perfectly.

thus dumping reg_dump the flags = 20 ( 16 (2^4) - registration initialized  + 4 (2^2) - registration succeeded )

 

I tried to disable this registration using kamcmd uac.reg_disable l_username XXXXX and it's disabled and confirmed flags: 21 (+ 1 (2^0) - registration profile is disabled ))

but my problem here I didn't see unregister going with expiration = 0 to clear the registration from the remote pbx so I used kamcmd uac.reg_unregister l_username XXXXX and message went fine and extension was unregistered.

tried again to enable it back using kamcmd uac.reg_enable l_username XXXXXX I see the flags goes to 16 only and no register message is being sent and it's stale like this even by running kamcmd uac.reg_reload

 

My request is simply I've some entries in the uacreg table. I'd like to start kamailio without remote registration being enabled and have the ability to enable/disable the REGISTER messages from the configuration file.

 

Can you please advise how to accomplish such scenario ?

 

 

 

On Wed, Apr 13, 2022 at 11:03 AM Henning Westerholt <hw@gilawa.com> wrote:

Hello,

 

don’t know without looking to the code, I’d say just give it a try and see if it works.

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: Ahmed Fouad <afouad@gmail.com>
Sent: Wednesday, April 13, 2022 4:42 PM
To: Henning Westerholt <hw@gilawa.com>
Cc: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] UAC parameter for enabling and disabling remote registration

 

Hi,

 

I've tested this parameter and it's working as expected but I've a question here. When I start kamailio with disabled remote registration mode then from the configuration I use uac_reg_request_to(user, mode) to register only a single extension.

Will this scenario work ?

or the whole remote registration is disabled and needs to be enabled first ?

 

My goal is to send single registrations only from the code logic, not when kamailio starts.

 

On Wed, Apr 13, 2022 at 10:16 AM Henning Westerholt <hw@gilawa.com> wrote:

Hello,

 

it is present e.g. in 5.5.x, also available in docs: https://kamailio.org/docs/modules/5.5.x/modules/uac.html#uac.p.reg_active

 

Why do you think it was not merged?

 

Cheers,

 

Henning

 

--

Henning Westerholt – https://skalatan.de/blog/

Kamailio services – https://gilawa.com

 

From: sr-users <sr-users-bounces@lists.kamailio.org> On Behalf Of Ahmed Fouad
Sent: Wednesday, April 13, 2022 4:11 PM
To: Kamailio (SER) - Users Mailing List <sr-users@lists.kamailio.org>
Subject: [SR-Users] UAC parameter for enabling and disabling remote registration

 

Hi,

 

I was wondering if this patch was ever merged to the current release(s)

 

 

I'd like to start Kamailio with all remote registration disabled then enable based on the code logic

 

Thanks in advance,



--

Best Regards,
Ahmed Fouad



--

Best Regards,
Ahmed Fouad