2016-06-29

Following on from last week’s introduction to Asterisk Call Files, it is time to take our call files to the next level. That of course means building on last week’s tutorial where we explained a basic call file use case and making our example more advanced.

Advanced Asterisk Call Files

In last week’s post, we talked about a few possible use cases for call files and demonstrated how to create a call file for alarming purposes. We also mentioned that call files can be used for batch calling purposes – and that is the focus of todays tutorial. Before we get started, here is just a quick reminder not to configure your call files in the spool directory, but rather somewhere else and then copy them to the spool directory as and when they are needed.

Once again we have taken an example from voip-info.org which we will then modify to suit our purposes:

Zap refers to the interface to connect to various telephony hardware (ISDN or analog devices) and has since been replaced by DAHDI (Digium Asterisk Hardware Device Interface). However, as we are focused primarily on SIP, we can simply change this to SIP as shown below:

Once initiated, the above call file configuration will connect the channel SIP/james to the context phones in which it will search for the extension number. In our case, the extension number is 100, as that happens to be Mathias’ extension number. In short, the above call file will result in the Asterisk phone system will call James who will then call Mathias.

MaxRetries relates to the number of times the Asterisk phone system will try to call the SIP peer James, so the channel not be answered. The RetryTime relates to the length of time the phone system should for the peer to answer and the WaitTime relates to the length of time the phone system should wait before trying again.

That’s it, your call file is ready. The above may not seem like much, but should you wish to make your call files even more professional, you need only develop a sort of load balancing mechanism which will copy a certain number of files per minute. Next you can simply combine your call files with specific scripts that you have configured in your contexts which will likely be a queue with numerous agents. Lastly, add some CDR records to each of the calls, you will also be able to produce a historical overview of your calling history – which calls were answered, which need to be called again etc etc – and you have a particularly useful dialling tool.

Please don’t spam us!

VoIP Guys on Ideascale

If you have an Asterisk phone system question and would like us to do a tutorial on it, then let us know on Ideascale:

pascom.ideascale.com

More Info

pascom are the developers of the enterprise grade mobydick VoIP phone system software. As an open standards IP PBX, mobydick offers a cost effective alternative to proprietary solutions which provides businesses with a fully featured Unified Communications solution to boost productivity, increase mobility and reduce costs.

For more on our mobydick phone system or to arrange a personalised demo, give us a call on +49 991 29691 200 / +44 203 1379 964. Alternatively, contact us via our website or take mobydick for a test spin with our free community download and find out how your business can benefit.

Until next time – Happy VoIPing!

Previous Tutorial

The post Asterisk Tutorial 54 – Call Files Part 2 appeared first on pascom - our blog.

Show more