Learn to Write Your Own Asterisk VOIP Dialplans and Queues

Learn how to read and write your own Asterisk dialplan configurations for auto attendant menus and call center queues
4.5 (32 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
454 students enrolled
40% off
Take This Course
  • Lectures 30
  • Length 4 hours
  • Skill Level Intermediate Level
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 8/2015 English

Course Description

  • Do you want to learn how to read and write your own Asterisk dialplans?
  • Have you been trying to build your own Asterisk auto attendant but don't know where to start?
  • Do you want to create your own custom recordings for auto attendant greetings?
  • Do you want to setup a call center queue with dynamic agents?
  • Are you looking to configure ACD (automatic call distribution) for your inbound phone calls?

Learn how to tackle all of these configuration items and more by taking this advanced Asterisk course. During the course you will learn details about how create your own auto attendant and adding different digit options to route calls within your Asterisk phone system.

Go from an Asterisk beginner to an expert and write all your own unique dialplan code. I will show you how to write dialplans and make test phones calls showing you the result of the changes made.

If you want to learn by doing then you need to take this course to learn how to use the different Asterisk applications to create a truly unique dial plan for you or your clients.

To take the course you should have a working Asterisk or AstLinux system so you can go in and write your own dialplan to follow along with the lessons.

What are the requirements?

  • You should have taken the course Asterisk Made Easy or know how to install an Asterisk or AstLinux system.

What am I going to get from this course?

  • Write your own configuration files for Asterisk from scratch.
  • Customize configuration files for systems like AsteriskNow or FreePBX.
  • Fully understand how Asterisk extensions.conf works so you can read and edit it.
  • Setup your own call center using Asterisk queues.conf to route calls in an ACD (automated call distribution) format to available agents.
  • Configure custom caller ID names to help identify where phone calls are coming from for better handling of phone calls.

Who is the target audience?

  • Students should have an installed Asterisk or AstLinux system installed.
  • If you do not have any experience with Asterisk I recommend starting with my Udemy beginners course called "Asterisk Made Easy."

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Getting Started: How to Write Asterisk Dialplans

Welcome to the course lets talk about how to get the most value out of the course.


If you do not have a working Asterisk system, stop taking this course and head over my other course Asterisk Made Easy. In this lecture we will make copies of the configuration files we will be editing so you have backups of your original files.


In this lesson we will download and extract the extra audio files you can get for Asterisk. These sounds include different greetings and prompts I will be using while creating a more advanced dialplan.


Configure a SIP endpoint like X-lite or a physical SIP phone. Once that is registered we will make a test phone call to the sample extension of 0000. As long as that works it is time to create a first customization.


See how to create a custom greeting or recording by dialing into the Asterisk server.

2 questions

We will review a few topics from the first section.

Section 2: How to create an auto attendant or virtual receptionist to answer inbound calls

Learn how to route inbound phone calls based on the phone number dialed by the caller.


Learn how to use the goto command and see how to setup the initial settings for your first auto attendant.


In this lecture you will see how to get the auto attendant to route phone calls to different phones within the Asterisk phone system. This includes sending phone calls to a ring group which will ring muiltiple phones at the same time. You will also learn how to create your users voicemail configuration file.


Here you will see how you can set a custom caller ID name with any phone call using the set command. This is a powerful tool to give users the understanding of where that call came from. Then lets try entering an invalid menu option to see what happens. You will learn how to handle these invalid option attempts in a professional manaer.


Provide callers with the option of entering a user directory where a caller can search the directory in order to call a person they do not have an extension number for. This lecture will walk you through all the options you need to configure for this to work.


Learn how to use the dynamic capabilities of Asterisk to create a direct extension dialing option from your auto attendant.


Here you will see how to create an additional sub menu or also referred to as a nested menu. Common uses for this is to setup support menu structures where you are supporting different products like Windows, Mac and Linux.


This is an example of an after hours call handling context which will ring the internal phones. Then send the call out to a users cell phone number and in the event they do not answer the call will be pulled back to be routed into the systems group voice mailbox.


In this lesson you will see how to configure time of day routing so you can have the system automaticly route calls depending on what day/time the caller place the phone call.


See how you can test how the system will handle external phone numbers by dialing from an internal extension.


Let's review how the auto attendant and context's work within the Asterisk dialplan.

4 questions

Let's see how much you remeber about building an auto attendant.

Section 3: Writing Asterisk dialplan configurations using different syntax formats

Learn how to write the same dialplan using different forms of syntax. This will be used interchangably during the course.


Follow along with this lesson to understand the different ways of writing the same dialplan extension.

Section 4: Submit a review of this course on the Udemy marketplace

I really appreciate if students write a review of the course so it lets me know how I am doing and if future students should take the course.

Section 5: How to setup a call center for automatic call distribution with agents

Let's talk about call centers and how they operate with queues, agents and supervisors.


Here is where we will start to configure a call center queue by using the queues.conf configuration file.


The queue will answer the call and playback hold music while the caller is waiting to be answered by the agent.


I will show you how to configure your smartphone to be a SIP endpoint and answer phone calls from your Asterisk PBX.


See how you can allow users or agents to login to queues dynamically when they are avaiable.


We need to make a change to sip.conf to make sure agents states show up as currently in use if they are already on a phone call. That way agents will not be interrupted while they are already on a phone call.


Learn how to configure the chanspy command to allow supervisors to listen in on agents while they are on a phone call without their knowledge.

3 questions

This quiz will test your knowledge of the latest section on call centers.

Section 6: How to setup a conference bridge using Asterisk

In this lesson you will learn how to add a conference room to your dialplan for internal callers or external callers can acess it using the auto attendant you built earlier.

Section 7: Advanced Time of Day Call Routing for Holidays and Weird Schedules

Do you want to setup your holiday schedule at the beginning of the year so you don't have to worry about making last minute changes? Go ahead and follow this lesson to learn more about configuring your dial plan to adjust its self based on the holiday or some unique schedule your clients uses.

Section 8: Enable Night Mode on Your Asterisk PBX

In this lesson I will show you how to configure a PBX to use night mode instead of time of day routing. This is a great solution for clients who are used to legacy PBX's that had a button to turn night mode on at the end of the day. Using Asterisk and dial plans you can allow users to dial in from anywhere to enable the after hours mode.

Section 9: Go out and push the limits of Asterisk

Now that you have a good start with how to write your own dialplans keep going and push the limits of what Asterisk can do.

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Jon Manning, VOIP, SIP and Asterisk Expert, Technical Sales Professional

I started supporting call centers 14 years ago and at the time I had no experience with phone systems. Eventually I learned them inside out and started using Asterisk and Linux to reduce costs. I discovered how versatile and robust Asterisk was so I expanded by client base to sell business phone systems.

After 14 years I have turned to focus my efforts on training how to build and sell phone systems. My instruction is very actionable, I want students to take the knowledge they gain and start using it to make money or do what they choose to do with it. You will find my teaching style is well liked by my students and they are always looking for new and exciting courses from me. Just take a look at some of the reviews I have received below.

"I am by far loving your course. Please make more and more videos on Asterisk Server; I shall purchase all of them." - Ganesh Dhungana

"Excellent Instructor, Jon, is great... Hopefully he will produce additional classes. I would take them immediately. Thank you JON !!" - David Jordan

"Excellent!!, Jon has done a great job in walking me through carefully and showing typical errors and gotchas along the way." - Bill Adams

"Interested in providing VOIP services? Take this course, Even if you plan to use FreePBX or another GUI interface for your VOIP service, learning Asterisk and Linux will give you a better understanding of what's going on under the hood of your PBX. Jon Manning gives great step by step instructions and clear explanations of what you need to do to provision SIP phones and legacy phone equipment." - Martin Fields

"Actionable knowledge, not just pure information, communicated with great professionalism, The lessons in this course go way beyond pure information. Jon (the instructor) knows his stuff inside out, and more significantly, he knows how to pass his knowledge clearly so that I can take action on it right away." - Michael Choke

"The best course for who want to enter to the Asterisk and Linux field, This course has been designed by professional instructor who has a lot of information so for beginner you just follow the lessons as i did, now i have a good knowledge about Asterisk runs on Linux how run the Asterisk operations. Also the instructor provide his email to contact him for any question that is really awesome, i liked this course and it worth the payment." - Saifaldeen ALBUSULTAN

Ready to start learning?
Take This Course