Asterisk CLI

Discussion in 'General' started by chrisisearth, Jan 20, 2009.

  1. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    Hi Guys,

    Since I re built the pbx in our office using 1.3 (using md for raid)

    I cant get into asterisk -r,

    I found this quiet handy for debugging and stuff.....

    Is it still there somewhere?

    Any help would be much appreciated!

    Thanks

    Chris
     
  2. Chilling_Silence

    Joined:
    Sep 23, 2008
    Messages:
    488
    Likes Received:
    0
    What user are you logging in with when you run asterisk -r?
    Presumably you're getting an error saying it cant find something in /var ?
     
  3. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    as root,

    someone on irc mentioned amportal restart on irc! but that command didnt work, this is a bast install of elastix 1.3
     
  4. Bob

    Bob

    Joined:
    Nov 4, 2007
    Messages:
    2,400
    Likes Received:
    1
    Chrisisearth,

    Can confirm that your Elastix PBX is running (e.g. you can make a call from one extension to another)

    When you type asterisk -r -vvvvvvvvv at the linux prompt, is there any message at all

    Regards

    Bob
     
  5. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    Hi Bob,

    Yep, this is a live system in an office with about 20 users,


    Welcome to Elastix
    ----------------------------------------------------

    For access to the Elastix web GUI use this URL
    http://172.30.30.250

    [cmurphy@siper ~]$ su
    Password:
    [root@siper cmurphy]# cd
    [root@siper ~]# asterisk -r -vvvvvvvvv
    bash: asterisk: command not found


    its kinda crazy!

    Thanks
     
  6. jandir

    Joined:
    Aug 24, 2008
    Messages:
    65
    Likes Received:
    0
    It looks like the asterisk executable is not in your path. Try logging in with

    $ su -

    Or execute asterisk with the full path after an su

    # /usr/sbin/asterisk -rvvvvvvv
     
  7. chrisisearth

    Joined:
    Nov 13, 2008
    Messages:
    23
    Likes Received:
    0
    Hi Jandir,

    /usr/sbin/asterisk -rvvvvvvv got me in!

    any reason why its not in in my executable path in this build?
     
  8. jandir

    Joined:
    Aug 24, 2008
    Messages:
    65
    Likes Received:
    0
    Typically in unix systems non administrative users do not have /usr/sbin in their path since sbin contains mainly system configuration commands. You might want to login with "su -" in the future to get the correct environment for root. See quote below from a linux forum that discusses one aspect of the difference between "su" and "su -". There are also other security implications of using one over the other.

     

Share This Page