Custom Code component
This is very powerful component, it allows you to write traditional asterisk dial plan code and keep and maintain that code inside Visual Dialplan. This way you can reuse parts of your existing traditional dial plan or call Asterisk dial plan applications and functions that are not supported with Visual Dialplan.
In other words, if you can not find the component you need, you can use Custom Code component () and call Asterisk dial plan applications and functions directly.
Note that the dial plan code typed inside the Custom Code component may or may not contain extension and priority information. It depends on the component settings you choose.
For example, if you type the following code in Custom Code component and you check “Do not generate exten =>” check box:
NoOp(*** New call)
Macro(user-call,${EXTEN},${type})
AGI(authenticate_and_register)
MusicOnHold()
The resulting dial plan would be (in case you set extension ‘123’ in some of previous building blocks):
exten => 123,n,NoOp(*** New call)
exten => 123,n,Macro(user-call,${EXTEN},${type})
exten => 123,n,AGI(authenticate_and_register)
exten => 123,n,MusicOnHold()
This component can be very useful when moving your existing Asterisk dial plan, developed in a traditional way, to Visual Dialplan.