Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Bronze

Filter CLID and DN in the same node?

Is there a way to put a formula to filter CLID and Dialed Number in the same node?

I can do that with 2 nodes, CLID node and IF node with Call.DialedNumberString variable.

Is there a formula to accomplish both in the one node?

3 REPLIES
Bronze

Re: Filter CLID and DN in the same node?

Using an IF node you can use the following....

Call.DialedNumberString=="1234"&&Call.CallingLineID=="3125551212"

If you were looking for an either/or condition it would be the following...

Call.DialedNumberString=="1234"||Call.CallingLineID=="3125551212"

Bronze

Re: Filter CLID and DN in the same node?

Thanks for the reply, I forgot to mention there are 6 entries in the CLID node and they are prefixes, not 10 digits.

Green

Re: Filter CLID and DN in the same node?

You can make the CLID node act like a switch/case statement in programming. Just change it to "Use Expression" in the Variable tab.

Now you need to set up a formula which returns a value. You COULD make this work with some thought - convert the area code substring(s,1,3) into a number, and convert the DNIS into a number and add them together - does this give you six unique numbers?

If so, you can use these as the values in the switch (CLID).

This is pretty opaque though. People who come to look at your script later may not follow it.

Regards,

Geoff

181
Views
0
Helpful
3
Replies
CreatePlease to create content