POST Method from form to WCB.PHP

Friends I’m working on a simple form that passes form data, variable (‘p’ for a phone number) and a hidden field, variable (‘i’ for a web callback ID) from, using a forms POST method through to wcb.php which is located in: /etc/schmooze. Both source and target destination are on the same private lan, but have their own, public-facing IP’s, with a sub-domain pointing to FREE PBX WAN address. Question is, I’m trying to POST, but I get a BLOCKED message when inspecting the network traffic.

So my question actually comes in TWO parts.

  1. Is this the best method for getting together a custom form from a remote source and just use POST to interact with wcb.php

and

  1. Why doesn’t FREEPBX accept and wcb.php accept my POST?

Cheers!

Hey Tom, at this time, I’m simply trying to determine the best approach to using a form to pass on values to wcb.php (Web Callback) I have a number of websites where I’m using the generated html by the Web Callback feature to launch Web Callback dialog, where it asks for a phone number. Example: https://click2call.aosystemsgroup.com/wcb.php?i=3. So as you know, the “i” value passes on whatever misc. destination freepbx may be looking for. According to network debugging, it’s also passing on the “p” value (phone number input by the user)

I found the customized web callback form as provided by Sangoma here:

https://sangomakb.atlassian.net/wiki/spaces/PG/pages/35554153/Customizing+the+Web+CallBack+Form

However, the “i” value passes on whatever is “hard coded” in the form.

I’m trying to figure out if my best approach is to simply have a form on each website that takes in a phone number value and the “i” value and pass that along to WCB.PHP using the POST method?

If I had some logs, I would send them. I’m asking as I believe I might run into a CORS error.

Thanks Tom! Got it working exactly as I wanted. Thanks again!!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.