Page 1 of 1
Custom Fields with Agent API
Posted:
Sun Feb 14, 2021 8:45 pm
by GenXOutsourcing
I am creating Custom Fields, and want to add Transfer links into the FORM. I can create the link with the URL, but I have the error of "ERROR: agent_user is not logged in - 1000". Now I want this to affect the agent that is logged in and making the transfer, and I have tried to use "agent_user=--A--user--B--" and the error shows user AuserB is not logged in. What is the best way to pull the logged in user into the URL.
http://server/agc/api.php?source=test&u ... e=CUSTOMERWe have 6 different transfer numbers, and would be really nice to hardcode them into the link, and agent not needing to remember which number to transfer to.
Fresh Centos7 Scratch install.
Dual 12core, 96gb RAM and 2 960SSD RAID1
VERSION: 2.14-784a
BUILD: 210124-0947
Ver: 3347
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 11:21 am
by carpenox
try adding VAR to the front of http:// in your form and then use the user variable, that might work
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 2:43 pm
by GenXOutsourcing
Ok, some progress. Added the VAR infront, and now pulls the actual agent user, forgot all about the VAR has been a long time since writing APIs.
Now, on the agent screen I have the form, with the link, but when clicking the link I get an error in Google
Failed to launch 'varhttps://dialer.123.com/agc/api.php?source=test&user=6666&pass=1234&agent_user=6666&function=transfer_conference&value=DIAL_WITH_CUSTOMER&phone_number=XXXXXXXXX&cid_choice=CUSTOMER' because the scheme does not have a registered handler.
Not sure if makes a different, but should the "var" be stripped when passing the https? If I copy the link without the VAR and past into a new tab in google, the call is transferred. Seems Vicidial and the FORM is not allowing the corrected info to pass
Perhaps someone has a better way to accomplish my goal......... I am open to suggestions
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 3:33 pm
by carpenox
What is it exactly your trying to accomplish? You want agents to be able to transfer from within the form rather than the transfer conf button?
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 3:44 pm
by GenXOutsourcing
Yes. We have a main campaign, and about 20 lists. Each list has different transfer numbers.... some even have up to 6 different numbers to transfer to depending.
So, I am trying to make it "simple". Instead of them going back to the transfer screen and "trying to remember" the correct preset numbers, I put links with names..... instead of them trying to remember D1, D2 etc.
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 4:05 pm
by carpenox
wouldnt it be easier to pull up a script or form with a list of each preset - D1 - number, D2 - number, etc, that way the agent can just click the preset after looking at which one they need?
at least for now....
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 4:42 pm
by GenXOutsourcing
This is not an immediate need as in today today.
Perhaps the other option is to use a Webform per list. But the simple way, if can be made to work is with the FORM.
Re: Custom Fields with Agent API
Posted:
Mon Feb 15, 2021 5:14 pm
by carpenox
have you tried it via script tab instead? not sure if it makes a differene, im sure the same programming is involved in both. but you are right about the "var" needing to be stripped somehow......before sending to google from the form seems like it doesnt work, maybe it does from script? just an idea to try