ambiorixg12 wrote:So all managment is done on the web server
"The" is your mistake. Try "Any". Any web server in the Vicidial cluster can be used for management. Management of the server is through changes to the Database. There is only ONE database. All servers (Management Web, Agent Web or Dialer) use that single database.
EG: If you have four servers (A,B,C,D) that have Web and Dialer installed installed and you use Server A to create a phone and assign that phone to server C, then check on server D one second later (ie: at any time after the DB has been updated), you'll see the phone you created an it's assignment to C visible on the interface in server D.
By the same concept: Agents can use any web server in the cluster as their Agent Screen.
But a phone will only succeed in registering to a server which has been selected in the phone modify screen for that phone. Attempting to register to a different server than the one assigned will result in a 404 not found error (bad user/pass) because the sip-vicidial.conf file on that server will have no entry for the phone if it's not assigned to this server.
ambiorixg12 wrote: when creating agents phone do I do it also on the web server and assing it to the SIP server in some how in the vici configurtion of the web server
You create phones under "Admin->Phones". Each phone is assigned to a server by using the dropdown entitled "server" to choose the server that phone is assigned to. Once you've assigned a phone to a server, within 60 seconds that server will reconfigure itself to allow that phone to register. If you removed the phone from another server, that losing server will remove the configuration option for that phone within 60 seconds also.
Not magic though: All that's happening is a rewrite of the "sip-vicidial.conf" file and then a sip reload is executed. Asterisk uses a "sip.conf" file to load it's sip configuration. In Vicidial, the sip-vicidial.conf file is "included" in the sip.conf file ... so asterisk will first load "sip.conf", then see the inclusion and reach out for "sip-vicidial.conf" and load that as well. With the new values in it for the phone you just created. Each Dialer checks every minute to see if it should reload it's configuration files due to a change.