Results 1 to 2 of 2

Thread: Asterisk bug

  1. #1

    Default Asterisk bug

    The start/stop script for asterisk (downloaded from here) has a bug in it.

    In the start() section it checks to see if asterisk is running by executing the following command:
    Code:
    /usr/sbin/asterisk -rx 'core show version'
    and extracts the first 8 characters from the output and compares it to the word "Asterisk". The problem is that asterisk colorizes its display so the first couple of characters are unseen control codes and this check will therefore fail when asterisk is already running. This can be fixed by changing the command to:
    Code:
    /usr/sbin/asterisk -nrx 'core show version'
    (note the addition of the 'n' flag).

    A second problem is that the script does not have a "status" section even though it is advertised in the usage output.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,721

    Default Re: Asterisk bug

    As I see it, you analysed this correctly as a bug. Please file it at: openSUSE:Submitting bug reports - openSUSE.
    Henk van Velden

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •