• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

3CX Batch File requirements

Status
Not open for further replies.

zensoftware

Joined
Aug 23, 2007
Messages
225
Reaction score
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
 
Hi there,

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

Regards - Colin
 
"net stop"s instead of "net start"s in the stop bat would fit best, wouldn´t? 8)
 
Hi there,

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

Regards - Colin
 
oops.. yes sorry about that. :)

Edited

Cheers

Neil
 
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!
 
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
 
Status
Not open for further replies.
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.