UCCX Script: Capture Original Called Number

Hi Folks, 
I am not a expert in UCCX Environment, but I have to perform a basic script to capture original Called Number. 
1) I have two Cisco 3825 Gateways connected over the PSTN with ISDN Signalling;
2) I am receiving the last four digits from my local provider (XXXX) and send that via voip dial peer to UCCX 10.1 to trigger 71011000. I am using the num-exp .... 71011000 to matching this dial peer.
My problem:
I need to play an annoucement that this prefix will change to another, but I have to delivery the call to CUCM extension number after that. I have the prompts yet, but how can I capture the original Called Number, since I have translated it using the num-exp commando on Cisco 3825 Gateway ?
Regards, 
Luiz

I would create a separate dial-peer with the correct called number on the gateway, and add a trigger for that extension number in UCCX.  Even if you have to translate it from 4 digits to an 8 digit number, you still have a unique called number coming into UCCX that you can use in your script.

Similar Messages

  • UCCX script and abandoned calls

    Hi Guys
    I got question about that UCCX script and abandoned calls , so currently we had 4 different script for  support the call follow .
    So the Main script is just AA let the people select menu 1 , 2 ,3 then go to different queue , after select 1 (for example) then call-direct to second script trigger number and coming into the queue .
    Unfortunately , the system counter the action to be an Abandoned call      , I already open the case about this issue and the TAC did not found any configure issue on UCCX , from the log we can seem all the REDIRECT,lrd=5000 is abandoned call .
    23811205: Apr 28 13:01:44.257 GMT+800 %MIVR-SS_TEL-7-UNK:Call.received() JTAPICallContact[id=37148,implId=151183/1,state=STATE_RECEIVED_IDX,inbound=true,App name=APP0,task=null,session=null,seq num=-1,cn=5000,dn=5000,cgn=0405554590,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null,ocn=5000,route=RP[num=5000],TP=null
    23811420: Apr 28 13:02:00.491 GMT+800 %MIVR-SS_TEL-7-UNK:Call.transferring(5030) JTAPICallContact[id=37148,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=APP0,task=48000040709,session=36000027315,seq num=0,cn=5000,dn=5000,cgn=0405554590,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null,ocn=5000,route=RP[num=5000],TP=5007]
    23811424: Apr 28 13:02:00.491 GMT+800 %MIVR-SS_TEL-7-UNK:Call.abandoned() - transferring JTAPICallContact[id=37148,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=APP0,task=48000040709,session=36000027315,seq num=0,cn=5000,dn=5000,cgn=0405554590,ani=null,dnis=null,clid=null,atype=DIRECT,lrd=null,ocn=5000,route=RP[num=5000],TP=5007]
    23818414: Apr 28 13:09:46.095 GMT+800 %MIVR-SS_TEL-7-UNK:Call.transferring(239) JTAPICallContact[id=37149,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=app2_Admin,task=48000040710,session=null,seq num=-1,cn=5030,dn=5030,cgn=0405554590,ani=null,dnis=null,clid=null,atype=REDIRECT,lrd=5000,ocn=5000,route=RP[num=5030],TP=5034]
    23818421: Apr 28 13:09:46.095 GMT+800 %MIVR-SS_TEL-7-UNK:Call.abandoned() - transferring JTAPICallContact[id=37149,implId=151183/1,state=STATE_ANSWERED_IDX,inbound=true,App name=app2_Admin,task=48000040710,session=null,seq num=-1,cn=5030,dn=5030,cgn=0405554590,ani=null,dnis=null,clid=null,atype=REDIRECT,lrd=5000,ocn=5000,route=RP[num=5030],TP=5034]
    Please give some advice about that and I am look forward to heard from you guys soon .
    Thanks

    Hi Jon
    I was tested "Set Call Contact Info step to mark the call as handled" last night , but not working .
    so in the get call contact info properties , I was used  last Redirect number  to nest trigger number .
    but not working .
    so have got any idea about that ?
    thanks

  • UCCX Scripting to transfer call to service when office closed.

    I am pretty new to scripting and need some assistance.  I have a simple script for UCCX that checks the date and time to determine if the office is open.  I have the script working for when the office is open, which is step one.  Now I have to be able to get the script to make a call to an answering service during closed hours/days.  I am just not sure which action to choose from the menus.  I am guessing that it is one of the Call Contact actions, but not sure.
    Any help would be appreciated!

    netbakter,
    Have you come across an issue when using Call Redirect step? I'm using it to redirect the call to an extension (in an AA like environment). I notice the system marks it as Aborted - com.cisco.app.ApplicationTaskInactiveException in the Aborted and Rejected Call Detail Report when the other party doesn't pick up the call. Is this normal?
    Thanks!
    -JT-

  • UCCX Called Number

    Hello,
    I am writing a UCCX script that pulls the calling and called numbers and does some other cool stuff to find an outcome and finally what to do with that specific call.
    Everything is working except I am not getting the called number. The called number I am seeing is the CTI Route Point number that was called to get the call into UCCX rather than the PSTN number.
    The setup is as follows:
    PSTN ---> SIP ---> CUBE ---> CUCM ---> UCCX 
    I can see the called number in the SIP messages and of course call manager is routing based all the called number I have done everything I can think off but it is still not showing me the PSTN called number in UCCX.
    I have attached a screen shot of the Get Call Contact Info step in UCCX scripting let me know if you need to see anything else related to the script.
    Any help appreciated.
    Thanks

    If the DNIS supplied at ingress to CUCM does not match the CTI RP DN then either you have Significant Digits stripping the called number down on the SIP trunk or a translation pattern modifying the called number before it gets to the CTI RP. In either case, CCX can only work with what CUCM gives it over the CTI QBE channel. A translation pattern resets the calling/called number to whatever transform it is performing so "Original Called Number" won't work either.
    Just mentally map the PSTN DNIS to the CTI RP DN and program the script to act accordingly based on the CTI RP DN.

  • 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

  • Show original caller instead of CTI port

    Is there any way to have call center agents see who is calling before they take the call? As it is now, the call is answered by the system, then there's an outbound call to the agent which shows the cti port's caller id, and only when the two are connected does the agent see who has been calling.
    I know JTAPI but since the incoming call to the agent is another call entirely, the original caller information isn't there so I suppose it would have to be done in the ACD script but I don't recall any option that would permit such a change.

    Sorry I forgot to mention we're using IPCC Express.
    I figure redirect would be the same as redirect in JTAPI, which is indeed a way to show the caller.. but that means the call leaves the call center and if the agent doesn't respond, the call cannot be rerouted so I understand your objections to that approach. I'll have to verify how the queue in question is set up (besides a regular call center iirc they programmed it so that the receptionist also uses UCCX - so, perhaps the drawbacks of a redirect would be okay).
    The CAD interface gives me an idea though... do you know which property would show the original caller number? Perhaps there's an ugly workaround where the call center script would tell my caller list application (we keep our own call log which aggregates internal caller ids with database lookups) that a given incoming call comes from another number - but in order to do that I have know the original caller and the global call id of the call from the cti port to the agent (the ideal setup) or at least the original caller identification plus the caller identification of the cti port that makes the outgoing call to the agent.

  • Wrong calling Number in QM

    Hi All,
    I have installed QM version 2.6.1SR1 with UCCX 7.0.1SR5 and CM 7.1.3b.
    After testing I see that calling number dispaly in QM is the cti-port number instead of original calling number.
    Did I miss something in configuartion or it is the bug?

    Hi
    Sounds like a bug... my only AQM customer is running 2.7 and they don't see this.
    Regards
    Aaron
    Please rate helpful posts..

  • UCCX 7.0 -calling number block script

    The version of Call Manager that I am on does not have a way to block an ANI coming into system (apparently later release do, will upgrade later).
    The calls from these auto-dialers that are coming in are going to our Call Center Express trigger.
    I created translation pattern that directs calls to that trigger to a new script.  New script has "if/ then' stmt  that says if the nubmer is xxx-xxx-xxxx (listing the specific auto dialer number), I route it to a fax machine,  if not then go to next step,  did another 'if / then'  for the 2nd auto dialer number,  if not that number then I route the call to the regular trigger for the call center script (if it is then it also goes to the fax number).\
    That works , there is some delay though.
    Those auto dialer calls have not stopped (number of calls reduced signficantly- but not gone).
    Now I need to add another number that is auto dialing us ... I am thinking initial delay is going to get longer ......
    could not figure out how to list more than on ANI ... seems I had to do a new "if/ then" statement for each number ..........
    Any ideas on improving the script to be more efficient?

    Here's one way, which seems to be the preferred way in Java to find a needle in a haystack:
    Variables
    String ANI = ""String[] blocked_numbers = new String[] {"1000", "1001", "2002"}
    Script
    Start...ANI = Get Call Contact Info (--Triggering Contact--, Calling Number)If (java.util.Arrays.asList(blocked_numbers).contains(ANI))     True          /* This is a blocked caller */     False          /* This is not a blocked caller */...End
    You would use the String array to hold all of your blocked numbers.  I have used three to illustrate the example.
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Calling number specification to be routed to designated agent via CCX script

    I want to be able to specify a number e.g. 502-8475 in the script that would then be routed to specific skilled agents in a queue. The number specify will be forward by another PBX to the queue number so that numberr will not be the caller number but the called. Can this be done with the script if so how.

    Different skills = different queue as UCCX Customer Service Queue (CSQ) is constructed based on skills assigned to it.
    If you simply want to reuse the same queue logic but queue the call to different set of agents, you still need to build different CSQ and assign the "new" skill to this CSQ as well as the agents.  Then you have couple of options to route it:
    1. Build new Application triggered by the number and point to the same script but override the CSQ name which needs to be exposed as parameter
    2. Change the existing script to perform a check to see what was the dialed number or original dialed number, you can accomplish this via "get call info" step, and then change the CSQ variable name to this new CSQ.
    HTH, please rate all helpful posts!
    Chris

  • UCCX Script Replacement with Queued Calls

    UCCX script question:
    If there are calls queued, and the script is replaced with an edited script, will the original script maintain the queued calls, or what happens with them?

    Existing calls are still following the script they arrived to, all new calls will follow the updated script.

  • UCCX Script CUCM XML Directory lookup for Calling name

    Hi there!
    I'm trying to fetch "calling name" by the below uccx script params but get "no protocol" java exception according to the attached screenshoot.
    It seems to happen when i reach the line: xml = Create XML Document(URL[dir_url + calling_number])
    My version of the UCCX is 8.02 and CUCM 7.1.5
    These are the params:
    Variables:
    This is part of the code:
    Script:
    calling_number = Get Call Contact Info(--Triggering Contact--, Calling Number)
    if (calling_number != null && calling_number.trim() != "")
         True          xml = Create XML Document(URL[dir_url + calling_number])
              calling_name = Get XML Document Data (xml, "//Name")
              if (calling_name != null && calling_name.trim() != "")
                   True
                        Set Enterprise Call Info (--Triggering Contact--)
                   False
                        /* Name Not Found */
         False
              /* ANI Not Found */
    String dir_url = "http://ip_address_cucm:8080/ccmcip/xmldirectorylist.jsp?n="
    String calling_number = ""
    String calling_name = ""
    Document xml = null
    rgds, Mikael

    Hi-
    Did you configure the 'Call Variable Layout' or did you only configure the steps in the script?
    Take a look at the 'Manage Call Variables Layout' section in the CCX Administration guide.
    Cisco Unified CCX Administration Guide, Release 10.0(1)
    Cisco Unified CCX Administration Guide, Release 10.5  
    Cisco Unified CCX Administration Guide, Release 10.6
    I have not worked much with Finesse, so I cannot provide an example.
    Thanks,
    DJ

  • Redirect the existing user's call to back office user by cross checking a Txt/Xml file on UCCX Scripting

    I need some help on following scenario.
    I have a customer UCCX 9 and When a new customer calls the contact center via a main number (eg:02089772111) to open an account or register themselves, caller will go through all the necessary welcome message …. And to an agent as normal
    Then the agent collects all the relevant informations (Name, address, tel-number (07929768543), etc) and records it in to a database
    And also the agent finally assign the customer to an internal person (eg: John on extension 3001 (not an agent)) and complete the account registration, like cisco assigning a TAC engineer to a case opener.
    Then the customer calls again to inquire anything in the future ( after opening an account) using the same phone (07929768543) on account and to the main number (eg:02089772111), caller should hear all the greeting, etc…like a first time caller and this time it should go to John on extension 3001 directly rather than to an agent.
    Is this possible with UCCX, can we add a file (xml or text) to script and update it with customer number and back office user extension to perform this diversion by collecting caller number and checking the file and send it to internal person. by updating this file real time by an agent or in a daily or weekly basis by a supervisor by modifying this txt/xml or may be a DataBase file.
    Thanks
    Shameer

    Shameer,
    Your XML file could look something like this:
    <?xml version="1.0" encoding="ISO-8859-1" ?> 
    <Numbers>
    <ANI="07929768200">
         <Ext>2001</Ext>
    </ANI>
    <ANI="02089772144">
         <Ext>2002</Ext>
    </ANI>
    </Numbers>
    You would then have to use the ANI of the caller to loop through the XML file. This would return the extension of the internal resource. They you would just use a call transfer step to connect the two together.
    HTH,
    Adam
    **Please remember to rate helpful posts, for the betterment of the community**
    Edit: fixed XML code. I was unaware that you can't have numbers as element names

  • Webservice call on UCCX Script

    Hi,
    Anybody has idea how to call web service on UCCX script editor.
    I read i have to built custom java code and import it into UCCX. Can anybody support how to use it.

    Hi,
    that's one way but there are several other options as well:
    - using embedded Java code in your script (no custom file),
    - creating the necessary Java classes with wsimport and referencing them in the script.
    Please note you need at least IP IVR or UCCX Premium to make this work.
    You should probably read the configuration guide about administering custom classes.
    G.

  • Loosing Called number information at script start

    My application is such that I need to know what number was dialed to reach the script.
    I will have multiple translations patters all forwareding to the same IPCC script Route Point.
    When the script executes I loose the origional dialed number information, even though i have the "Forward called number" box checked in the Route Point.
    All the variables in the "Get Call Contact Info" step show the "called" number as the Route point number (e.g. 7301 and not 888-111-2222 the number that got translated to 7301?
    Where did my number Go ?!?!?!? and how do I get it back !!!
    -Kevin-

    A translation pattern starts a new call within UCM in a manner of speaking. You will not see pre-transformed information in this scenario.
    This is also a bad idea because you run the risk of causing a race condition within CCX. The server checks the dialed number against all configured triggers any time you perform a call transfer or redirect within a CCX script. If the dialed number is not a trigger, CCX cannot properly handle UCM routing the call back to the CCX server. Essentially, when you transfer a call to a number that immediately routes back to CCX (translation pattern, Call Forward, etc), it breaks CCX.
    The correct solution to this is to add all of the pre-translated numbers as triggers on CCX.

  • UCCX Scripting:Not able to tranfer calls to Operator.

    HI Experts.
    I am trying to make a script like
    thank you for calling XYZ Company if you know the extension please dial it now or press 0 for assitance.
    I have created a script in Cisco Unfied CCX 7.1  Editor and i am able to send the calls to Users Ext's but i am not able to transfer the calls to operator when i pressed 0.
    I have attached the script where i am able to transfer the calls to Users ext successfully but i also want to transfer calls to operator when any body from outside press 0.
    Please review my attached script and let me know how i can do it to complete the rest.I have attached My script and also the snapshot.
    Waiting for reply
    thanks and best regards

    Add an integer varible named intCount and set it to 0.  I've added some lines and bolded them for you.  The first time the script asks for a number, intCount will be 0, the second time it will be 1, so the test will be false the second time and terminate the call.  I don't know what type of buisness you are in, but you may want to record a message telling them they are being disconnected and place it right before the terminate statement.
    Start
    Delay 2 sec
    Accept (--Triggering Contact--)
    startscript
    PhoneNumber = get digit string (--Triggering Contact--)
         Successful
              Call Redirect (--Trigger Contact-- to PhoneNumber)
                   Successful
                        goto wrapup
                   Busy
                        goto startscript
                   Invalid
                        goto startscript
                   Unsuccessful
                        goto startscript
         Timeout
         Unsuccessful
    If (PhoneNumber == "0") Then
         True
              Set PhoneNumber = "7263"
              Call Redirect (--Trigger Contact-- to PhoneNumber)
                   Sucessful
                        goto wrapup
                   Busy
                        goto startscript
                   Invalid
                        goto startscript
                   Unsuccessful
                        goto startscript
         False
    Set intCount = intCount + 1
    if (intCount > 1) Then
         True
              goto prewrapup
         False
    goto startscript
    prewrapup
    Terminate (--Triggering Contact--)
    wrapup
    end

Maybe you are looking for

  • Renaming files in a java program

    Hi, I want to give users the option of renaming a file from within a java GUI. They will right click on the name of the file in a JList, a JPopup will appear and they will click on rename and type a new name for the file(i've already done upto this p

  • Change name of .xml file.

    Can anyone help me? Being new to podcasing and not realising that I only need one xml file even for multiple episodes I gave my file a specific name relating to the subject of my first episode. Realising my mistake I would like to re-name the .xml fi

  • Condition 1 = 1 in a Where Clause

    What purpose the following condition in a where clause generated by Oracle Discoverer serve? Just Curious ! And 1 = 1;

  • Is it possible to fill Image field by FDF?

    I can fill text data to other type of field. But if I have image url or path, how do I fill to Image field? possible? %FDF-1.2 1 0 obj << /FDF << /Fields << /T (form1[0].page1[0].TextField1[0]) /V (Hello) >> << /T (form1[0].page1[0].ImageField1[0]) /

  • How do I build folders in email for my iPad mini?

    How do I make folders in my email with my iPad mini?