0

We have PBX controlled via http. When I send

http://10.20.30.11:8888/switch?name=lukas&destination=84022&source=84021

in address line Firefox, command is working correctly (tel. line is conected from line 84021 to line lukas 84022. I try send the command via vbs:

Set http = CreateObject("Microsoft.XmlHttp")

On Error Resume Next

URL = "http://10.20.30.11:8888/switch?name=lukas&destination=84022&source=84021"

http.open "GET", URL, False
http.send 

Set http = Nothing

Bat this script isn't working. Could you help me, please? Thank for your answer.

Etienne007
  • 11
  • 1
  • When you say it isn't working what happens exactly? Do you get an error? Maybe worth checking `http.status` for the HTTP Status Code and `http.responseText` for the response to see why it's failing. – user692942 Jan 16 '21 at 15:47
  • Exactly PBX don't connect line from 84021 to 84022. Script does not report any error. I red HTTP GET link, I tried CreateObject("MSXML2.XMLHTTP") method and CreateObject("InternetExplorer.Application") method, bat PBX still don't connect line. http command sent from address line firefox not returnet any message. – Etienne007 Jan 16 '21 at 17:04
  • 2
    You could start by removing `On Error Resume Next`, and then maybe you will get some error message. – Geert Bellekens Jan 16 '21 at 18:14
  • I tried run script without "On Error Resume Next". It is same. Script not returnet any error code. – Etienne007 Jan 17 '21 at 18:50

0 Answers0