Dismiss Notice
We would like to remind you that we’re updating our login process for all 3CX forums whereby you will be able to login with the same credentials you use for the Partner or Customer Portal. Click here to read more.

restart all 3CX services from cmd?

Discussion in '3CX Phone System - General' started by giorgiobusoni, Sep 13, 2016.

Thread Status:
Not open for further replies.
  1. giorgiobusoni

    Joined:
    Apr 6, 2011
    Messages:
    32
    Likes Received:
    1
    Hi all,
    my 3CX lately after a while that is running stops working, inbound and outbound calls don't work anymore. TRhe only solution I found so far is to restart all 3CX services. Is there a way to automatise this with a script?
     
  2. Anonymous

    Anonymous Guest

    Great idea and quite doable. All you need is to make a batch file or a windows script file. Services can be restarted with:

    net stop [service name] && net start [service name].

    Just add a line for each of the 3CX services.
     
  3. giorgiobusoni

    Joined:
    Apr 6, 2011
    Messages:
    32
    Likes Received:
    1
    yes, but what are the names of the services? is there any dependence on each other, that implies that I have to call them in some specific order?
     
  4. bseddon

    Joined:
    Sep 13, 2016
    Messages:
    12
    Likes Received:
    0
    It sounds like yo may only need to restart the SIP server. But in case you want to restart everything, this should do it:

    net stop "3CX PhoneSystem Media Server"
    net stop "3CX PhoneSystem Nginx Server"
    net stop "3CX PhoneSystem 01 SIP/RTP Tunneling Proxy"
    net stop "3CX PhoneSystem 01 Management Console"
    net stop "3CX PhoneSystem 01 FAX Server"
    net stop "3CX PhoneSystem 01 IVR Server"
    net stop "3CX PhoneSystem 01 Queue Manager Server"
    net stop "3CX PhoneSystem 01 SIP Server"
    net stop "3CX PhoneSystem 01 System Server"
    net stop "3CX PhoneSystem 01 Configuration Server"
    net stop "3CX Event Notification Manager"
    net stop "3CX PhoneSystem Database Server"

    (you may need to adjust the names of the services on your server but this list will give you a good idea of an acceptable order)

    The services can be restarted by starting them in pretty much the reverse order:

    net start "3CX PhoneSystem Database Server"
    net start "3CX Event Notification Manager"
    net start "3CX PhoneSystem 01 Configuration Server"
    net start "3CX PhoneSystem 01 System Server"
    net start "3CX PhoneSystem 01 SIP Server"
    net start "3CX PhoneSystem 01 Queue Manager Server"
    net start "3CX PhoneSystem 01 IVR Server"
    net start "3CX PhoneSystem 01 FAX Server"
    net start "3CX PhoneSystem 01 Management Console"
    net start "3CX PhoneSystem 01 SIP/RTP Tunneling Proxy"
    net start "3CX PhoneSystem Nginx Server"
    net start "3CX PhoneSystem Media Server"
     
  5. giorgiobusoni

    Joined:
    Apr 6, 2011
    Messages:
    32
    Likes Received:
    1
    thanks a lot! that's what I needed!
     
  6. Sopock

    Sopock Member

    Joined:
    Jul 11, 2012
    Messages:
    447
    Likes Received:
    20
    I see that starting Management Console will also start Configuration and Database dependant services. Perhaps it should also start nginx?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Thread Status:
Not open for further replies.