All posts by dtAdmin

Release 3 available on Beta

We are pleased to announce the availability of Dynamics Telephony on Beta controlled release. This version has the following changes/enhancements:

  • Uses the Chrome browser engine for increased performance and a more responsive user interface.
  • Improved user experience pops a new Window for each new call, instead of a new Tab
  • Popped out windows are all telephony enabled.

Installation Notes

For this Beta release, be sure to set “Use Tabs” and “Close on Idle” OFF per this snap:use_tabs_setting

Dynamics Telephony and Sales Orders

Dynamics Telephony is perfect if you use CRM Orders, where it can pop Orders (if there are any open for the caller) or pop the callers Contact record. Furthermore, the phonecall activities are logged against the Order as appropriate.

How to get Dynamics Telephony to pop an Order based on the callers phone number

Orders have two phone numbers (Bill To Phone Number and Ship To Phone Number) you can use to match against the incoming call. Or, you can add a custom phone number field for Dynamics Telephony to search.

Remember, Dynamics Telephony can be set to search multiple fields in an entity

TIP: Set a condition that the Order must be open (status=active) for the phone number to be populated. In this way, only open Orders will match and pop.

In the custom entity dialerKVtable, add an entry for each phone number field you want to search..
type: phone
Value: new_phone1 – the name of phone number field
scope: global
Parent: <blank>
Name: incomingLookup_salesorder
Key: 1 – the order of lookup in this entity

Also in dialerKVtable entity, add another two entries as follows for the primary text to display
Key: salesorder
Name: entityPrimaryNames
Parent: AppSettings
Scope: global
Type: string
Value: name – *

Key: name – *
Name: incomingLookup_order
Parent: <blank>
Scope: global
Type: name
Value: name – *

NOTE: The above will display the Name of the Order. You might prefer to create another custom field on the Order that combines customer name and Name. This will be useful for multi-match. It must be a string custom field. Replace “name” above with your custom field name (3 places marked *)

In Dynamics Telephony settings > Inbound set..
Lookup entities: salesorder

TIP: If you set above to “contact, salesorder” then Dynamics Telephony will pop the Contact if there are no open Orders. However, if there is one open Order you will get a multi-match to choose between the Order and the Contact. In the multi-match dialog, the Contact will show at the top of the list.

How to move items from one queue to another

You can move items from one CRM Queue to another. You might want to do this to have a different user or team work on the items. In Dynamics CRM this is called “Routing” an item to another queue.

Steps

1. Run an Advanced Find to locate the queue items you want to move.

2. Select all the items

3. On the Ribbon, click “Route”

4. Select the queue you want to route the items to and click “Route”

crm_queueitems_routing

How to add a queue to CRM

Queues are a standard feature in CRM. Dynamics Telephony can monitor a CRM queue, or queues, and pop any “Queue Items” out for a user to autodial.

Follow these steps to set up a Dynamics CRM Queue

1. Go to CRM > Settings > Business Management > Queues

crm_queues

2. Click the ” + New ” button

3. Enter the new queue Name.

crm_queue_settings

4. Set the queue as Private (where you can control who is a member), or Public (where everyone has access)

5. Save.

Now you can set the membership per this article

 

Asterisk Queue-names Integration

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:
asterisk_queue_CID_prefix

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.
dnis_setup

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”}

Dynamic Dial Prefix

Dynamics Telephony can apply a special prefix on a per call basis to dialed calls. This helps solve the following use cases:

  • You want to make calls to customers using a special Callers Number (CLID) – e.g. to reflect your various Brands or Programs
  • You want to make calls to customers using a Callers Number (CLID) that is local to the customer – so they see it as a call from their region.
  • You want to make sure that if customers miss your call, they can return your call to the right number.
  • You want to make certain calls withholding your Callers Number (CLID)
  • You need to prefix calls so they are billed to a specific department, project or customer.

Setting it up

  1. Have your PBX or Phone Company set the CLID based on a dial prefix. This is available from most PBXs and phone companies. Essentially it involves setting up an outbound route for each CLID you want, and the route has it’s own prefix or access code.  This can include a special prefix or access code for a route that will withhold your Callers Number.
  2. Set up Dynamics Telephony to dynamically assign a dial prefix. this is covered in the following notes.

Default Dial Prefix
The Dynamics Telephony setting “Provider Configuration > External Dial Prefix” is used as the default dial prefix. This will be used if a prefix has not been determined by the rules set out below.

Per Customer Dial Prefix
This is achieved by setting a value in the customer record that can be mapped to a prefix to use.
For example, you might have a optionset that you set (perhaps using a workflow) to a value like North, South, East or West. Then, in Dynamics Telephony, you configure North to use prefix “60”, South to use “61”, etc.

Prefix Map in DialerKV table
You set up the prefix mappings in Dynamics Telephony CRM entity, DialerKVTable. You can setup as many as you need, as follows:

name: Dynamic_Prefix

key: entity_name.field_name=value, e.g. contact.new_region=north. You can also specify to use a fixed prefix for an entity like this: incident.fixedprefix=fixedprefix.
Supported fields are text, numbers and optionsets. For optionsets, the value is the numeric value of the chosen item, not the item text.

type: <leave blank>

value: the_prefix_to_use, e.g. 63. You can also use a single lowercase p to specify the user should be prompted to pick the prefix from a list (see below)

