Possibe to see where API\WebForm Lead Came from?

Support forum for the ViciBox ISO Server Install and ISO LiveCD Demo

Moderators: enjay, williamconley, Staydog, mflorell, MJCoate, mcargile, Kumba

Possibe to see where API\WebForm Lead Came from?

Postby Nefariousparity » Thu Feb 07, 2019 6:39 pm

Is it possible to see via DNS or IP address what external source activated the ADD_LEAD API on a vicidial web server? I have a test lead that was posted, for example, where did it come from externally?
|| DB Schema Version: 1609 || Asterisk 11.25.1-vici || BUILD: 190902-0839 ||VERSION: 2.14-718a||SVN: 3133||10xTelephony||1x Database||1x Slave||1x Web||1x Archive||ViciBox v.8.0.1
Nefariousparity
 
Posts: 327
Joined: Wed Sep 12, 2012 7:01 pm

Re: Possibe to see where API\WebForm Lead Came from?

Postby williamconley » Thu Feb 07, 2019 7:41 pm

Have you checked the API log?

API runs on apache. Thus the apache log should contain the IP of the requester. Luckily apache shows the full URL "GET" data (but not POST data), so you can actually search the apache logs for the lead ID and should be able to zoom right in on what you need.

Code: Select all
cd /var/log/apache2; grep 55555 * -Rin


Replace 55555 with the actual lead id of your test lead.

Next time you give out the API information to someone, use the "source=" field for the company name to save yourself the effort. Then it'll be in the API log.
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: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)

Re: Possibe to see where API\WebForm Lead Came from?

Postby Nefariousparity » Fri Feb 08, 2019 3:29 pm

William, as always thank you very much. You are a scholar and a saint as usual.
|| DB Schema Version: 1609 || Asterisk 11.25.1-vici || BUILD: 190902-0839 ||VERSION: 2.14-718a||SVN: 3133||10xTelephony||1x Database||1x Slave||1x Web||1x Archive||ViciBox v.8.0.1
Nefariousparity
 
Posts: 327
Joined: Wed Sep 12, 2012 7:01 pm

Re: Possibe to see where API\WebForm Lead Came from?

Postby Nefariousparity » Fri Feb 08, 2019 3:40 pm

Well, we see a lead that did not come from that company. So we are trying to track if a agent is trying track where our leads come from. That is why I am trying to track IP of where the lead came from. I did include source field. But if the agent new how to put information in the internet browser and test...
|| DB Schema Version: 1609 || Asterisk 11.25.1-vici || BUILD: 190902-0839 ||VERSION: 2.14-718a||SVN: 3133||10xTelephony||1x Database||1x Slave||1x Web||1x Archive||ViciBox v.8.0.1
Nefariousparity
 
Posts: 327
Joined: Wed Sep 12, 2012 7:01 pm

Re: Possibe to see where API\WebForm Lead Came from?

Postby williamconley » Fri Feb 08, 2019 4:11 pm

Nefariousparity wrote:Well, we see a lead that did not come from that company. So we are trying to track if a agent is trying track where our leads come from. That is why I am trying to track IP of where the lead came from. I did include source field. But if the agent new how to put information in the internet browser and test...


The agent would need a user/password with API=1 and permission to see the information in question. I suggest you NOT give this to him.

Next up: change your cron/1234 password to a different password. There's a script to do this. Don't try it on your own without the script. DO backup the entire system before you change it.
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: 20018
Joined: Wed Oct 31, 2007 4:17 pm
Location: Davenport, FL (By Disney!)


Return to ViciBox Server Install and Demo

Who is online

Users browsing this forum: No registered users and 60 guests