Dynamics Telephony can get and use the name of the Asterisk Queue that an inbound call came in on. Example use cases are:
- You want to pop a particular form based on the Queue-name
- You want to auto-populate the Queue-name into a custom field – e.g. in a phonecall, lead or case (incident)
- You want per-queue statistics in CRM
- You want to filter the customer search using Queue-name (e.g., if you have a queue per “brand”)
- You want to search one of multiple CRM instances based on queue name.
Setting up Asterisk to pass queue-name
You have to set up Asterisk so that the queue-name is passed to Dynamics Telephony. You do this by pre-pending the queue-name to the callers name. You do this with a pattern so that Dynamics Telephony can parse out the queue-name. The standard pattern Dynamics Telephony accepts from Asterisk is D:queuename:number, for example
D:Support:070989887889
However, you can use another pattern if you wish by changing the RegEx in Dynamics Telephony Settings > Provider Configuration: DNIS RegEx. For the above pattern, use DNIS RegEX D:(.+?):
For example, in freePbx, you set the prefix in Applications > Queues > [pick a queue] >General > CID Name Prefix = D:My Test Queue:
Setting up Dynamics Telephony to accept Queue-name
Dynamics Telephony will parse the queue-name, set up in above section, to a DNIS in Dynamics Telephony. DNIS stands for Dialed Number Identification Service. So it identifies the destination the caller reached. The queue in this case.
Set up a DNIS in Dynamics Telephony with the same DNIS and Label as the queue-name (case sensitive), as shown below.
NOTE: If the incoming queue-name does not have a matching DNIS definition, the incoming queue-name will still be saved in the DNIS field of the phonecall.
Now what can you do?
Some of these require use of the Dynamics Telephony API – See here for more
– The inbound call dialog will show the DNIS name when a call arrives via that queue. You can also have a per-DNIS color and logo.
– To pop a particular form, your JavaScript running in the originally popped form can query Dynamics Telephony via the API to get the DNIS and change the form.
– You can show a different script in the Dynamics Telephony Scripting Pane depending on the DNIS.
– To auto-populate a custom field, your JavaScript running in the originally popped form can query Dynamics Telephony via the API to get the DNIS and populate the field
– The Dynamics Telephony Entity for statistics (dialerCall) will now have the DNIS as a field
– You can auto-populate the phonecall Description field, or the auto-added Note, by using the placeholder <<dnis>> in Dynamics Telephony Settings > General : Phonecall Description or Other Party Note
– You can direct the CRM search on inbound call to a particular CRM by picking from the list in the DNIS configuration.
– You can filter inbound call search results to only those where queue-name matches any field in the entity. You set this in Dynamics Telephony Settings > Inbound > DNIS Filter, with a value something like {“entity”:”contact”, “attribute”:”new_brand_name”, “type”:”string”}