All installation and configuration problems and questions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by Marco Zink » Wed Mar 17, 2021 1:04 am
Hello everyone:
I have a ViciBox v.9.0.2 200415-1712 with VERSION: 2.14-787a BUILD: 210211-1145.
I'm working with the NON-AGENT API trying to use the add_list function. It seems the custom_fields_copy option is not actually working, when I run a request it show as success but the fields are not copied:
- Code: Select all
localhost:~ # curl -k "https://localhost/vicidial/non_agent_api.php?source=lead_loder&function=add_list&&custom_fields_copy=10001&user=apiuser&pass=apipass&list_id=2021031630112&list_name=202103111&campaign_id=desk30"
SUCCESS: add_list LIST HAS BEEN ADDED - apiuser|2021031630112|202103111|desk30
Source list fields:
Destination list fields:
I've made sure that permissions are set correctly for the apiuser.
Thanks in advance.
MZ
-
Marco Zink
-
- Posts: 14
- Joined: Fri Apr 24, 2015 2:09 pm
by carpenox » Wed Mar 17, 2021 8:04 am
you forgot to add custom_copy_method to your string. Also did you enable the 'custom_fields_copy' option on the apiuser?
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
-
carpenox
-
- Posts: 2428
- Joined: Wed Apr 08, 2020 2:02 am
- Location: St Petersburg, FL
-
by Marco Zink » Wed Mar 17, 2021 4:17 pm
Thank you carpenox,
As per the documentation that parameter is optional and would use APPEND as default, either way I tried using it with APPEND and REPLACE unsuccessfully.
The apiuser has the 'Modify Custom Fields' permission enabled (since there is no custom_fields_copy)
-
Marco Zink
-
- Posts: 14
- Joined: Fri Apr 24, 2015 2:09 pm
by carpenox » Wed Mar 17, 2021 4:28 pm
oops, mistype, lol. sorry about that, i will give that function a try and see what happens when i give it a go and report back, you can message me on skype if u want, maybe i can help you figure it out
Alma Linux 9.4 | SVN Version: 3890 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
-
carpenox
-
- Posts: 2428
- Joined: Wed Apr 08, 2020 2:02 am
- Location: St Petersburg, FL
-
Return to Support
Who is online
Users browsing this forum: Google [Bot], Majestic-12 [Bot] and 98 guests