[cisco-voip] IPCC Scripting (ICD)
Vankir Scott
vscott at randbsolutions.net
Thu May 29 11:41:42 EDT 2008
Please excuse me as this is the very first time I have ever used a mailing
list.
Now with that said, we currently use a full blown Cisco VOIP system at my
work of business. I was not here when this system was put in place. Also,
the person that created these scripts are no longer with the company. So I
am very new to scripting but understand some syntax because I have used C++
and java. Currently we have several scripts for each department. These
scripts go through basic checks to verify that there is an agent online, if
it is business hours, etc. But these scripts call a different script
(subflow). This other script is used to check an xml file and see if that
agent's ext is in the list after being prompted to enter in a person's
extension. Here is that part of the script:
Script: Start
/* The ExtensionDoc script ... */ Prompt for Extension:
Create Container Prompt (output prompt: getExtension_Msg)
Get Digit String(contact: --Triggering Contact--, result digit string:
askingExtensionString) Successful
CheckFile:
Create File Document
extList=Create XML Document(Source Document = extList)
ext_null=Extract XML Document Data(Document = extList, XML Path =
"/descendant::Extensions/child::bogusstring")
Loop Through Extensions.xml: Increment ExtEntryNum
ExtEntrySuffix = ExtEntryNum.toString()
Set Extension = "Extension" + ExtEntrySuffix
ext=Extract XML Document Data(Document = extList, XML Path =
"/descendant::Extensions/child:: " + Extension)
If ( askingExtensionString == ext ) Then
True
Set isLegalExtension = true
False
If ( ext == ext_null ) Then
True
False
Goto Loop Through Extensions.xml
Timeout
Goto Drop Call Check
Unsuccessful
Drop Call Check:
If ( dropCall == True ) Then
True
Terminate (contact: --Triggering Contact--) False
Goto Go Back To Calling Script
Legal Ext Check:
/* Check to see if the Extension ... */ If ( isLegalExtension == True ) Then
True
Call Redirect (contact: --Triggering Contact--, extension:
askingExtensionString) Successful
Terminate (contact: --Triggering Contact--) Busy
Goto Redirect to Operator
Invalid
Goto Redirect to Operator
Unsuccessful
Goto Redirect to Operator
False
Create Container Prompt (output prompt: invalidExtension_Msg)
Play Prompt (contact: --Triggering Contact--, prompt: invalidExtension_Msg)
Redirect to Operator:
Call Subflow -- RedirectToOperator.aef
Go Back To Calling Script: End
Keep in mind that all the main scripts point to this on to prompt for caller
input and validate if the extension exists. Well cisco told me there is a
way to create a variable that will make a parameter become available within
the admin page that will allow you to enter in the location of each xml
file. I already know how to create the variable and make it prompt for the
location of the admin page. I just need to know how to edit this script to
utilize that variable. Please help.
That variable by the way is: Extension_XML_File set as type string and
parameter is checked. This is what I want to use in this script that will
allow me to use the admin page to enter in the xml file location.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://puck.nether.net/pipermail/cisco-voip/attachments/20080529/a50701b4/attachment-0001.html>
More information about the cisco-voip
mailing list