Custom Fields with Agent API

All installation and configuration problems and questions

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

Custom Fields with Agent API

Postby GenXOutsourcing » Sun Feb 14, 2021 8:45 pm

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=CUSTOMER


We 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
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: Custom Fields with Agent API

Postby carpenox » Mon Feb 15, 2021 11:21 am

try adding VAR to the front of http:// in your form and then use the user variable, that might work
Alma Linux 9.4 | SVN Version: 3889 | 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: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Custom Fields with Agent API

Postby GenXOutsourcing » Mon Feb 15, 2021 2:43 pm

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
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: Custom Fields with Agent API

Postby carpenox » Mon Feb 15, 2021 3:33 pm

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?
Alma Linux 9.4 | SVN Version: 3889 | 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: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Custom Fields with Agent API

Postby GenXOutsourcing » Mon Feb 15, 2021 3:44 pm

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.
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: Custom Fields with Agent API

Postby carpenox » Mon Feb 15, 2021 4:05 pm

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....
Alma Linux 9.4 | SVN Version: 3889 | 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: 2423
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Custom Fields with Agent API

Postby GenXOutsourcing » Mon Feb 15, 2021 4:42 pm

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.
Built too many to count, Centos7 Scratch install, Opensuse Scratch install, Centos8 Scratch install, etc.
Dual 8 core/32gb RAM/500gb SSDs
SVN Version:3440
VERSION: 2.14-812a
genxoutsourcing.com
GenXOutsourcing
 
Posts: 120
Joined: Sun Sep 22, 2019 12:53 am

Re: Custom Fields with Agent API

Postby carpenox » Mon Feb 15, 2021 5:14 pm

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
Alma Linux 9.4 | SVN Version: 3889 | 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: 2423
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 96 guests