Configure Dispo_URL in VICIdial Error "amp;"

Any and all non-support discussions

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

Configure Dispo_URL in VICIdial Error "amp;"

Postby NeftaMaturana » Sat Mar 06, 2021 7:10 pm

Hello,

VICIBOX 9.0.3
SVN Version: 3347
VERSION: 2.14-784a
BUILD: 210124-0947

Make the configuration in the vicidial to send an email when the agent closes a sale, however I have not been successful, reviewing this publication http://www.vicidial.org/VICIDIALforum/p ... 89c1cfdfab validate the URL "URL Log Report"
I can see that in the URL column RESPONDS adds "amp;" inside the string the URL originates and this causes me to send an error

Code: Select all
" Thu, 04 Mar 2021 22:42:43 -0500|PHP ERROR: Type=2 - Message=file(http://192.168.0.200/agc/dispo_send_email.php?container_id=DISPO_SEND_EMAIL&lead_id=700358&call_id=V3042241370000700358&dispo=B&user=atorres&pass=p727&sale_status=ANGRY&log_to_file=1&call_notes=+): failed to open stream: operation failed - Line=15079 - File=/srv/www/htdocs/agc/vdc_db_query.php"


Additional in URL log Report, I have the URL column in which if I paste this in the browser immediately the email arrives so I think that the added text "amp;" it may be causing the inconvenience.
Code: Select all
http://192.168.0.200/agc/dispo_send_email.php?container_id=DISPO_SEND_EMAIL&lead_id=700358&call_id=V3042241370000700358&dispo=B&user=atorres&pass=p727&sale_status=ANGRY&log_to_file=1&call_notes=+
NeftaMaturana
 
Posts: 4
Joined: Thu Mar 04, 2021 10:10 pm

Re: Configure Dispo_URL in VICIdial Error "amp;"

Postby NeftaMaturana » Wed Mar 17, 2021 9:30 pm

I have tried to replace & by% 26 however the same thing happens
NeftaMaturana
 
Posts: 4
Joined: Thu Mar 04, 2021 10:10 pm

Re: Configure Dispo_URL in VICIdial Error "amp;"

Postby martinch » Thu Mar 18, 2021 10:28 am

Hey there Nefta,

Is it possible to post the container code at all? Possibly some syntax error in there?

Cheers,
Martin
martinch
 
Posts: 12
Joined: Thu Nov 15, 2018 9:14 am

Re: Configure Dispo_URL in VICIdial Error "amp;"

Postby NeftaMaturana » Wed Mar 24, 2021 7:28 pm

Hi,

Of course, this is the code that I have set up in the campaign Dispo Call URL:

Code: Select all
VARhttps://192.168.0.200/agc/dispo_send_email.php?container_id=TEST_CONTAINER&lead_id=--A--lead_id--B--&call_id=--A--call_id--B--&dispo=--A--dispo--B--&user=--A--user--B--&pass=--A--pass--B--&sale_status=SALE---SSALE---XSALE&log_to_file=1


Container code:

Code: Select all
;email_to => vicidialemailtesting@gmail.com
email_to => reportevicidial1@gmail.com

; sending email address
email_from => reportevicidial1@gmail.com

; subject of the email
email_subject => Order confirmation --A--vendor_lead_code--B--

; format as HTML
email_body_html

; use UTF-8 charset
email_body_utf8

; body of the email
email_body_begin =>
Hello --A--first_name--B--,

This email is to welcome you to the wonderful ACME product-of-the-month club!

You spoke to agent --A--fullname--B--.

Here is a summary of your account information:

lead_id: --A--lead_id--B--
vendor_id: --A--vendor_id--B--
vendor_lead_code: --A--vendor_lead_code--B--
list_id: --A--list_id--B--
list_name: --A--list_name--B--
list_description: --A--list_description--B--
gmt_offset_now: --A--gmt_offset_now--B--
phone_code: --A--phone_code--B--
phone_number: --A--phone_number--B--
title: --A--title--B--
first_name: --A--first_name--B--
middle_initial: --A--middle_initial--B--
last_name: --A--last_name--B--
address1: --A--address1--B--
address2: --A--address2--B--
address3: --A--address3--B--
city: --A--city--B--
state: --A--state--B--
province: --A--province--B--
postal_code: --A--postal_code--B--
country_code: --A--country_code--B--
gender: --A--gender--B--
date_of_birth: --A--date_of_birth--B--
alt_phone: --A--alt_phone--B--
email: --A--email--B--
security_phrase: --A--security_phrase--B--
comments: --A--comments--B--
user: --A--user--B--
closer: --A--user--B--
SQLdate: --A--SQLdate--B--
source_id: --A--source_id--B--
rank: --A--rank--B--
owner: --A--owner--B--
entry_list_id: --A--entry_list_id--B--
call_id: --A--call_id--B--
entry_date: --A--entry_date--B--
fullname: --A--fullname--B--
agent_email: --A--agent_email--B--
user_custom_one: --A--user_custom_one--B--
user_custom_two: --A--user_custom_two--B--
user_custom_three: --A--user_custom_three--B--
user_custom_four: --A--user_custom_four--B--
user_custom_five: --A--user_custom_five--B--
user_group: --A--user_group--B--
uniqueid: --A--uniqueid--B--
did_id: --A--did_id--B--
did_extension: --A--did_extension--B--
did_pattern: --A--did_pattern--B--
did_description: --A--did_description--B--
did_carrier_description: --A--did_carrier_description--B--
did_custom_one: --A--did_custom_one--B--
did_custom_two: --A--did_custom_two--B--
did_custom_three: --A--did_custom_three--B--
did_custom_four: --A--did_custom_four--B--
did_custom_five: --A--did_custom_five--B--
custom field x: --A--custom_xyz--B--
call notes: --A--call_notes--B--

--A--CF_uses_custom_fields--B--

We hope you enjoy your stuff, and happy roadrunner chasing!

ACME Support Department
312-555-1212


email_body_end
NeftaMaturana
 
Posts: 4
Joined: Thu Mar 04, 2021 10:10 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 18 guests