[Home]

Summary:ASTERISK-05944: [patch] print a msg on restart/stop when convenient on remote console
Reporter:Clod Patry (junky)Labels:
Date Opened:2006-01-01 15:33:02.000-0600Date Closed:2011-06-07 14:10:23
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) halt_restart.txt
Description:Currently, there's not message printed on restart/stop when convenient for remote console, by consequent when called from a shell command like: asterisk -rx'foo'

Some users thinks something is bad, since there's no message.


polux:/etc/asterisk# asterisk -rx 'restart when convenient'
Waiting for inactivity to perform restart
polux:/etc/asterisk#

polux*CLI> restart when convenient
Waiting for inactivity to perform restart
polux*CLI>


****** ADDITIONAL INFORMATION ******

Since the verbose is locked, i can't use the existing ast_verbose from quit_handler(). That verbose is only display in the console (-c).

Many ppl uses safe_asterisk and a -R/-rx so that patch is mainly for them.
Comments:By: Matt O'Gorman (mogorman) 2006-01-12 15:28:46.000-0600

hey junky.  this patch locks the console until asterisk is ready to quit.  I dont think that was your intended behavior right junky?

By: Clod Patry (junky) 2006-01-12 20:05:32.000-0600

Not intentional.
will work on that.

By: Clod Patry (junky) 2006-01-12 20:22:58.000-0600

That lock in the current CLI isnt caused by my patch, it just waits until * closes. That behavior is prior to my patch.
You should see my cli message on the remote console, then it waits, right?
If you exit that remote console, then re-enter in the CLI, you will be able to perform more commands in the CLI until the * restarts (or halt).


This is due to the quit_handler wait the restart/halt and no more ast_cli, ast_verbose is allowed, since its locked.

By: Matt O'Gorman (mogorman) 2006-01-12 23:49:39.000-0600

commited into trunk in 8050