cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1339
Views
5
Helpful
2
Replies

UCCX 7.0 Trying to Get Called Number step

lmrscheff
Level 1
Level 1

I'm trying to have my script recognize a specific called number and then based off that call number queue call at higher priority and send to agent.  I am in the debug state right now and it's blowing by IF statement for the called number.    What am I missing here?

thanks

Called Number = Get Call Contact Info

IF (called_number==1234567) then

True> Set Pri 7

False>continue to queue call lower Pri

1 Accepted Solution

Accepted Solutions

Anthony Holloway
Cisco Employee
Cisco Employee

are you in active or reactive debug mode?  if active, you cannot pull the get call contact info step, but I suspect you would have seen that.  so, I will assume you are in reactive.  but I want to make sure.

I see you wrote out the script steps by hand, instead of a screenshot, or file upload, so this could easily be a typo, but your variable in the get call contact info step is:

Called Number

And your variable in the if step is:

called_number

They should be the same.

Also, your if step should have the phone number literal in double quotes:

"1234567"

And not typed out like an integer:

1234567

But again, that could be a typo, and not really how your script is built.

The logic looks good:

Get Called Number

If Called Number == Priority Number Then

     Set Priority

Else

     Do Nothing

So I am only left to guess at the problem....do you use wild card triggers?  I.e., not 1234567, but 123XXXX?

If you are using wild card triggers, then the Called Number would be the trigger:

123XXXX

And not the actual number dialed (you need to get the Dialed Number, which is at the bottom of the list):

1234567

If that is the case, then certainly:

"123XXXX" != "1234567"

And that would route your calls to the False branch of the If step.

View solution in original post

2 Replies 2

Anthony Holloway
Cisco Employee
Cisco Employee

are you in active or reactive debug mode?  if active, you cannot pull the get call contact info step, but I suspect you would have seen that.  so, I will assume you are in reactive.  but I want to make sure.

I see you wrote out the script steps by hand, instead of a screenshot, or file upload, so this could easily be a typo, but your variable in the get call contact info step is:

Called Number

And your variable in the if step is:

called_number

They should be the same.

Also, your if step should have the phone number literal in double quotes:

"1234567"

And not typed out like an integer:

1234567

But again, that could be a typo, and not really how your script is built.

The logic looks good:

Get Called Number

If Called Number == Priority Number Then

     Set Priority

Else

     Do Nothing

So I am only left to guess at the problem....do you use wild card triggers?  I.e., not 1234567, but 123XXXX?

If you are using wild card triggers, then the Called Number would be the trigger:

123XXXX

And not the actual number dialed (you need to get the Dialed Number, which is at the bottom of the list):

1234567

If that is the case, then certainly:

"123XXXX" != "1234567"

And that would route your calls to the False branch of the If step.

Hi Anthony yep I figured it out I was not using the double quotes! 

thanks!