scope: global

TIP: If you are using click-to-dial on a phone number that is displayed in a lead or case, but defined in some other entity (like account or contact), then the field to map the prefix is in the displayed entity (i.e. lead or case)

TIP: For outbound dialer campaigns, the entity is always a phonecall. Prompting is not supported on outbound dialer campaigns. So make sure you have a field on the phonecall that maps to a prefix.

Prefix prompt list
If the value specified above is p, or if there is a key defined for an entity but the current record does not match, then the user is prompted to pick the prefix from a list. The list is defined as a comma separated list of pairs, e.g. North:97,South:96. You define this list in settings > Provider Configuration : Dial Prefix Prompts.

Dynamic Dial Prefix

Phone Book & Prefixes
Generally, the default prefix will be added automatically when dialing a number from Phonebook. To prevent this and apply a different prefix, use the following notation: “69;6125551212”. This notation is to tell Dynamics Telephony that a prefix has already been applied and not to apply the default one.

Operation

For calling in anonymous mode, you would probably use a phonebook entry

For calling customers using the prefix, you must use click-to-dial in the entity configured in DialerKVTable.key above

Dialing from the dialbox, and normal phonebook entries, will use the default Dial Prefix. You can dial from the dialbox, or phonebook entries, with prefix if the number includes the prefix in semi-colon format discussed above – e.g. “69;6125551212”.

Role secured features

You probably want to restrict what settings and controls normal users can see in Dynamics Telephony.

To do this, you must add some security roles in CRM as detailed below. If you do not add these roles and assign them to certain users, then all users will have full access.

Dynamics Telephony uses 2 CRM roles to enable security features.

roles_for_dt

NOTE: These roles just need to exist. They do not need any permissions assigned.

ROLE: Dynamics Telephony Admin, when assigned to a CRM user will enable the “Admin Only Access” settings area for that user. Use this area to restrict other CRM users from seeing various settings.

settings_access

 

For full lockdown you might restrict all but Log File and  Provider Account (to allow telephony re-configuration)

This Role also enables Developer Tools on Dynamics Telephony windows to give you access to JavaScript Developer Tools. Note, this menu item is not available on the first Dynamics Telephony window to open.

developer_tools

 

ROLE:Dynamics Telephony Uninstall, when assigned to a CRM user will enable the “Uninstall” button in Dynamics Telephony for that user. “Uninstall” will completely remove the Dynamics Telephony Solution from CRM.

The best is not to assign this role to any user until you need it.

Why queueitems don’t come through

Dynamics Telephony checks for a new queue-item after every call and then every 30 seconds. Here are reasons why this will not happen.

You are not “Available”

Your user status should be green. In some cases orange is OK too. But you should definitely not be red. (the text will vary depending on your phone system, but the color is the key)

agent_status_loginout_notready

 

NOTE: Your phone system may put you in “Red” after a call. Disable this if you can.

 

 

You are “Paused”

paused

You are put into “Pause” state if you have not selected an outcome by the end of “Wrap” time.

To get out of “Pause”, click the “Play” button. You may have to select and outcome and also wait until the end of Wrap time (or “Skip” the Wrap time.

pause_play_skip

You are still on a call

If you see flashing, or red or orange on a call tab, then check that tab to see it is IDLE

call_tab_status_color

Your queue is OFF

If you turn your queue ON/OFF, then be sure it is ON. Click where it says ON/OFF to change. If this is a shared queue, then other users will take about a minute to change too.

queue_ON_OFF

 

 

 

Jive Settings

You need to get your username and password for Jive. The username is a long cryptic string like 4rty56wedkjfh74kf47ASdffd65855QER

The following table highlights the specific settings you should apply in Dynamics Telephony:

Dynamics Telephony Tab Dynamics Telephony Setting Value Comment
Provider
Configuration
DTMF Mode DM_Inband
Expires 180
Stun Server e.g. stun.soho66.com A public STUN server
Provider
Account
Username e.g. 4rty56wedkjfh74kf47ASdffd65855QER SIP/Authorization ID
Password SIP Password
Host Name E.g. reg.jiveip.net SIP Registrar
Auth Username e.g.
4rty56wedkjfh74kf47ASdffd65855QER
Same as username above
Domain Name * A single
asterisk ‘ * ‘
Proxy address e.g.
your_domain.jive.rtcfront.net
Proxy for outbound on Jive. Your domain is the domain your company registered with Jive
Transport Mode TM_UDP

 

Custom Phone Number Fields

Dynamics Telephony can search your custom phone number fields for a match, and screen pop,  when your customers call you. This also applies if you add a phone number to an entity that does not normally have a phone number – e.g. a case or opportunity. See here for more on these.

To add a custom field to Dynamics Telephony settings for searching, add a diallerKVTable record as shown:

 

custom_phone_number_search_kv

name: refers to the entity being searched. Use one of incomingLookup_lead,
incomingLookup_contact,
incomingLookup_account,
incomingLookup_incident or
incomingLookup_opportunity.

type: phone

key: refers to the search order. So use 1, 2, 3, 4, etc. All matches are returned so just make sure it is unique for the entity

value: the name of the field to search. Standard fields might be telephone1, telephone2 etc. A custom field might be new_ph_number

scope: global

parent: leave empty