WEB POSTING STRING ISSUE

All installation and configuration problems and questions

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

WEB POSTING STRING ISSUE

Postby kalaula2 » Mon Jun 04, 2018 6:31 pm

Hi guys good day. Im currently having a hard time figuring out how to get the posting string to work on our vici -_-

VERSION: 2.14-671a
BUILD: 180430-1834
asterisk version: 11.25.1-vici

the posting string is: varhttps://roin.xencall.com/TPI/post/?lead[0][FirstName]=--A--first_name--B--&lead[0][LastName]=--A--last_name--B--&lead[0][Address]=--A--address1--B--&lead[0][City]=--A--city--B--&lead[0][State]=--A--state--B--&lead[0][Zip]=--A--postal_code--B--&lead[0][Phone]=--A--phone_number--B--&lead[0][Custom_1]= --A--vendor_lead_code--B--&lead[0][Custom_2]=--A--address2--B--&lead[0][Custom_3]=--A--address3--B--&lead[0][Custom_4]=--A--comments--B--&lead[0][Email]=--A--email--B--&lead[0]&provider=AV-LA

the error that the webpage returns is:
{
"0": {
"Success": false,
"Error": "Field lead[0] is not an array",
"Field": "format error",
"Accepted": false
}
}

but the [0] is needed for the form. it should be ' lead[0][FirstName] '.

am I missing something? or is there any problem witht the string?


Thank you in advance guys. Have a great day.
kalaula2
 
Posts: 16
Joined: Tue Aug 08, 2017 11:42 am

Re: WEB POSTING STRING ISSUE

Postby mflorell » Mon Jun 04, 2018 6:38 pm

Have you looked at the URL Log Report in Admin Utilities to see exactly what VICIdial is sending out?
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: WEB POSTING STRING ISSUE

Postby kalaula2 » Mon Jun 04, 2018 9:14 pm

Hi mflorell.

Thank you for the response. Upon checking the URL Log Report, found that all the posting has been posted properly:
https://form.formdomain.com/TPI/post/?lead[0][firstName]=Benjamin&lead[0][lastName]=Faison&lead[0][address]=222%20Glenola%20St&lead[0][city]=Fayetteville&lead[0][state]=NC&lead[0][zip]=28311&lead[0][phone]=9103222826&lead[0][Custom_1]=+2011&lead[0][Custom_2]=Ford&lead[0][Custom_3]=Explorer&lead[0][Custom_4]=36%2C000m%20&lead[0][email]=&provider=provider

so what comes in mind is that maybe the issue is on the other side, the one that pulls the posted data. Here is the string that is set on the webform on the receiving end that pulls the posted data on the form.

VARhttps://form.formdomain.com/TPI/post/?lead[0][FirstName]=--A--first_name--B--&lead[0][LastName]=--A--last_name--B--&lead[0][Address]=--A--address1--B--&lead[0][City]=--A--city--B--&lead[0][State]=--A--state--B--&lead[0][Zip]=--A--postal_code--B--&lead[0][Phone]=--A--phone_number--B--&lead[0][Custom_1]= --A--vendor_lead_code--B--&lead[0][Custom_2]=--A--address2--B--&lead[0][Custom_3]=--A--address3--B--&lead[0][Custom_4]=--A--comments--B--&lead[0][Email]=--A--email--B--&provider=provider

am I doing it right? im new in web forms, strings on vici and totaly clueless T_T

Thank you for the help.
kalaula2
 
Posts: 16
Joined: Tue Aug 08, 2017 11:42 am

Re: WEB POSTING STRING ISSUE

Postby mflorell » Tue Jun 05, 2018 6:41 am

If that's how you're supposed to be sending it, then it should work. Although I've never seen a URL with that many brackets in it before because brackets "[]" are NOT considered to be URL-safe characters.
mflorell
Site Admin
 
Posts: 18386
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: WEB POSTING STRING ISSUE

Postby kalaula2 » Tue Jun 05, 2018 12:53 pm

