1. DumpChan - this application allows you to dump an information about the calling channel
NOTE: This application is valid for Asterisk version 1.2.0 and above.
Syntax:
DumpChan(verbose)
List of the possible options
verbose - specify the minimum level of verbosity. Please pay attention - if you set this parameter then the information about the calling channel will be shown on the Asterisk console only if the set level of verbosity is equal to the one you specify as parameter of the application
Purpose and usage
The purpose of this application is to dump information about the calling channel. You could see this information on the Asterisk console. The dump includes information about the channel and a complete list of all the channel variables.
So, this application could be useful for debugging.
To see how this application works, we recommend you to use our IAX softphone - Idefisk. You could download it from here. Please, take a look also at our tutorial - to learn how to configure it to work with Asterisk PBX.
Asterisk PBX configurations
NOTE: This is an example of what for you could use the application.
iax.conf Configurations
We need one registered user in the iax.conf file (we are going to use the IAX2 protocol). If you want to use other protocol such as SIP or MGCP, you have to do the configurations below respectively in the sip.conf or mgcp.conf.
So, we have registered the user idefisk
Type=friend means that this user is allowed to make and receive calls. Host=dynamic means that the IP is not statically assigned but dynamically through DHCP server. Allow=all means that the line, which this user will use, could support all audio codecs. Context=test - this shows that the user will be allowed to work only with the extensions in this context in the configuration file extensions.conf.
On the picture above you could see our test extensions.conf file.
So we have and extension 100, which we will use for the test.
First we use the Answer application to answer the channel.
Then it is time for the DumpChan application. We will set it without arguments. In this way the dump information will be always shown on the Asterisk console, independently of the set level of verbosity. If we set as argument for example 4 the information will be shown if only the level of verbosity is changed to 4. You could see an example for the dumped information on the screenshot below in section 2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX. As you could see the application is useful for debugging because it shows you all the channel variables.
The third used application is Echo. It is used just for the test. ou could use whatever you want on its place.
Finally, in order to be sure that the Asterisk PBX will hang up the line, when the conversation is over, it is a good idea to make an extension for hanging up the line using the Hangup application.
2. Screenshots of what you can see on your Idefisk and on the CLI of the Asterisk PBX
3. Additional information
More information about the extensions.conf file you could find here.
For more information about the iax.conf file, check here.
The application is tested with our IAX softphone Idefisk. You could download it from here. A manual about this softphone could be found here.
If you would like to test the application with the SIP channel you could take a look at our tutorials about the SIP Softphones, where you could pick up the one which suits your needs and learn how to configure it to work with the Asterisk PBX