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

big grin confused cool cry eek evil exclaim frown idea lol mad mr green neutral question razz redface rolleyes sad smile surprised twisted wink arrow santa




Anti-Bot verification code: Random Image
Enter the code you see above:
Post new comment

Open Posting comments
Use [http://www.foo.com] or [http://www.foo.com|Description] for links.
HTML tags are not allowed inside posts.