I’m developing a multi-tenancy system in Asterisk. I want to add a function to my project that will unregister other extensions, but I haven’t figured out how to do it. I can perform some operations with actions on the Node.js side, but I haven’t found a solution for the unregistering process. Does anyone have any information on how to do this?
On Tuesday 23 December 2025 at 13:19:19, umutturkeri via Asterisk Community
wrote:
I want to add a function to my project that will unregister other
extensions, but I haven’t figured out how to do it.
Unregistering is simply a SIP Register command with the expiry time set to
zero. It doesn’t have to come from the same IP as the Register command (with
a non-zero expiry time) was sent from.
However, given that SIP endpoints register themselves on a regular basis, all
you will achieve by doing this is to have the device unreachable to Asterisk
for the short period of time between unregistering it and when it next chooses
to register itself.
Also, bear in mind that registering is only for calls TO the device. If the
device wants to place a call to Asterisk, it will send an Invite and the call
will work - registering is not required for this. I suspect that’s not what
you want?
Maybe you should explain more about what you are trying to achieve, because it
doesn’t strike me that unregistering a device from somewhere else is
particularly useful, for the above reasons.
Antony.
–
“Remember: the S in IoT stands for Security.”
- Jan-Piet Mens