@mflorell: I agree with that. but thats how the provider set it up -_-

here is the sample screenshot of the webform of the provider.

https://lh3.googleusercontent.com/x-O1CnToKVvC4u-AsxHYteY9HQ9HEHhmTW4R8Qx6g6MbVxzcCqg2oykVbwNd7CG5D-jZkQ=s148
kalaula2
 
Posts: 16
Joined: Tue Aug 08, 2017 11:42 am

Re: WEB POSTING STRING ISSUE

Postby williamconley » Tue Jun 05, 2018 1:19 pm

kalaula2 wrote:@mflorell: I agree with that. but thats how the provider set it up -_-

here is the sample screenshot of the webform of the provider.

https://lh3.googleusercontent.com/x-O1CnToKVvC4u-AsxHYteY9HQ9HEHhmTW4R8Qx6g6MbVxzcCqg2oykVbwNd7CG5D-jZkQ=s148


1) That image is too small to read.

2) It's not normal to pass a multi-dimensional array as a form post, but ...

3) Your problem appears to be that you are attempting to create a mulidimensional array in an unusual fashion. I'm not sure their system can take it one piece at a time continually altering lead[0] with each new item. You may need to find a method to creat it all at once instead. Probably best to use a JSON conversion as that's likely what they are expecting. Create a PHP page that accepts the Vicidial output and converts it to JSON and then sends the JSON.

4) Get a sample "functional" submission from the target so you can mimic that in Vicidial.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: WEB POSTING STRING ISSUE

Postby kalaula2 » Tue Jun 05, 2018 8:19 pm

@williamconley: Apologies for the image size i dont know how to post image here -_-

here is a sample of a "functional" submission: https://roin.xencall.com/TPI/post/?lead[0][firstName]=John&lead[0][lastName]=Smith&lead[0][address]=123 Hillcrest Dr&lead[0][city]=Los Angeles&lead[0][state]=CA&lead[0][zip]=90210&lead[0][phone]=2345556789&provider=Example Provider


Thank you for your response ^_^
kalaula2
 
Posts: 16
Joined: Tue Aug 08, 2017 11:42 am

Re: WEB POSTING STRING ISSUE

Postby williamconley » Tue Jun 05, 2018 8:34 pm

kalaula2 wrote:@williamconley: Apologies for the image size i dont know how to post image here -_-

here is a sample of a "functional" submission: https://roin.xencall.com/TPI/post/?lead[0][firstName]=John&lead[0][lastName]=Smith&lead[0][address]=123 Hillcrest Dr&lead[0][city]=Los Angeles&lead[0][state]=CA&lead[0][zip]=90210&lead[0][phone]=2345556789&provider=Example Provider


Thank you for your response ^_^

So ... you're saying you tested this, and it worked? Or this is what they gave you as "it should work"?

If this url tested and worked, try JUST replacing "John" with --A--first_name--B-- and see if your next post has the first name of your prospect.

If this url has never been tested, or did not work: Test it. If it fails, it's not a valid example. Ask them for one that's valid (after telling them "tried it, it does not work ...").
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: WEB POSTING STRING ISSUE

Postby Leckbush » Mon Jul 16, 2018 2:13 pm

kalaula2 wrote:Hi guys good day. Im currently having a hard time figuring out how to get the posting string to work on our vici -_-

VERSION: 2.14-671a
BUILD: 180430-1834
asterisk version: 11.25.1-vici

the posting string is: varhttps://roin.xencall.com/TPI/post/?lead[0][FirstName]=--A--first_name--B--&lead[0][LastName]=--A--last_name--B--&lead[0][Address]=--A--address1--B--&lead[0][City]=--A--city--B--&lead[0][State]=--A--state--B--&lead[0][Zip]=--A--postal_code--B--&lead[0][Phone]=--A--phone_number--B--&lead[0][Custom_1]= --A--vendor_lead_code--B--&lead[0][Custom_2]=--A--address2--B--&lead[0][Custom_3]=--A--address3--B--&lead[0][Custom_4]=--A--comments--B--&lead[0][Email]=--A--email--B--&lead[0]&provider=AV-LA

