3CX Batch File requirements

Discussion in '3CX Phone System - General' started by zensoftware, Jan 18, 2008.

  1. zensoftware

    zensoftware New Member

    Joined:
    Aug 23, 2007
    Messages:
    225
    Likes Received:
    0
    Hi all,

    We have been having some strange problems with 3CX refusing to recognise that phones and lines are registered after a restart of the services. After some experimenting we realised that the order in which you stop the services appears to be important.
    If you stop the database service first it looks like 3CX does not have time to record that the extensions have been unregistered.

    for this reason we have reordered our stop3cx.bat and start3cx.bat files and they now look like the following..

    stop3cx.bat

    net stop "3CX PhoneSystem"
    net stop "3CX PhoneSystem Web Server"
    net stop "3CX PhoneSystem Media Server"
    net stop "3CX PhoneSystem FAX Server"
    net stop "3CX PhoneSystem Digital Receptionist"
    net stop "3CX PhoneSystem Voicemail Manager"
    net stop "3CX PhoneSystem VPN Server"
    net stop "3CX PhoneSystem Database Server"


    start3cx.bat

    net start "3CX PhoneSystem Database Server"
    net start "3CX PhoneSystem VPN Server"
    net start "3CX PhoneSystem Voicemail Manager"
    net start "3CX PhoneSystem Digital Receptionist"
    net start "3CX PhoneSystem FAX Server"
    net start "3CX PhoneSystem Media Server"
    net start "3CX PhoneSystem Web Server"
    net start "3CX PhoneSystem"




    It would be nice if 3CX could include the stop, start and restart batch files within the 3CX install so all users could do these tasks from simple shortcuts in the start menu.

    Thanks

    Neil
     
  2. colin2710

    Joined:
    Oct 29, 2007
    Messages:
    28
    Likes Received:
    0
    Hi there,

    That's very interesting - Thanks - I agree and your batch file is excellent - many thanks.

    Regards - Colin
     
  3. mcelch70

    Joined:
    Jan 15, 2008
    Messages:
    8
    Likes Received:
    0
    "net stop"s instead of "net start"s in the stop bat would fit best, wouldn´t? 8)
     
  4. colin2710

    Joined:
    Oct 29, 2007
    Messages:
    28
    Likes Received:
    0
    Hi there,

    Many thanks for that - I had spotted that many thanks (but only just) <BIG GRIN>.

    Regards - Colin
     
  5. zensoftware

    zensoftware New Member

    Joined:
    Aug 23, 2007
    Messages:
    225
    Likes Received:
    0
    oops.. yes sorry about that. :)

    Edited

    Cheers

    Neil
     
  6. RobLloyd

    RobLloyd Member

    Joined:
    Oct 13, 2006
    Messages:
    488
    Likes Received:
    0
    Don't you have those backwards? You said to stop the database last but in your batch file you have them stopping first and then started last.

    I'd recommend you edit your first post and correct it there instead of having it posted 3 times confusing people.

    Good ideas though!
     
  7. mfaster

    Joined:
    Jun 19, 2007
    Messages:
    21
    Likes Received:
    0
    Re: 3CX Batch File requirements V6 Beta

    Thanks for these helpful bat files..stopping and starting was getting old.

    here's an updated bat example for services with v6:

    stop3cx.bat

    net stop "3CX PhoneSystem"
    net stop "3CX PhoneSystem Conference Room"
    net stop "3CX PhoneSystem Web Server"
    net stop "3CX PhoneSystem Media Server"
    net stop "3CX PhoneSystem Parking Orbit"
    net stop "3CX PhoneSystem FAX Server"
    net stop "3CX PhoneSystem Digital Receptionist"
    net stop "3CX PhoneSystem Voicemail Manager"
    net stop "3CX PhoneSystem SIP/RTP Tunneling Proxy"
    net stop "3CX PhoneSystem Database Server"

    start3cx.bat

    net start "3CX PhoneSystem Database Server"
    net start "3CX PhoneSystem SIP/RTP Tunneling Proxy"
    net start "3CX PhoneSystem Voicemail Manager"
    net start "3CX PhoneSystem Digital Receptionist"
    net start "3CX PhoneSystem FAX Server"
    net start "3CX PhoneSystem Parking Orbit"
    net start "3CX PhoneSystem Media Server"
    net start "3CX PhoneSystem Web Server"
    net start "3CX PhoneSystem Conference Room"
    net start "3CX PhoneSystem"

    I put shortcuts to these on the server desktop and off the application menu(off of Start menu)

    Mike
     

Share This Page