07-14-2016 11:26 AM - edited 03-14-2019 04:20 PM
Hi Experts
The attached file contains some area codes (ANI) that I need to check in my script before routing the call to the right CSQ. The following example is to look for 2 area codes 418 and 581.
(sCallingNumber.startsWith("418") || sCallingNumber.startsWith("581"))
I can use the above method for 2 or 3 area codes but definitely not for the number of area codes we have in the attached document. I know there're other methods such as XML or txt document but need help to format them. Could someone please share with me a solution for a similar requirement.
Thanks,
MK
Solved! Go to Solution.
07-18-2016 10:06 AM
Hello MK,
Attached to this post is a zip folder containing the sample script and xml file to do ANI based routing which I created for a customer few months back. In this particular script, I have taken example of 3 area codes per CSQ but you can do 1:1 mapping or any other way you like. Also, you will need to use the substring method to choose the first three or four digits depending on the requirement of the calling number as area code.
Regards
Deepak
07-15-2016 06:36 AM
Anybody?
07-18-2016 09:13 AM
Nobody can help!!!!
07-18-2016 10:25 AM
Hi Deepak,
Thank you for taking the time and replying.
Let say, I need to look for the following area codes followed by Nxx numbers.
(819) 298, 407, 589, 608
The area code is 819 and the Nxx is 298, 407, 589 and 608.
Is the following config valid?
Set area_code = calling_number.substring(0,6)
I need to look for the first 6 digits of the calling number (ANI).
Thanks,
MK
07-18-2016 10:31 AM
Yes, this is absolutely correct in that case MK. So the idea here is to start picking from first digit till the 6th one.
Regards
Deepak
07-18-2016 07:18 PM
Thanks Deepak,
Will put together the script and test it and will update the forum with the correct answer.
I really appreciate your help.
Thanks,
MK
08-27-2016 07:12 PM
09-01-2016 07:02 AM
Hi Deepak,
Any idea?
Thanks,
MK
09-01-2016 10:00 AM
MK, I am slightly busy these days with few of my assignments and had not been able to look into this issue. I will probably try this out over the weekend and update you then.
Regards
Deepak
09-01-2016 11:18 AM
Thanks Deepak,
Regards,
MK
09-15-2016 04:16 AM
HI Deepak,
I know you're so busy. Just wanted to know if you can update this case.
Regards,
MK
07-18-2016 10:06 AM
Hello MK,
Attached to this post is a zip folder containing the sample script and xml file to do ANI based routing which I created for a customer few months back. In this particular script, I have taken example of 3 area codes per CSQ but you can do 1:1 mapping or any other way you like. Also, you will need to use the substring method to choose the first three or four digits depending on the requirement of the calling number as area code.
Regards
Deepak
07-22-2016 12:25 PM
I thought I would piggy back off this topic since my issue kind of relates to the same I actually have my setup the same and it works however I wanted to see is there a way I can have it route to certain agents?
i.e. I want to match area code 100 for calls that go to Test_CSQ and route those calls to specific agents or if possible specific agents assigned to a team. All other calls can process normal to other agents.
Doesnt seem like I can use the Get Reproting Statisic on this one. any ideas to make this work greatly appreciated.
07-22-2016 12:37 PM
Well I think that should be possible but there will be lot of combinations we will need to play with (Once I will get to work can probably test it out and see if this can be accomplished). If the requirement is to send the call to specific agents then why don't you simply create a CSQ containing those specific agents and do it that way.
What comes to top of my mind right now is that you can probably select No in the Connected properties of Select Resource step and then insert Connect step and use Get User Info step in that branch to locate the available user ID and then use an if condition that if it matches agent X route the call then else take some other action.
Regards
Deepak
07-22-2016 02:09 PM
Deepak that would be simple to have them in a certain queue but that would conflict with reporting as well as we want to have ability no matter the campaign queue go to these certain agents and anyone else calling from other area codes rings other agents. This way reporting is still in tact and those calls flag by area code go to agents we want them to go to.
Thanks for the help
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide