[Home]

Summary:ASTERISK-09092: When "restart now" is issued Asterisk quits instead (started with -q) option
Reporter:Alvaro Ivan Parres Peredo (arabe)Labels:
Date Opened:2007-03-24 18:10:05Date Closed:2007-06-15 14:46:49
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:When i send a restart command in the CLI to the asterisk, started with asterisk -q command, it's never starts again.

But if i start the asterisk with asterisk -c or asterisk -vvvvvv, it works find.

******************** console output ******************************

compac asterisk # asterisk -q
compac asterisk # asterisk -r
Asterisk 1.2.17, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.17 currently running on compac (pid = 27651)
compac*CLI> restart now
compac*CLI>
Disconnected from Asterisk server
compac asterisk # asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
compac asterisk # asterisk -q
compac asterisk #

Comments:By: Serge Vecher (serge-v) 2007-03-26 09:16:27

hmmm, sounds like asterisk is crashing when you do "restart now". Tell us what system you are running asterisk on. Also, start asterisk with -qg option. If asterisk is crashing, it will produce a core file. Produce a backtrace of a core file as per http://www.voip-info.org/tiki-index.php?page=Asterisk%20debugging and post it here.

By: Alvaro Ivan Parres Peredo (arabe) 2007-03-27 00:40:10

I check that before, i think the same. But no there is no core file.

The system where i install is:

  Gentoo Linux Distribution
  Asterisk compile from sources.
  Kernel: 2.6.19 compiled from sources.


************ HERE IS THE TEST ********************

compac temporal # asterisk -qg
compac temporal # asterisk -r
Asterisk 1.2.17, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <markster@digium.com>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
Connected to Asterisk 1.2.17 currently running on compac (pid = 25114)
compac*CLI> restart now
compac*CLI>
Disconnected from Asterisk server
compac temporal # asterisk -r
Unable to connect to remote asterisk (does /var/run/asterisk.ctl exist?)
compac temporal # ls
compac temporal #

By: Alvaro Ivan Parres Peredo (arabe) 2007-03-27 00:50:31

One more note:

  GCC version: 4.1.1
  GLIBC version: 2.3.6

By: Serge Vecher (serge-v) 2007-03-27 08:40:40

hmm, strange. So this only happens if you use -q option?

By: Alvaro Ivan Parres Peredo (arabe) 2007-03-27 10:44:47

Yes and also with the command asterisk only.

-----------------------------------------
| command to start       | when restart |
-----------------------------------------
| asterisk               |  quits       |
| asterisk -q            |  quits       |
| asterisk -v            |  restart     |
-----------------------------------------

By: Russell Bryant (russell) 2007-04-03 18:44:52

Does this happen in *any* instance where you just start it in the background?  For example, just "asterisk", or "asterisk -g".  The -q option has almost *zero* effect in the code.

By: Alvaro Ivan Parres Peredo (arabe) 2007-04-08 19:11:31

Yes.

If i use -g -q or only asterisk. It's didn'restarts.

By: Dwayne Hubbard (dhubbard) 2007-06-15 14:46:49

Issue not reproducible on 1.2 with revision 69469.  No trouble found.