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.
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.
- Set the Softphone Status/Control Component Script Access to either All or Script (you may use a custom name or the default name).
- Drag the Block Controller into the design.
- Add a control to the Block Controller.
- Set the control to Indicator.
- Set the type to LED.
- Set the count to 2.
- Name the LED “LED”.
- Add a control to the Block Controller.
- Set the control to Text Box.
- Set the count to 2.
- Name the Text Box “Dial String”.
- Open the block editor. Use the example below to set the controls.
- 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.
- 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.