Any and all non-support discussions
Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N
by rumples » Mon May 01, 2023 12:25 pm
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
-
rumples
-
- Posts: 6
- Joined: Mon Apr 03, 2023 1:59 pm
by RBecker » Mon May 01, 2023 2:27 pm
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--
Managed & Dedicated ViciDial Hosting | VoIP Trunking and Termination | https://www.dial-fusion.com/
Main Cluster: 21 Agent Servers | Dedicated DB and Separate Reports Server | 2 Web Servers | HAProxy Load Balancing | Dedicated Archive Server
-
RBecker
-
- Posts: 43
- Joined: Mon Aug 30, 2021 3:05 pm
by rumples » Mon May 01, 2023 2:54 pm
Hello, Thank you for the reply. I have added VAR in my dispo URLS and will be monitoring the changes. Thank you.
-
rumples
-
- Posts: 6
- Joined: Mon Apr 03, 2023 1:59 pm
by rumples » Mon May 01, 2023 3:59 pm
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
-
rumples
-
- Posts: 6
- Joined: Mon Apr 03, 2023 1:59 pm
by RBecker » Mon May 01, 2023 7:05 pm
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.
Managed & Dedicated ViciDial Hosting | VoIP Trunking and Termination | https://www.dial-fusion.com/
Main Cluster: 21 Agent Servers | Dedicated DB and Separate Reports Server | 2 Web Servers | HAProxy Load Balancing | Dedicated Archive Server
-
RBecker
-
- Posts: 43
- Joined: Mon Aug 30, 2021 3:05 pm
by rumples » Tue May 02, 2023 11:36 am
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.
-
rumples
-
- Posts: 6
- Joined: Mon Apr 03, 2023 1:59 pm
by rumples » Tue May 02, 2023 12:06 pm
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?
-
rumples
-
- Posts: 6
- Joined: Mon Apr 03, 2023 1:59 pm
by jamiemurray » Wed May 03, 2023 3:42 pm
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.
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
-
jamiemurray
-
- Posts: 179
- Joined: Fri Jan 11, 2013 4:12 pm
- Location: Tenerife, Canary Islands
-
by mflorell » Wed May 03, 2023 4:29 pm
Custom fields do work in a Dispo Call URL, as long as those fields are present for the lead being dispo'd.
-
mflorell
- Site Admin
-
- Posts: 18379
- Joined: Wed Jun 07, 2006 2:45 pm
- Location: Florida
-
by rumples » Fri May 05, 2023 9:43 am
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.
-
rumples
-
- Posts: 6
- Joined: Mon Apr 03, 2023 1:59 pm
by jamiemurray » Sat May 06, 2023 11:24 am
For unmatched leads on inbound calls you can set the entry list id on the DID
Skype: live:support_71847 | Tel: (US) +1 646 647 8850 (CA) +1 613 900 6456 (MX) +52 55 9990 3550 (UK) +44 1324 285022 (ES) +34 922 937 384
Managed Hosting - No tech skills required | VoIP Termination & DID numbering | https://jmurraysolutions.com
-
jamiemurray
-
- Posts: 179
- Joined: Fri Jan 11, 2013 4:12 pm
- Location: Tenerife, Canary Islands
-
Return to General Discussion
Who is online
Users browsing this forum: No registered users and 56 guests