Page 1 of 1

registered VS unregistered

PostPosted: Thu Mar 12, 2015 6:36 am
by richardroi
Hello,
Just want to ask some details how is the system considering the sip to registered and unregistered?
We are extracting logs of sip and on the data we gathered there are more registered logs vs unregistered on day to day basis.
Should the count be the same? Lets say 4010 unregistered so its 1 count and if registered again it is 1 count also. Hope i am making sense.
In the data we have there are more registered counts rather than unregistered ones.

Hoping for someone to clarify.

Thank you.

Re: registered VS unregistered

PostPosted: Fri Mar 13, 2015 6:19 am
by richardroi
Anyone? I goggled around and some are saying that hard phones doesn't have the capability to unregistered unlike soft phones?
Im totally lost.

Re: registered VS unregistered

PostPosted: Tue Mar 17, 2015 8:26 pm
by williamconley
richardroi wrote:Anyone? I goggled around and some are saying that hard phones doesn't have the capability to unregistered unlike soft phones?
Im totally lost.

Here's a funny thing. If YOU post again on your original post, it appears that someone responded to your post. Even though it was YOU.

So you no longer show under "unanswered posts". And you can get completely ignored from that moment ...

8-)>

I'm really interested in what on earth would make you decide to check how often phones register and unregister. LOL

That being said: If a phone is turned off or loses internet connectivity, it will NOT unregister. But when it restarts or regains net, it will register again.

Re: registered VS unregistered

PostPosted: Thu Mar 19, 2015 12:35 pm
by richardroi
Thank you Sir William as always.
Our client want to see data of phones registered and unregistered, but i believe what they want to monitor is which phones are/went "online and offline" in a particular date.

Re: registered VS unregistered

PostPosted: Thu Mar 19, 2015 1:55 pm
by williamconley
Two methods:

1) Run a check every minute and compare to the prior minute's registrations. If any disappear but do not have an unregister entry, create an "force-unregister" entry.
2) Whenever you see a register for an already registered sip account, you can modify that to "re-register" or merely notify the client that this occurred. Problem: You have no idea when the "un"register occurred with this method. If someone is trying to use this information for troubleshooting, it may only be 50% useful compared to the above.

OK: Technically, you could also consider investigating the auto-unregister functionality within asterisk and perhaps find a way to capture that event in a DEBUG log or AMI event. But that's a long shot, I'm not sure it can be done without altering the Asterisk code and recompiling. 8-)