the error that the webpage returns is:
{
"0": {
"Success": false,
"Error": "Field lead[0] is not an array",
"Field": "format error",
"Accepted": false
}
}

but the [0] is needed for the form. it should be ' lead[0][FirstName] '.

am I missing something? or is there any problem witht the string?


Thank you in advance guys. Have a great day.



Hi guys Im totally newbie in vicidial, but I know some basic. So our client is asking for posting url, the problem is idk where to find this or create this posting url he's saying. Anyhelp would be a great thing. :cry:

Version:2.12b0.5 Build:160517-1927 (2016)
Last edited by Leckbush on Mon Jul 16, 2018 2:49 pm, edited 1 time in total.
Server 1: ViciBox v.8.1.2 181002 | Single Machine | VERSION: 2.14-580c BUILD: 190406-1615| Asterisk 13.21.1-vici
i7-4790K - 16GB DDR3 - 1TB HDD
Leckbush
 
Posts: 126
Joined: Sat May 12, 2018 6:35 pm
Location: Philippines

Re: WEB POSTING STRING ISSUE

Postby williamconley » Mon Jul 16, 2018 2:37 pm

1) Welcome to the Party! 8-)

2) As you are obviously new here, I have some suggestions to help us all help you:

When you post, please post your entire configuration including (but not limited to) your installation method (7.X.X?) and vicidial version with build (VERSION: 2.X-XXXx ... BUILD: #####-####).

This IS a requirement for posting along with reading the stickies (at the top of each forum) and the manager's manual (available on EFLO.net, both free and paid versions)

You should also post: Asterisk version, telephony hardware (model number is helpful here), cluster information if you have one, and whether any other software is installed in the box. If your installation method is "manual/from scratch" you must post your operating system with version (and the .iso version from which you installed your original operating system) plus a link to the installation instructions you used. If your installation is "Hosted" list the site name of the host.

If this is a "Cloud" or "Virtual" server, please note the technology involved along with the version of that techology (ie: VMware Server Version 2.0.2). If it is not, merely stating the Motherboard model # and CPU would be helpful.

Similar to This:

Vicibox X.X from .iso | Vicidial X.X.X-XXX Build XXXXXX-XXXX | Asterisk X.X.X | Single Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel DG35EC | Core2Quad Q6600

3) You need an example URL (manually created) that works (as in: you tested it).

4) We can then help you construct that same URL within Vicidial in a dispo_url or web_form URL OR (if Vicidial has a "feature" that blocks this) a PHP page that will accept the Vicidial URL and convert it for use on your other site. IE: a bounce page.

5) You really shouldn't hijack another user's post when the content/challenge does not match yours merely because the subject is similar (especially when it's similar because it's vague). Posting your own request with a detailed subject line is a better idea.
Vicidial Installation and Repair, plus Hosting and Colocation
Newest Product: Vicidial Agent Only Beep - Beta
http://www.PoundTeam.com # 352-269-0000 # +44(203) 769-2294
williamconley
 
Posts: 20258
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: WEB POSTING STRING ISSUE

Postby Leckbush » Mon Jul 16, 2018 2:51 pm

Sorry for missing information. Im the new IT here and the old IT provide me some basics on vicidial. But never taught me like creating a posting url which I really need.


Version:2.12b0.5 | Build:160517-1927 (2016) Vicibox: v.7.0.3-160505 | ASterisk 11.22.0 | Single Server
Server 1: ViciBox v.8.1.2 181002 | Single Machine | VERSION: 2.14-580c BUILD: 190406-1615| Asterisk 13.21.1-vici
i7-4790K - 16GB DDR3 - 1TB HDD
Leckbush
 
Posts: 126
Joined: Sat May 12, 2018 6:35 pm
Location: Philippines


Return to Support

Who is online

Users browsing this forum: No registered users and 63 guests