Testing: Dialer

Testing

The simplest way to test is with the Postman API Tool

  1. Import the collection

  2. Add an Environment (for example Dev) and add the following Environment Variables:

    1. dialer: specify the http://url of the dialer instance you are using.

    2. campref: the campaign reference you want to use for these tests

      1. It's best to change this every run, so that the dialer doesn't keep state (retry timeout)

    3. extension: the agent extension you are going to use for testing

Apiary

The second options is to use Apiary, both postman and apiary are always up to date

Tips: 

  • All the Environment variables can be overridden in individual calls. 

  • everything can be altered as you wish. 

  • call_id is one URL Parameter that does not have an environment variable so that needs to be set in each call. 

    • The call_id is returned in the redis notification. (this is an unfortunate inconvenience for testing)

  • STOP and DELETE campaigns after running a test.