Question on context in extensions.conf

[default]
include = local

[longdistance]
include = default
exten => _8.,1,Dial(IAX2/pbxlasolas/${EXTEN:1},60,r)

[local]
include = longdistance
exten => 100,1,Dial(SIP/matt)
exten => 611,1,Echo()
exten => 101,1,Dial(SIP/home)
exten => 102,1,Dial(SIP/anthony)

All I have right now is SIP phones. So if I am on SIP/matt, I cant call anywhere besides other extensions in [local] unless I have that “include = longdistance” in thier? That allows me to use the [longdistance] context.

What does haveing “include = default” in [longdistance] help me do?
Im kind of confused.

send the parser into a loop ??

ha @ reply.

The logic would be better used:

[default]
include = local
include = longdistance

[longdistance]
exten => _8.,1,Dial(IAX2/pbxlasolas/${EXTEN:1},60,r)

[local]
exten => 100,1,Dial(SIP/matt)
exten => 611,1,Echo()
exten => 101,1,Dial(SIP/home)
exten => 102,1,Dial(SIP/anthony)