Tutorials, dial plan examples, voice grammars and tools
You need to register to post on Forums - "Register" link in the upper right corner of this page.
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 should not contain extension and priority information. For example, if you type the following code in Custom Code component:
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.

You may also check the Include functionality if you want to include already developed dial plan.
Post new comment
HTML tags are not allowed inside posts.