Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

11 patterns - asterisk tutorials

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
1,301
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 12, 2011

I introduce two things. One thing that has nothing to do with patterns but makes using patterns in the scenario I give very practical. It is the Extension variable.
Syntax of extension variable: ${EXTEN}
As you write the script you can use the ${EXTEN} variable in the function side, and at run time (when in call), it will be replaced by the number that is dialed. Again, whatever number is dialed, it becomes the Extension variable.

So now essentially all your lines for you extension configuration are going to pretty much look the same, except for the number dialed. So how can this be compressed (for lack of a better word). Through a pattern. Instead of defining each and every phone number that can be possibly dialed, define a pattern that can represent hundreds, thousands, or millions of extensions/phone numbers. You can see why this is necessary to implement in the real world.

See http://www.the-asterisk-book.com/ for a good guide on how to write patterns.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (3)

Sign In or Sign Up now to post a comment!
  • I learned so much from your tutorial. You are very good at explaining concepts in a simple easy to understand manner. Thank you and keep the videos coming.

  • Hi Manni I learned a bit using your videos can you please do a video for adding VOIP in them and if one extension for example 1000 wants to call an outside number or call my mobile. Thanks

  • Kuddos for you manni, very nice and clean. keep up that good work!

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more