[Asterisk-Users] Need good explanation on contexts and extensions

telephony at jonjay.com telephony at jonjay.com
Sat Sep 24 18:45:33 MST 2005


Hello:

My Asterisk book is on its way, so please bear with me.

Based on what I have read and my actual Asterisk experiences, I am not
too clear on the context-extension relationship.  I am not sure if some
of the error messages (Not Found) are a result of a bug or a feature.

My experience so far is limited to sip.conf and extensions.conf, as I
don't have a hardware board yet.

First: It seems like an extension can be part of more than one context?

If you have something like this:

sip.conf:
-------------------
[general]
port = 5060
context = incoming

[1234]
context = internal
-------------------

What's the meaning of the above?  Is this like a programming language
where the  global variable 'context' is shadowed by the local variable
with the same name?

Or is the extension '1234' somehow related to both contexts ('incoming'
and 'internal')?

Thanks,

-Ramon F Herrera 




More information about the asterisk-users mailing list