Page 1 of 1

Dispo URL File Location

PostPosted: Mon May 01, 2023 12:25 pm
by rumples
Good day, I am currently looking for which file is responsible of executing the dispo urls assigned to campaigns.

Reason is that when inbound calls are dispositioned and dispo urls are executed it is not gathering data from lists custom fields.

Lets say my Dispo URL is http://website.com/api/myAPI.php?field1 ... ield1--B--

If there isn't data on field1 it should have sent blank but what it did was send --A--field1--B--

TIA :D

Re: Dispo URL File Location

PostPosted: Mon May 01, 2023 2:27 pm
by RBecker
You need to put VAR in front of that URL to make the fields populate. In your example you would set it to VARhttp://website.com/api/myAPI.php?fie ... ield1--B--

Re: Dispo URL File Location

PostPosted: Mon May 01, 2023 2:54 pm
by rumples
Hello, Thank you for the reply. I have added VAR in my dispo URLS and will be monitoring the changes. Thank you.

Re: Dispo URL File Location

PostPosted: Mon May 01, 2023 3:59 pm
by rumples
The issue still persist. I am still seeing --A--field1--B-- being submitted in the vicidial_url_log table.

Any other reason that causes this issue?

TIA

Re: Dispo URL File Location

PostPosted: Mon May 01, 2023 7:05 pm
by RBecker
Is that the actual name (not the display name) of the custom field? You might also need to add &CF_uses_custom_fields=Y to the end of your URL.

Re: Dispo URL File Location

PostPosted: Tue May 02, 2023 11:36 am
by rumples
Yes I am using the actual name. I have also added &CF_uses_custom_fields=Y at the end of the URL.

Question: I was monitoring the logs after CF_uses_custom_fields was added to the dispo URL. It did not display it on the logs.

Re: Dispo URL File Location

PostPosted: Tue May 02, 2023 12:06 pm
by rumples
The issue is still happening even with the CF_uses_custom_fields=Y at the end of the dispo URL.

Does the dispo url function usually not work with custom fields from lists?

Or is dispo url able to recieve data from custom fields?

Re: Dispo URL File Location

PostPosted: Wed May 03, 2023 3:42 pm
by jamiemurray
I'd need to check but I think the custom fields only work with the scripts included like dispo_send_email.php etc.

In your myAPI.php file, you could retrieve the custom fields from the database before running the rest of your code.

Re: Dispo URL File Location

PostPosted: Wed May 03, 2023 4:29 pm
by mflorell
Custom fields do work in a Dispo Call URL, as long as those fields are present for the lead being dispo'd.

Re: Dispo URL File Location

PostPosted: Fri May 05, 2023 9:43 am
by rumples
Hi I have resolved the issue. I changed something in the vdc_db_query.ph.

When it is a inbound call the entry_list_id is 0 so the code is not able to pull the data from the custom table.

I just searched for any string that has --A-- and --B-- and replaced the data to empty before it gets inserted to the vicidial_url_logs.

Re: Dispo URL File Location

PostPosted: Sat May 06, 2023 11:24 am
by jamiemurray
For unmatched leads on inbound calls you can set the entry list id on the DID