Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-14 Thread sagar malam
Hello , On Mon, Sep 14, 2020 at 4:16 AM Alex Balashov wrote: > Hi, > > On 2020-09-11 08:19, sagar malam wrote: > > > Hello , > > I am using the usrloc module to store registrations. I could not find > > any way to remove stale registrations before expires time. Most of the > > registrations are

Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-13 Thread Alex Balashov
Hi, On 2020-09-11 08:19, sagar malam wrote: Hello , I am using the usrloc module to store registrations. I could not find any way to remove stale registrations before expires time. Most of the registrations are mobile app so they wont run in background to save battery of phone hence we end u

Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-12 Thread sagar malam
On Fri, Sep 11, 2020 at 11:06 PM David Villasmil < david.villasmil.w...@gmail.com> wrote: > Why not just expire them quickly? > This may work but it will increase rate of registrations and put load on server. > > On Fri, 11 Sep 2020 at 17:25, sagar malam wrote: > >> Hello Juha, >> >> baresip app

Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-12 Thread sagar malam
There was mistake in Json syntax but it does not work with kamcmd as well : [root@SBC-4-2 kamailio]# kamcmd ul.rm_contact location 30...@jeff.sip.teledge.com "sip:30001@43.228.229.106:38048 ;x-nat=yes;pv-ip=10.212.134.171;pb-ip=43.228.229.106;pb-pt=38048;transport=tcp" error: 404 - Contact not fou

Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-11 Thread Juha Heinanen
sagar malam writes: > I have tried ul_rm_contact but it is not working : > curl POST --data > '{"jsonrpc":"2.0","method":"ul.rm_contact","params":{"0":"location","1":" > 30...@x.com > <30...@jeff.sip.teledge.com>","2":"sip:30001@X.X.X.X:43108;x-nat=yes;pv-ip=10.212.134.167;pb-ip=X.X.X.X;pb-pt=

[SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-11 Thread Juha Heinanen
sagar malam writes: > I am using the usrloc module to store registrations. I could not find any > way to remove stale registrations before expires time. Most of the > registrations are mobile app so they wont run in background to save battery > of phone hence we end up having lots of registrations

Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-11 Thread David Villasmil
Why not just expire them quickly? On Fri, 11 Sep 2020 at 17:25, sagar malam wrote: > Hello Juha, > > baresip app is interesting. I will look at it. > > I have tried ul_rm_contact but it is not working : > curl POST --data > '{"jsonrpc":"2.0","method":"ul.rm_contact","params":{"0":"location","1":

Re: [SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-11 Thread sagar malam
Hello Juha, baresip app is interesting. I will look at it. I have tried ul_rm_contact but it is not working : curl POST --data '{"jsonrpc":"2.0","method":"ul.rm_contact","params":{"0":"location","1":" 30...@x.com <30...@jeff.sip.teledge.com>","2":"sip:30001@X.X.X.X:43108;x-nat=yes;pv-ip=10.21

[SR-Users] Is there any way to remove stale registrations before expires time from usrloc ?

2020-09-11 Thread sagar malam
Hello , I am using the usrloc module to store registrations. I could not find any way to remove stale registrations before expires time. Most of the registrations are mobile app so they wont run in background to save battery of phone hence we end up having lots of registrations in usrloc which were