Skip to content

Commit

Permalink
asterisk: add a reregister extra command
Browse files Browse the repository at this point in the history
The new `/etc/init.d/asterisk reregister` will re-register all outbound
registrations.

Signed-off-by: Andre Heider <[email protected]>
  • Loading branch information
dhewg committed Nov 4, 2021
1 parent 2438ff5 commit fbe76ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions net/asterisk/files/asterisk.init
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,9 @@ start_service() {
reload_service() {
procd_send_signal $NAME
}

extra_command "reregister" "Re-register all outbound registrations"
reregister() {
log info "re-registering all outbound registrations"
$COMMAND -x 'pjsip send unregister *all' -x 'pjsip send register *all'
}

0 comments on commit fbe76ba

Please sign in to comment.