Page 1 of 1

non_agent_api.php

PostPosted: Tue Jul 30, 2019 12:48 pm
by Basemmansor66
Dears,

Please, I am using the below URL for dispo URL,

But I need it to be run for specific status like ACPT for ex

VARhttp://192.168.12.241/vicidial/non_a ... _name--B--

how can I do it?

VERSION: 2.14-585a
BUILD: 170114-1356

Re: non_agent_api.php

PostPosted: Tue Jul 30, 2019 2:23 pm
by williamconley
1) Thanks for posting your full version with build. Many new users skip this and it's very cool you did not!

2) Please try to add your installation method as well (full version, something like Vicibox 8.X.X?)

3) You did not supply a lot of information, so I will extrapolate my guess of what's going on, and answer your question along the way.

4) Direct answer: The non-agent api "add-lead" method does not have an option to only add a lead if the lead has a specific disposition. You would need to modify the code or create a new php file to filter your requests to make that happen.

5) Shall I assume that you are using a Vicidial server to add leads to a different vicidial server (owned by someone else?) at the disposition moment based on the value of the disposition for future calls? If so, your best bet is to create a php file that checks the disposition and then passes to the non-agent api only if it matches. A really good script for this would allow the "match-list" to also be in the url as well as the "bounce to" url, so it would be usable for pretty much any future similar need.

6) If that's not the case, if you are in fact creating a new lead on the same server ... I am shaking my head sadly that you would do such a thing. I bet there's a better way to do whatever it is you are trying to do. I've never seen a good reason to have the same lead twice on the same vicidial system. Always open to the unique situation that may require it, just haven't heard one yet. lol 8-)

Re: non_agent_api.php

PostPosted: Tue Jul 30, 2019 3:07 pm
by Basemmansor66
We have 2 list one it for data qualifications and the another one for sales, the agents calls the customers to check if this lead is qualified or not and take the responsible man phone number, if it's qualified then we need to add a new lead with the new phone number in the another list of sales to be called by other team, i made everything but which i miss is to create the new lead if the lead is qualified only.

Re: non_agent_api.php

PostPosted: Tue Jul 30, 2019 3:18 pm
by williamconley
Why don't you just change the status to QUAL and/or move the lead to a QUAL list and then call it on that list? This keeps all the previous recordings on the lead. If they provide a new number, you can put that new number in the alt_phone field (or the address3 field, which can also be a phone number).

I'm missing the need for two separate leads for one prospect.