Page 1 of 1

Vici Settings containers

PostPosted: Wed Oct 17, 2018 4:19 pm
by ahmed.saad92
Hello Guys,

i need to know what is settings containers, and i can use this feature to move all the campaigns setup and the created user from server to another server without recreating them.

Re: Vici Settings containers

PostPosted: Thu Oct 18, 2018 2:18 pm
by williamconley
No. To move campaigns to another server you would copy the "vicidial_campaigns" table and to move the users you would copy the "vicidial_users" table. The settings containers are for custom coding as a simple Key/Value pair system to avoid having to create a table like "poundteam_settings" to store 3rd party app configuration options.

Re: Vici Settings containers

PostPosted: Mon Oct 22, 2018 11:45 am
by ahmed.saad92
Thank You William, i will try to copy the tables.

Re: Vici Settings containers

PostPosted: Mon Oct 22, 2018 11:59 am
by ahmed.saad92
William,

There is any way to have a bulk users creation on Vici, for example uploading excel sheet containing all the variables i need to be changed and the rest will remain default.

Re: Vici Settings containers

PostPosted: Mon Oct 22, 2018 12:34 pm
by williamconley
ahmed.saad92 wrote:William,

There is any way to have a bulk users creation on Vici, for example uploading excel sheet containing all the variables i need to be changed and the rest will remain default.


using mysqldump (or phpMyAdmin), you can "dump" a single user's record. You can then copy that record as often as you like and change what you like in the new records (being sure of course to modify the user_id and user field) and then use mysql (or phpMyAdmin) to create those users.

OR

You can use the Non Agent API method "add_user - adds a user to the system".

Code: Select all
--------------------------------------------------------------------------------
add_user - adds a user to the system

NOTE: api user for this function must have user_level set to 8 or higher and "modify users" enabled

REQUIRED FIELDS-
agent_user -            2-20 characters (for auto-generated send 'AUTOGENERATED')
agent_pass -            1-20 characters
agent_user_level -      1 through 9, one digit only
agent_full_name -       1-50 characters
agent_user_group -      1-20 characters, must be a valid user group

OPTIONAL FIELDS-
phone_login -           1-20 characters
phone_pass -            1-20 characters
hotkeys_active -        0 or 1
voicemail_id -          1-10 digits
email -                 1-100 characters
custom_one -            1-100 characters
custom_two -            1-100 characters
custom_three -          1-100 characters
custom_four -           1-100 characters
custom_five -           1-100 characters
wrapup_seconds_override - number from -1 to 9999

NOTE: This function does not work with Vtiger integration

Example URL strings for API calls:
http://server/vicidial/non_agent_api.php?source=test&function=add_user&user=6666&pass=1234&agent_user=1000&agent_pass=9999&agent_user_level=1&agent_full_name=Testing+Person&agent_user_group=AGENTS
http://server/vicidial/non_agent_api.php?source=test&function=add_user&user=6666&pass=1234&agent_user=1000&agent_pass=9999&agent_user_level=1&agent_full_name=Testing+Person&agent_user_group=AGENTS&phone_login=100&phone_pass=test&hotkeys_active=1&voicemail_id=&custom_one=jjjj&custom_two=yyyy&custom_three=kkk&custom_four=wwww&custom_five=hhhh

Example responses:
ERROR: add_user USER DOES NOT HAVE PERMISSION TO ADD USERS - 6666|0
ERROR: add_user YOU MUST USE ALL REQUIRED FIELDS - 6666|1000||||
ERROR: add_user USER DOES NOT HAVE PERMISSION TO ADD USERS IN THIS USER LEVEL - 6666|8
ERROR: add_user USER GROUP DOES NOT EXIST - 6666|ADFHR
ERROR: add_user USER ALREADY EXISTS - 6666|6666
SUCCESS: add_user USER HAS BEEN ADDED - 6666|1000|1234|8|Testing+Person|AGENTS


Documentation for the non-agent api is in /usr/src/astguiclient/trunk/docs/NON-AGENT_API.txt and will be specific to your version of the system. It even provides examples.