glossary ddi-extensions

When specifying a destination phone number in the Barritel API, if appropriate you may also append an extension to it. When the call is answered, the DTMF tones for the extension digits will be sent before the caller is connected.

This can be useful, for example, if the destination number has an IVR menu inviting the caller to enter an option or their required extension and you want the system to automatically navigate through that menu in order to direct the call to a specific extension or department and connect to a human.

To define an extension, put the extension digits after a comma or a p at the end of the phone number.

Additional commas and/or "p"s can be put amongst digits of the extension in order to create additional pauses between the DTMF tones sent. A comma represents a pause of 2 seconds, a "p" represents a pause of 0.5 seconds. Longer pauses can be defined by simply including more commas or "p"s, or both.

Phone number as specified Resultant behaviour
02079460123,12
or
+442079460123,12
or
+442079460123;ext=12
  • dial 02079460123
  • wait for answer
  • send DTMF "12"
  • connect caller
02079460123,1,,2
or
+442079460123,1,,2
or
+442079460123;ext=1,,2
  • Dial 02079460123
  • wait for answer
  • send DTMF "1"
  • pause 4 seconds
  • send DTMF "2"
  • connect caller
02079460123,14,p2pp3
or
+442079460123,14,p2pp3
or
+442079460123;ext=14,p2pp3
  • Dial 02079460123
  • wait for answer
  • send DTMF "14"
  • pause 2.5 seconds
  • send DTMF "2"
  • pause 1 second
  • send DTMF "3"
  • connect caller