Call Routing DSL
This page details a feature under development which cannot be found in any released version of Adhearsion. We find documenting sophisticated features before their implementation helps the design process of those features. Material here can and will change.
What is the Call Routing DSL?
The call routing DSL is a way of expressing how numbers should route to a desired endpoint. Too often dialplans implement call routing monolithically with a command that looks like the following:
dial "SIP/14445556666@vonage"
This carries with it a few assumptions:
- SIP will be the transport mechanism
- The SIP peer expects the e164 phone number to begin with a 1
- The "vonage" peer is properly defined within sip.conf and is accessible via IP to the telephony engine
- Necessary failover logic, if any, will be implemented separately and manually (carrying its own similar assumptions)
Because Adhearsion aims to empower the distribution of voice applications, we feel it is essential to de-couple this routing logic into something like this:
dial 1_444_555_6666
This will allow any executer of this dialplan to properly route the phone number, provided the necessary call routes have been defined.
Defining Call Routes
This page is still a stub. I'll flesh it out as I have time.