[asterisk-users] Context documentation for the newbie!
Mats Karlsson
mats.o.karlsson at gmail.com
Fri Jun 1 01:32:09 MST 2007
Bsumrall,
Take a look on this document,
http://bef.eventphone.de/a/Ast.%20C.%20I._files/ast-ci-draft1.pdf
/Mats
On 6/1/07, C F <shmaltz at gmail.com> wrote:
>
> 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
> >
> >
> _______________________________________________
> --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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070601/164bc999/attachment.htm
More information about the asterisk-users
mailing list