[Asterisk-Users] Re: How to restart * thru phone "when convenient"

Cees de Groot cg at tric.nl
Tue Dec 2 13:17:29 MST 2003


Philipp von Klitzing  <asterisk-users at lists.digium.com> said:
>> >exten => 588,6,System(/usr/sbin/asterisk -rx "restart when convenient")
>> >
>> Put an & behind the line?
>
>It does help to get a proper hang up for the client, but there is no 
>restart initiated at all... looks like now the system calls gets 
>cancelled due to the fact that the client is gone.  
>
Ah. Then put a 'nohup' in front of it:

System(nohup /usr/sbin/asterisk -rx "restart when convenient" >&/dev/null &)

Should do it.

>> You could use "at" to issue the command at a deferred time.
>
>Yes, sure, but this ain't that nice "asterisk only". :->
>
Well, probably he meant:

System(echo '/usr/sbin/asterisk -rx "restart when convenient"' | at now)

-- 
Cees de Groot               http://www.tric.nl     <cg at tric.nl>
tric, the new way           helpdesk/ticketing software, VoIP/CTI, 
                            web applications, custom development




More information about the asterisk-users mailing list