[cisco-voip] CiscoTSP
Himes, Jay
jehimes at liberty.edu
Mon Jan 30 21:08:20 EST 2006
Yes.
I have an example in coldfusion that can be used. Basically you post a
set of form data to the phone using basic authentication. The code is
posted below.
Please be aware that newer versions of IE and firefox have purposely
broken the basic authentication standard so that it cannot be used from
those browsers in an (IMO) misguided attempt to increase browser
security. This is why the post is handled by a coldfusion macro rather
than a post directly to the phone.
Basically the information from the form is concatenated into a url as
follows:
User:password at ipphoneipaddress/CGI/Execute
Included is a form field named XML that contains the following:
<CiscoIPPhoneExecute><ExecuteItem
URL="Dial:THE_PHONE_NUMBER"/></CiscoIPPhoneExecute>
************************************************************************
***********
<title>Dialer</title>
<cfif not IsDefined("usr")>
<cfset usr="">
</cfif>
<cfif not IsDefined("pw")>
<cfset pw="">
</cfif>
<cfif not IsDefined("tocall")>
<cfset tocall="">
</cfif>
<cfif not IsDefined("callfrom")>
<cfset callfrom="">
</cfif>
<cfoutput>
<cfif tocall is "" or pw is "" or usr is "" or callfrom is "">
<form action="dialer.cfm" method="POST">
Phone User Name: <input type="text" value="#usr#" name="usr"> <br>
Phone Password: <input type="text" value="#pw#" name="pw"> <br>
Phone Number to Call: <input type="text" value="#tocall#"
name="tocall"> <br>
Phone IP to Call from: <input type="text" value="#callfrom#"
name="callfrom"> <br>
<input type="submit" value="Call" name="Call">
</form>
<cfelse>
<cfset CrLf = Chr(13) & Chr(10)>
<cfset dialurl="http://" & #callfrom# & "/CGI/Execute">
<cfset cmduri="<CiscoIPPhoneExecute>" & #CrLf# & "<ExecuteItem
URL=""Dial:" & #tocall# & """/>" & #CrLf# & "</CiscoIPPhoneExecute>">
<cfhttp url="#dialurl#" username="#usr#" password="#pw#" method="POST"
throwOnError ="no">
<CFHTTPPARAM name="XML" type="FORMFIELD" value="#cmduri#">
</cfhttp>
<cfset secerr=REFind("Status=""4""", cfhttp.fileContent)>
<cfset success=REFind("Status=""0""", cfhttp.fileContent)>
<cfif success gt 0>
<br>#tocall# dialed successfully<br>
</cfif>
<cfif secerr gt 0>
<br>Username or Password Invalid<br>
</cfif>
<textarea cols=70 rows=5>
#trim(cfhttp.fileContent)#
</textarea>
</cfif>
</cfoutput>
________________________________
From: cisco-voip-bounces at puck.nether.net
[mailto:cisco-voip-bounces at puck.nether.net] On Behalf Of Cisco
Subscriber
Sent: Monday, January 30, 2006 8:41 PM
To: cisco-voip at puck.nether.net
Subject: [cisco-voip] CiscoTSP
Has anyone developed a quick little application that will dial a number
on their phone? I've installed the CiscoTSP and tested the integration
with outlook, and it works just fine. What I'd like to do is configure
an old application to launch an external program/script and pass it a
number to dial with a single keystroke.
Can I write a quick little script that will use this and dial the users
phone for them. Something like "dialipphone.vbs 6045551212" which will
do the same thing as is done within the outlook extension (pick-up the
line on their phone and dial the number).
Is there some reference material available somewhere for doing this?
________________________________
<http://www.cbvcollections.com/cbvImages/ecardlogo.jpg>
Frank Wakelin
Senior Network/Security Analyst
100 - 814 Richards St.
Vancouver, BC
V6B 3A7
Telephone: (604) 661-7906
fwakelin at cbvcollections.com
Confidentiality Warning:
This message and any attachments are intended only for the use of the
intended recipients (cisco-voip at puck.nether.net), are confidential, and
may be privileged. If you are not the intended recipient, you are hereby
notified that any review, retransmission, conversion to hard copy,
copying, circulation or other use of this message and any attachments is
strictly prohibited. If you are not the intended recipient, please
notify the sender (Cisco Subscriber
<mailto:subs-cisco at cbvcollections.com> ) immediately by return e-mail,
and delete this message and any attachments from your system. Thank you.
Information Confidentielle:
Le present message, ainsi que tout fichier qui y est joint, est envoye a
l'intention exclusive de son ou de ses destinataires
(cisco-voip at puck.nether.net); il est de nature confidentielle et peut
constituer une information privilegiee. Nous avertissons toute personne
autre que le destinataire prevu que tout examen, reacheminement,
impression, copie, distribution ou autre utilisation de ce message et de
tout fichier qui y est joint est strictement interdit. Si vous n'etes
pas le destinataire prevu, veuillez en aviser immediatement l'expediteur
(Cisco Subscriber <mailto:subs-cisco at cbvcollections.com> ) par retour de
courriel et supprimer ce message et tout document joint de votre
systeme. Merci
More information about the cisco-voip
mailing list