Use of Time in UCCX scripting

Hi,
    We are working on UCCX7.0(1) and have a scripting question. The requirement I have is to play a prompt for a defined set of time, say 5 minutes, in a loop. On the expiry of the time, the call should end. Following is the steps that I need to achieve-
1) Play a message , Prompt1, asking the user to enter a digit.
2) On timeout or invalid entry, loop through the Prompt1 unlimited number of times.
3) But once the duration of the play reaches 5 minutes, end the call.
I am not aware of checking this timer/duration within the script. This seems pretty basic but Iam a novice to scripting, so any help is highly appreciated.
Thanks,
DM

It works!! You are right, I will not be able to time it to exactly 5 minutes but the customer is fine with it.
I just had to tweek the code a tiny but in oder to compare 2 Long values :
if (EndTime - StartTime) >= (300000.longvalue()) then
     Goto End
Else
     Goto Prompt_Label.
Thanks a ton!!
DM

Similar Messages

  • UCCX Scripting, Time variable

    I am looking for  guidance on UCCX scripting. I have searched all the forums but can't  find what I am looking for. I want to be able to close Contact Center at  different times for different Service Queues on Holidays. For example,  Customer Service closes 5 pm on the day before holiday, but Helpdesk  does not close till 11:30 on the day before holiday. How can i  incorporate time in my script. I am using XML file with Holiday dates as  of now. Any help will be appreciated.
    Scenario:
    Sales: Close 12/23/13 at 5:00 PM and re-open 12/26/13 at 7:00 AM
    Help Desk: Close 12/24/13 at 1:30 AM and re-open 12/26/13 at 6:00 AM

    Take a look at the examples available from script repository:
    Cisco Unified Contact Center Express Script Repository 9.0(2)
    Chris

  • UCCX Scripting - Open/Close time of day is different on some days

    All,
    I currently have a simple UCCX script with a DOW and TOD variable set, but need to make an adjustment to accommodate a new schedule for a call center queue.  My DOW is Monday - Friday, and TOD is set to 8am-5pm.  I need to make a change to where say Wednesday is set to not close the queue until 10pm.  How do I make that happen?
    This is the way it shows in the editor:
    DOW: Monday-Friday
     +open:
      ++8am-5pm:
       +++Goto yadayada
      ++TheRest
     +Closed
    If I need Wednesday's queue to stay open between the hours of 8am and 10pm, what logic do I need to put in?  I'm thinking I'll have to add an IF Statement, but not sure where to start.  Any ideas?

    I was able to figure this out.  Below is what I did:
    Created two new Day of Week options and selected the corresponding days.  Under each, I moved the Time of Day statement and assigned the time ranges, then selected the goto statement and assigned it as needed per my script.  
    This should provide the logic I was needed.  

  • How to use Dynamic Time Series YTD on a calc script / member formula?

    Hi,
    I activated Dynamic Time Series on Essbase and would like to use the YTD function of a measure for a certain month.
    I tried to use
    MeasureName->YTD(Dec)
    MeasureName->Y-T-D(Dec)
    But couldn't use it to syntax problems. How can I call this function instead of using @Accum or @SumRange?
    Thank you
    Edited by: Icebergue on 10/Ago/2011 11:07

    I could be wrong, but I don't think you can use DTS members in calc scripts or member formulas. As you probably know, they can be used in Financial Reports, SmartView and Excel Add-in.
    You can create an alternate hierarchy in your Time dimension though:
    Jan (YTD): Jan ->Jan is being a shared member
    Feb (YTD): Feb+Jan (YTD) ->Both Feb and Jan (YTD) are being a shared members
    Dec (YTD): Dec+Nov (YTD) ->Both Dec and Nov (YTD) are being a shared members
    Cheers,
    Mehmet

  • Uccx comparing time objects in script crossing dates

    Hi There!
    Im using Jonathan Schulenberg sub_datetime.aef script which is an awesome script for grabbing
    Timezone,currentTime,currentTimeInt date and dayofweek information.
    I have implemented a script at a customer site using this logic and it works great!
    But i bumped into a weakness in my solution that i wonder íf somebody can help out with!
    For instance if i compare if a queue shall be open or closed by doing an IF on the following logic
    If (currentTimeInt >= 070000 && currentTimeInt <= 180000) Then
    True -> Goto CSQ-Step
    False -> Goto ClosedPrompt, that works ok
    But if i want to compare
    If (currentTimeInt >= 070000 && currentTimeInt <= 010000) and trying to do same logic it fails....
    because in some cases my customer want to keep a queue open to 010000 AM due to extend their support open hours!
    The question is are there any built-in script method or function that can be used when do a compare on PM and AM times and then crossing dates. I
    IF so this way you could have a fully controlled TOD/DayOfWeek where several application/scripts could use a common SQL DB for storing business hours, exceptions etc.
    Somebody?!
    rgds Mikael

    Hi Geof!!
    Thx. for you reply! I shall test this since i already check weekday-numbers in my logic!
    Just a thought normally i think the CurrentimeInt returns 010000 (when 01:00 am) so i guess you mean that i shall
    read a Substring of 010000 i.e dig out 10000 from the variable, right?!
    Are there any other ways to do it with T[now] functionality or so?
    rgds, Mikael

  • Order status using UCCX scripting

    I have Oracle DB which contain information about customer order such as if order has been shipped, when has been shipped,and so on. We do not want to query directly against the DB, and as far as I know Oracle has XML DB web services. If we turn that on, and have a report in xml that give me all information I needed. How do I use UCCX scripting to access these data, and read it back to customer when they call.
    I am using UCCX 8.5 premium.

    Hi,
    I see.
    This way: I certainly need the WSDL. It's basically the contract between the SOAP server and the SOAP client, the description of the protocol they are going to use. Its a file or a URL, in both cases, it's an XML document.
    SOAP might be a bit tricky, but I can help you with that. It's basically the SOAP client (in our case, the UCCX server) sending an XML over HTTP to the SOAP server, and expecting some result, which is usually an XML document, too.
    There are several approaches of enabling a UCCX script to perform SOAP commmunication, and I have created several documents about it:
    https://supportforums.cisco.com/document/97736/uccx-8x-really-simple-soap-client-no-custom-jar
    https://supportforums.cisco.com/document/112616/uccx-oop-soap-client-1-custom-jar-using-jax-ws
    Or, there's a recent thread about a similar integration:
    https://supportforums.cisco.com/discussion/12240436/uccx-soap-request
    Please ask the administrator of your Oracle DB about the WSDL, download it, post it to here.
    About the second integration option: I was thinking about a Grails proxy app - do you have a Tomcat or other Java application server in your environment we could use? 
    G.

  • How to update XML file through UCCX script ?

    Hi,
    I have an UCCX script with MENU step. One of the step is for technical support team. When caller chose this step, information about date and time of the call and calling number should be recorded on a XML file located on the web server.
    This XML is uploaded into the web server , but I don't know how to update it through UCCX script.
    Here is how the XML file looks like:
    <?xml version="1.0" ?>
    <rss version="2.0">
    <channel>
    <title>CALL LOG</title>
    <link></link>
    <description>Support Call log</description>
    <ttl>1</ttl>
    <item>
    <title>2011-08-24 14:56:39 - 00044 123 123 123</title>
    <link></link>
    <description></description>
    </item
    </channel>
    </rss>
    Any idea?
    Thanks,
    O

    Hi
    The 'keyword transform' step uses the template XML file to generate the actual XML file you want to post... the template would be a plain text file uploaded to the repository, and would look like so:
    <?xml version="1.0" ?>
    CALL LOG
    Support Call log
    1
    %%calldatetime%% - %%clinumber%%
    Now - if you had that bit of XML, with correct time/number in it - have you verified know that you can definately just post that XML to a certain URL to get it on the server? Check with whoever manages that server exactly what you need to do to get it to appear - then worry about how you do that from UCCX. It may not be a matter of posting up that XML, you may need it in a different format or something..
    Aaron

  • UCCX script editor not working

    1-The loading bar down of the screen always loading and never finishes.Please  take a look to the attached picture.
    2-When i go to the uccx and want to change the server from hostname to ip address,i always get update failed.
    I am so new in uccx,help is appreciated.
    Thanks in advance.

    Hello,
    You have come to the right place to ask questions on UCCX.
    Please take some time to read through the product manuals, as they are full of good information and will answer most of your questions.
    UCCX Documentation Home Page
    http://www.cisco.com/en/US/customer/products/sw/custcosw/ps1846/tsd_products_support_series_home.html
    On to your two questions:
    1.  This is not a loading bar.  This bar is completely useless, and all it's telling you is how much memory the Editor has available to it in order to process things.  The button to the right is simply a "garbage collector" which will attempt to free up any abandoned memory, but mostly it just sits there looking pretty.  You really don't need to bother with either of these too status bar items, and can ignore them.
    Source: UCCX Scripting Volume 1 - Getting Started with Scripts
    2. It's been about two years since I've completed an install of UCCX, and therefore don't have this information fresh in my head.  I did spend  few minutes trying to find documentation on the topic, but to no avail.  I was only really able to read the Help page for that specific page (Help > For This Page), however, it didn't make a big deal about changing the value.  It simply says, change it and then click Save.
    Could you post the exact error message you are receiving?  Also, what is your intention with changing the hostname to IP?  Unlike CUCM where you may want to remove DNS dependency on the phones to communicate with the server, UCCX clients use the IP address regardless.  So perhaps it's not a necessary step?
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • DB Read error from UCCX Script

    Hi All,
    We are running uccx 7.0.
    Trying to return data from DB using stored procedure from the uccx script.
    We are able to run this when we pass explicit value instead of variable ANI.
    But whenever we provide variable ANI, we get below
    error: SQL statement varible not defined : ANI
    Query which provided in the DB Read as below,
    select * from  table(credit_back.fun_select_point($ANI));
    Request your help on it..
    Regards,
    Shalid K.C

    Yes Gergely.
    we have created new script and when i add DB Read function in the script, it is not allow to apply it, same time it is giveing the above mentioned error.
    but when i test it with explicite value it is working.. .not working by providing variable name
    Regards,
    Shalid

  • Day light saving changes in UCCX scripting.

    Hi, We are using UCCX version 8.X  and we have script like press 1 to go shangai tem, press 2 to go to US team like that.
    In the time of day light saving we are doing manual changes in time of day settings manually when ever the location day light savings changes.
    so is there a way to the script refer the local time zone according to the region day light savings.
    or the reqired OS patched time zone patches will solve the problem please suggests.
    Thank you.
    Baskaran.

    Hi,
    UCCX uses its own time in the server to lookup the time. you need to configure the proper timezone for your UCCX. if shangai and US change start using daylight saving at the same date, you don't need to change your script. if not, unfortunately you need to change the time in the script itself.
    HTH
    Anas
    please rate if it is helpful

  • Working with TimeZone variables in UCCx script

    Hi Team
    I'm wondering if you guys could help me to find out the best way to work with TZ variables in UCCx script.
    Because of different countries customer has a branches, I need to setup different TimeZones for each country handled by the same centralized UCCx.
    In this post they use Java to work with TZ, however, but I prefer another way to work with TZ variables:
    https://supportforums.cisco.com/discussion/11851751/how-make-uccx-holiday-script-timezone-aware
    My idea is to work with Time Zone variables in the script, so what I did was to create different TZ variables and each one of the them assigned the proper timezone based on the country, so depending of the Trigger involved (DNIS), I can find witch country this call came from and give the right timezone.
    The problem I have is that at the time I want to add or subtract two variables of TZ, I got an error because of the syntax. I've been trying different options, but until now, no luck.
    Would you mind you guys who had been working on this let me know what is the right syntax to add or subtract TimeZone variables un UCCx?
    Thanking you in advance
    Martin

    Hi
    I've been working on TZ's recently... see this post:
    https://supportforums.cisco.com/discussion/12474756/how-check-daylight-saving-within-uccx-script
    My approach in the scripts was that basically I allow the department to set their opening hours in the timezone of their choice.
    They have a management web page served from CCX that accepts start/end times each day, and a timezone. That all gets stored in XML.
    In the script, based on that information I get the current time in whatever timezone is set, and compare that to the XML open/close times.
    Similarly for holidays, I get the current date/time in the holiday TZ and compare the holidays to that.
    Aaron

  • Procedure of mapping new UCCX script

    Hi Guys,
    Can you please tell me the procedure of correctly creating a trigger for a UCCX script?
    do I need to create a separate call control group all together or I can use existing one?

    Hi Shyam,
    Make sure before testing a script you have checked below:
    1. Unified CTI telephony Subsystem is InService
    2. The validation of Script is successful before uploading in script management.
    Yes , You can do a reactive script to check if trigger is hitting the script.
    Set the reactive script, once you make a call the script will reloaded and you will come to know that the script is triggered.
    Step 1: in Script Editor , go to Debug-->Reactive script
    Step 2: Select the Script you want to monitor from dropdown and set the timer timer
    Step 3: Call the Route point (trigger), the script will reloaded with the red mark. So you can to know the script is triggered.
    Step 4: You can debug the script by click step over button to check if any error is there in the script.

  • UCCX script to pull XML data

    Hello,
    My goal is to create a UCCX script that will run on a Standard license server. Basically, when a user dials a four digit "speed dial", I want them to be translated to a UCCX route point, that will take the original called number, and the calling number, and use that to create a URL that it will then query and retrieve the actual number that will need to be dialed.
    So my plan currently is to have a phone inside of a partition that has a translation pattern of XXXX. The called number gets translated to 1158, which is the trigger of the application on UCCX.
    The url I want to query will be something like this:
    http://localhost:35798/RestServiceImpl.svc/XML/1017/6314
    "Localhost" will eventually become the IP address of the server hosting IIS application that will provide the XML output. 1017 is the "speed dial" or the original called number, 6314 is the calling number.
    Going to that URL should return me this output:
    <XMLDataResponse xmlns="http://tempuri.org/">
      <XMLDataResult>
      <CallingXML>
      <Extension>6300</Extension>
      <SpeedDial>1001</SpeedDial>
      <PhoneNumber>918005551212</PhoneNumber>
      </CallingXML>
      </XMLDataResult>
    </XMLDataResponse>
    This is the script as I have written it out so far:
    It does not seem to like what I have put together thus far when I try to validate it. I'm just wondering if I'm doing something that's obviously wrong.
    The end goal will be to take the NewNumber and dial it, while hiding it from the phone.
    Thanks,
    Mark

    Here's an update: I have the script retrieving the correct numbers and formulating the URL correctly. It also appears to be delivering the query from the XML.
    Here's what the XML looks like when I hit it from my browser:
    http://tempuri.org/
    ">
      http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">63141017918003551111
    When I do an Interactive Script Debug session and dial the number, I can see that there are two problems: 1) the NewNumber string is "null" by the time it gets to the step to do a Call Consult Transfer, and 2) the script just shows up a blank Exception.
    This tells me I am not parsing the XML correctly.
    Here is what I have currently:
    NewNumber = Get XML Data (xml, "/descendant::XMLDataResponse/child::XMLDataResult/child::PhoneNumber")
    Which based upon what I've read in Cisco's Volume 2 and elsewhere, should be correct.
    Notice in the screenshot that the XML data that UCCX pulls in looks different from when I look at it from my browser. I've also attached the script.
    Thanks,
    Mark

  • UCCX scripting problem

    Hi,
    I am trying to develop a script for UCCX 7.0. I opened Unified CCX Editor started new script, put an accept step and a terminate a step with delay step between the a two of em, uploaded my script to the appadmin page and created a new application for it and. When dialing my application trigger i got "soory we are experiencing problems now please call later". When I try to use the default "aa.aef" script instead of mine It works great. what should I check to have my script work.
    Best Regards

    Is the timestamp close to the time of your issue?  I would imagine that it's not the cause of the issue as you're getting to the UCCX server and hearing the standard error message about the system problem.  I think that looking in the MIVR logs will shed a bit more light as to what is happening when you call into your application.

  • UCCX scripting, Voicemail?

    I'm creating a new UCCX script and I have a question regarding voicemail fwd when no
    agents are available. I know that I need to add the 'Get Reporting' stat before the menu,
    but I'm not sure where to place it. Also, I wanted to make sure that I wouldn't be using
    to many uccx ports. I have attached the script . I will appreciate if someone can edit it for me.

    mislam2
    I place my get reporting step right before a caller would go to the queue.  If not agents are available or the average queue time is too high I set a transfer string variable and send the caller to the voice mail box.
    You should not have to worry about using too many ports.  Once the caller is transferred the uccx port is done with the call.
    HTH

Maybe you are looking for

  • Exclude buttons from ALV

    Hi All,   I want to exclude pushbuttons from ALV. Can any body suggest me how to do this. I am using classes to display ALV. Regards, Venkat.

  • Creation of XML files with the DME Engine

    Hi Experts, For a Belgium client, I have a requirement to generate DME file in XML format for payments made to foreign and domestic vendors. I want to know the following, 1. Can DME file be generated in XML format using classic payment medium program

  • J2SE 5.0 Documentation Download button broken

    This is probably not the right place to post this, but the documentation download is broken. http://java.sun.com/javase/downloads/index.jsp

  • Need help with SQLite

    I have a SQLite database from with I want to display my results in a form in a Flash movie. I know how to display these results in a datagrid, but I want to display them in seperate texfields. Can anyone help ? My current code for displaying results

  • Final Cut Pro 5.1 and a Macbook

    I am looking to buy Final Cut Studio. I was hoping to get some feedback on this question: Must you have a MacbookPro to run Final Cut Pro 5.1 (and the rest of Final Cut Studio), or will it run on a Macbbok without any problems? I would really like to