In this tutorial we will introduce to you the functions which you could use in extensions.conf.
NOTE: These functions are valid for the Asterisk version 1.2. and up.
They will replace some of the application from the previous Asterisk versions. With their help you will make your dialplan, control and manage your calls.
NOTE:Information about the functions could be obtained by typing the command show functions
Information about a particular function could be obtained by typing show function <function name> on the Asterisk CLI
These applications are tested with our IAX softphone Idefisk. You could download it from here. For more information about this softphone, please read our tutorial.
If you would like to test this application with the SIP channel you could read our tutorials about the SIP Softphones to learn how to configure them to work with Asterisk PBX
2. List of all dialplan functions
01. CUT - this function allows you to split the content of a variable by using a specified delimiter.
02. CALLERID(all) - this function allows you to set the ID of the caller.
03. CALLERID(name) - this function allows you to set the Name of the caller
04. CALLERID(num) - this function allows you to set the Number of the caller.
05. CALLERID(rdnis) - this function will allow you change the RDNIS number
06. LANGUAGE - this function allows you to change the used language.
07. TIMEOUT(absolute) - this function allows you to limit the duration of the conversation.
08. TIMEOUT(digit) - this function allows you to limit the time interval between digits when the user is typing an extension.
09. TIMEOUT(response) - this function allows you to limit the maximum time for waiting a response.
10. DB(get) - this function allows you to retrieve or store a value in the Asterisk’s database.
11. DB(put) - this function allows you to retrieve or store a value in the Asterisk’s database.
12. CDR(accountcode) - this function allows you to change the Account Code of the caller
13. MATH - this function allows you to perform simple mathematical operations.
14. CHECK_MD5 - this function allows you to compare two MD5 checksums
15. MD5 - this function allows you to calculate MD5 checksum on a string.
3. Additional information
If you are unfamiliar with the extensions.conf file, please read our tutorial about it, here.