Re: [asterisk-users] Context documentation for the newbie!

2007-06-01 Thread Mats Karlsson

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 [EMAIL PROTECTED] 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 [EMAIL PROTECTED] 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

___
--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


Re: [asterisk-users] Context documentation for the newbie!

2007-05-31 Thread Mats Karlsson

http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11


On 5/31/07, BSumrall [EMAIL PROTECTED] 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


RE: [asterisk-users] Context documentation for the newbie!

2007-05-31 Thread BSumrall
First off, I wanted to thank you for referring me to the O'Reily pdf.

It has already helped a lot and now I know exactly where I am going wrong,
but still do not have an answer!

 

Almost every example on voip-info.org and O'Reily assume you are using an
FXO or FXS card.

I am 100% internet based.

 

It hit me like a rock that I need to understand why this affects the
channels differently.

 

O'Reily states:

[incoming]

exten = s,1,Answer( )

exten = s,2,Playback(hello-world)

exten = s,3,Hangup( )

If you have a channel or two configured, go ahead and try it out! Simply
make a new

extensions.conf file with this short dialplan. (If it doesn't work, check
the Asterisk

console for error messages, and make sure your channels are configured to
send

inbound calls to the [incoming] context.)

 

 

Go figure! I am 100% SIP based and zero IAX and I am assuming this effects
how asterisk looks a Zapata.conf?

 

So,  this would lead to the logical conclusion that if I do not configure
incoming in Zapata, I configure it on the teliax authentication portion of
sip.conf!

 

It still didn't work.

 

I can see my phone number coming in on the CLI, but zero transition into the
basic commands of extentions.conf

 

Teliax got the thing to work before. They simply stripped out everything and
put in what appeared to be the exact example on their web site.

 

I was playing around with extensions.conf only and now it doesn't work at
all and the conceptual theory doesn't seem to apply when dealing with 100%
only SIP vs. FXx

 

So, can anyone point me into the right direction on documentation on
understanding the differences of SIP vs. FXx?

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mats Karlsson
Sent: Thursday, May 31, 2007 5:35 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Context documentation for the newbie!

 

http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11



On 5/31/07, BSumrall [EMAIL PROTECTED] 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
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
___
--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


RE: [asterisk-users] Context documentation for the newbie!

2007-05-31 Thread BSumrall
Got it basically working, but still need answers as to why SIP is so much
different from FXx

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of BSumrall
Sent: Thursday, May 31, 2007 7:36 AM
To: asterisk-users@lists.digium.com
Subject: RE: [asterisk-users] Context documentation for the newbie!

 

First off, I wanted to thank you for referring me to the O'Reily pdf.

It has already helped a lot and now I know exactly where I am going wrong,
but still do not have an answer!

 

Almost every example on voip-info.org and O'Reily assume you are using an
FXO or FXS card.

I am 100% internet based.

 

It hit me like a rock that I need to understand why this affects the
channels differently.

 

O'Reily states:

[incoming]

exten = s,1,Answer( )

exten = s,2,Playback(hello-world)

exten = s,3,Hangup( )

If you have a channel or two configured, go ahead and try it out! Simply
make a new

extensions.conf file with this short dialplan. (If it doesn't work, check
the Asterisk

console for error messages, and make sure your channels are configured to
send

inbound calls to the [incoming] context.)

 

 

Go figure! I am 100% SIP based and zero IAX and I am assuming this effects
how asterisk looks a Zapata.conf?

 

So,  this would lead to the logical conclusion that if I do not configure
incoming in Zapata, I configure it on the teliax authentication portion of
sip.conf!

 

It still didn't work.

 

I can see my phone number coming in on the CLI, but zero transition into the
basic commands of extentions.conf

 

Teliax got the thing to work before. They simply stripped out everything and
put in what appeared to be the exact example on their web site.

 

I was playing around with extensions.conf only and now it doesn't work at
all and the conceptual theory doesn't seem to apply when dealing with 100%
only SIP vs. FXx

 

So, can anyone point me into the right direction on documentation on
understanding the differences of SIP vs. FXx?

 

  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mats Karlsson
Sent: Thursday, May 31, 2007 5:35 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] Context documentation for the newbie!

 

http://www.asteriskdocs.org/modules/tinycontent/index.php?id=11

On 5/31/07, BSumrall [EMAIL PROTECTED] 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
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


Re: [asterisk-users] Context documentation for the newbie!

2007-05-31 Thread randulo

Almost every example on voip-info.org and O'Reily assume you are using an
FXO or FXS card.

I am 100% internet based.


This 4 year old article will go a long way in explaing the basics,
with examples. John Todd also has had his own heavily commented
extensions and other config files online all that time.

http://www.onlamp.com/pub/a/onlamp/2003/07/03/asterisk.html
___
--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


Re: [asterisk-users] Context documentation for the newbie!

2007-05-31 Thread Jared Smith

On 5/31/07, BSumrall [EMAIL PROTECTED] wrote:

First off, I wanted to thank you for referring me to the O'Reily pdf.


I'm glad you found it useful.


Almost every example on voip-info.org and O'Reily assume you are using an
FXO or FXS card.


Yes, we wrote the first edition of the O'Reilly book when the easiest
way to get up and running with Asterisk was to use analog phones.
It's amazing how quickly thta's changed.  The second edition of the
book will be out shortly, and has a lot more information on how to
setup SIP and IAX devices to talk to Asterisk.

-Jared
___
--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


Re: [asterisk-users] Context documentation for the newbie!

2007-05-31 Thread C F

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 [EMAIL PROTECTED] 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