Genesys Cloud - Main

 View Only

Discussion Thread View
Expand all | Collapse all

How to determine if an incoming call is local vs International

  • 1.  How to determine if an incoming call is local vs International

    Posted 05-18-2017 18:49

    Hi, 

     

    We are in the process of creating a robust in-queue call flow that offers the caller the ability to schedule a call back if no agents are available within a certain time. 

     

    We want to however offer the callback feature only after we have determined that the caller is calling using a local number. To do this we need to check when the call comes in if it is a local number vs a international number and then present the correct call flow steps afterwards. 

     

    Has anyone created a call flow/logical flow that is able to easily determine where the incoming phone call is originating from potentially by using the ANI?  



  • 2.  RE: How to determine if an incoming call is local vs International

    GENESYS
    Posted 05-18-2017 20:41

    The format for ANI is normally going to be in the format tel:+[countrycode][areacode][phonenumber]. For example, tel:+13178723000.

     

    So, you could us a Decision action in a task in Architect to test the first few characters of the ANI and see if they match your local country code, and offer the callback if they do, not offer the callback if they don't.

     

    It gets a bit more difficult if your country code has the same leading digit as another country code (like +1, which is North America and includes places like Barbados and Guam and Bermuda, etc.) You have to get creative and test to see if the leading string == "tel:+1" and the next 3 digits not in the list of area codes outside the U.S., or whatever.

     

    All of that would be done in the Expression Editor for the Decision action.



  • 3.  RE: How to determine if an incoming call is local vs International

    Posted 05-19-2017 17:18

    Thank you!



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources