Vici Settings containers

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Vici Settings containers

Postby ahmed.saad92 » Wed Oct 17, 2018 4:19 pm

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.
ahmed.saad92
 
Posts: 11
Joined: Tue Jun 26, 2018 11:08 am

Re: Vici Settings containers

Postby williamconley » Thu Oct 18, 2018 2:18 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Vici Settings containers

Postby ahmed.saad92 » Mon Oct 22, 2018 11:45 am

Thank You William, i will try to copy the tables.
ahmed.saad92
 
Posts: 11
Joined: Tue Jun 26, 2018 11:08 am

Re: Vici Settings containers

Postby ahmed.saad92 » Mon Oct 22, 2018 11:59 am

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.
ahmed.saad92
 
Posts: 11
Joined: Tue Jun 26, 2018 11:08 am

Re: Vici Settings containers

Postby williamconley » Mon Oct 22, 2018 12:34 pm

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.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot], njr and 54 guests