Question: Does exotel have "origin based routing" feature to route call according to origination point? Origin based routing is a feature where toll free number trace call origin area code even  you call from mobile and route call as per rule

 Origin based routing works is like this:

If a person calls from Tamil Nadu - Send the call to my agents in Chennai (or a group) who can speak Tamil. If it is from Maharashtra - Send it to Mumbai (Or people who can speak Marathi). 

Point to note:

At this point, it is not possible to identify origin area smaller than a telecom circle. That is - Using our APIs, it is not possible to identify if the caller is from Pune or Nagpur. All we know is - Both of them are from Maharasthra. 

Origin based routing is not available off-the-shelf, but it is possible to create this routing policy by using our APIs. You will also need "App builder" for this solution.

  • Add the names & numbers of people as users in your exotel account.
  • Introduce a Connect applet in your call flow app and point it to a URL on your server like this. Read Passthru applet specs to understand what information gets passed on to your server and how.

  • Once the call arrives on your server, Use the Phone number metadata API to identify the circle information. 
  • Based on the circle, return back comma separated list of numbers to dial. For this - You will have to maintain a list of numbers and the circle group they belong to in a database on your side.
  • Exotel does not maintain the state of these numbers. That is - If another call comes and if you script decides to send the call to the same set of numbers, exotel will dial them and if the destination party has call waiting enabled, the caller will hear "The person you are trying to reach is on another call" etc. So - User & user's state management is left to you to handle.
  • If you do not have people to write code, Consider Phone a friend

This completes Geo based routing or Origin based routing with Exotel!