How To | Using the Softphone Call Status Progress field to set a state with Block Controller

Learn how to effectively set a state using the Softphone Call Status Progress field using Block Controller.

Updated at April 24th, 2024

Procedure


Some systems may require a state set based on the call status of the Softphone component. This can be used for UCI Layer control or other control uses.  

The example below shows how to do this with Block Controller.

  1.  Set the Softphone Status/Control Component Script Access to either All or Script (you may use a custom name or the default name). 
  2. Drag the Block Controller into the design.
  3. Add a control to the Block Controller.
  4. Set the control to Indicator.
  5. Set the type to LED.
  6. Set the count to 2.
  7. Name the LED “LED”.
  8. Add a control to the Block Controller.
  9. Set the control to Text Box.
  10. Set the count to 2.
  11. Name the Text Box  “Dial String”.
  12. Open the block editor. Use the example below to set the controls.

  1. When a call comes in or out,  enter a string in the Dial Sting field to have the Block Controller set the LED to true.  
  2. Expose the LED pin to have to control other Boolean components control input(s). 

Note

This example has 2 dial string fields in the same functions. You can add more if needed.