[asterisk-users] Context documentation for the newbie!

C F shmaltz at gmail.com
Thu May 31 16:20:06 MST 2007


I can give the following example, let me know if it helps.

Mr 1 has a child Mr 10 and another child Mr 11, now Mr 10 has Mr 100
and Mr 11 has Mr 111. Mr 10 adopts Mr 111. Also Mr 88 adopts Mr 10.
Which brings us to the family tree, if you are a child of one, you are
a grandchild of that ones parent, and as such included in that tree.
Now one of the children could be adopted by some other parent as well,
which makes that child a child of another parent hence a grandchild of
that parents parent.

Subistute child and adopt for include =>, and Mr for context so you got:

[1]
include => 10
include => 11

[10]
include => 100
include => 111

[11]
include => 111

[88]
include => 10

Within each context you got the instruction code, which is an
extension (exten) prioritized with numbers (or n for next number). The
instructions are executed one after the other, unless a jump is
encountered. Each extension is a pointer within that context that
starts the instruction set.
In Asterisk one starts in a context, when an extension is called (by
dialing, or s when the extension number wasn't given) Asterisk looks
for that extension in that context, if it can't find it there it
searches in that contexts family tree, if still no match it searches
in default context, if still no match it searches for the i extension
in the same order, if still no match then 404 is given.

Hope this helps.

On 5/31/07, BSumrall <Brads at ftnco.com> wrote:
>
>
>
>
> Does anyone know where there is better documentation on understanding
> context relations and priorities "with examples"?
>
>
>
> http://www.voip-info.org/wiki/index.php?page=Asterisk+Dialplan+Introduction
>
>
>
> Does tell me anything other than they point to each other. Not how or who
> comes first or even how to get them to work with each other!
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
>


More information about the asterisk-users mailing list