<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Courier;
        panose-1:2 7 4 9 2 2 5 2 4 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>Please excuse me as this is the very first time I have ever
used a mailing list.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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&#8217;s ext is in the list after being prompted to enter in a
person&#8217;s extension. Here is that part of the script:<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:562.95pt;
margin-bottom:0in;margin-left:.25in;margin-bottom:.0001pt;text-indent:-.25in;
line-height:10.0pt'><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>Script: Start<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:394.6pt;
margin-bottom:0in;margin-left:.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>/* The
ExtensionDoc script ... */ Prompt for Extension:<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Create
Container Prompt (output prompt: getExtension_Msg)<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:33.9pt;
margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;text-indent:-.25in;
line-height:10.0pt'><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>Get Digit String(contact: --Triggering Contact--, result
digit string: askingExtensionString) Successful<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>CheckFile:<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Create
File Document<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>extList=Create
XML Document(Source Document = extList)<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:5.0pt;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>ext_null=Extract
XML Document Data(Document = extList, XML Path =
&quot;/descendant::Extensions/child::bogusstring&quot;)<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:388.65pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><st1:place
w:st="on"><font size=2 face=Courier><span style='font-size:10.0pt;font-family:
 Courier'>Loop</span></font></st1:place><font size=2 face=Courier><span
style='font-size:10.0pt;font-family:Courier'> Through Extensions.xml: Increment
ExtEntryNum<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>ExtEntrySuffix
= ExtEntryNum.toString()<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Set
Extension = &quot;Extension&quot; + ExtEntrySuffix<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:5.0pt;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>ext=Extract
XML Document Data(Document = extList, XML Path =
&quot;/descendant::Extensions/child:: &quot; + Extension)<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-2.1pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>&nbsp;If
( askingExtensionString == ext ) Then<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>True<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Set
isLegalExtension = true<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>False<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>If ( ext
== ext_null ) Then<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.5in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>True<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.5in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>False<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Goto
Loop Through Extensions.xml<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Timeout<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Goto
Drop Call Check<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Unsuccessful<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Drop
Call Check:<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>If (
dropCall == True ) Then<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>True<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:262.5pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;text-indent:.25in;
line-height:10.0pt'><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>Terminate (contact: --Triggering Contact--) False<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Goto Go Back
To Calling Script<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Legal
Ext Check:<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:358.55pt;
margin-bottom:0in;margin-left:.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>/* Check
to see if the Extension ... */ If ( isLegalExtension == True ) Then<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>True<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:70.05pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;text-indent:-.25in;
line-height:10.0pt'><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>Call Redirect (contact: --Triggering Contact--, extension:
askingExtensionString) Successful<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:262.5pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;text-indent:.25in;
line-height:10.0pt'><font size=2 face=Courier><span style='font-size:10.0pt;
font-family:Courier'>Terminate (contact: --Triggering Contact--) Busy<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Goto
Redirect to Operator<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Invalid<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Goto
Redirect to Operator<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.0in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Unsuccessful<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:1.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Goto
Redirect to Operator<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.5in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>False<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Create
Container Prompt (output prompt: invalidExtension_Msg)<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:106.1pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Play Prompt
(contact: --Triggering Contact--, prompt: invalidExtension_Msg) Redirect to
Operator:<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:-1.0pt;
margin-bottom:0in;margin-left:.75in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Call
Subflow -- RedirectToOperator.aef<o:p></o:p></span></font></p>

<p class=MsoNormal style='mso-margin-top-alt:0in;margin-right:436.7pt;
margin-bottom:0in;margin-left:.25in;margin-bottom:.0001pt;line-height:10.0pt'><font
size=2 face=Courier><span style='font-size:10.0pt;font-family:Courier'>Go Back
To Calling Script: End<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'>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.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>