Authenticating / sending executing <CiscoIPPhoneText>

Version 1

    Subject: RE: Authenticating / sending executing <CiscoIPPhoneText>
    Replied by: James McHugh on 23-08-2011 05:48:45 PM
    Hi Luis,
    Maybe you lost something when cutting and pasting for this post, but it looks to me like auth = user & pass just concatenates the two values. Is that what you intended?
    This document was generated from CDN thread

    Created by: Luis Yrigoyen on 23-08-2011 05:18:50 PM
    I'm trying to run a script that executes the Text object in the IP Phones but I'm getting a Error "4".
    We are currently running version 7.1.3.  This same script used to work when we were running 4.1.3; has something changed?
    In 4.1.3 I used to replaced the authencitacation URL for the phone that I wanted to execute with a simple asp that would always return a AUTHORIZED but that doesn't seem to work either in 7.1.3.
    The correct user is associated with the phone.
    dim uri
    dim num2dial
    Dim user
    Dim pass
    dim auth
    Dim arrphones
    Dim msgtime
    Dim title

    'user = "XXXXXXXXXXX"
    'pass = "XXXXXXXXXXX"

    msgxtitle = "CALLMANAGER MESSAGE"
    msgtime = "Sent: " & (now)
    msgxbody = msgtime & vbcrlf
    msgxbody = msgxbody & "Get to work! lazy ***!!"
    msgxip = "10.xx.xx.xx"

    auth = user & pass

    action = "<CiscoIPPhoneText><Title>" & msgxtitle & "</Title>" & "<Text>" & msgxbody & "</Text>" & "</CiscoIPPhoneText>"
    action = "XML=" & Escape(action)
    url = "http://" & msgxip & "/CGI/Execute"
    Call HTTPPost(url, action, auth)

    Function HTTPPost(surl, srequest, auth2)

      set oHTTP = CreateObject("MSXML2.XMLHTTP") "POST", sUrl,False
      oHTTP.setRequestHeader "Authorization","Basic " & auth2
      oHTTP.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
      oHTTP.setRequestHeader "Content-Length", Len(sRequest)
      oHTTP.send sRequest
      HTTPPost = oHTTP.responseText

    End Function

    Subject: RE: Authenticating / sending executing <CiscoIPPhoneText>
    Replied by: Luis Yrigoyen on 24-08-2011 01:01:33 PM
    Yes.  The phone is expecting username:password in base64.