Hi,
I am trying to limit access to long distance in my dial plan but I am
really confused by the examples I am seeing (perhaps I am
misunderstanding how context work). The following example was given in a
previous posting.
[extensions]
exten => 8478414198,1,Dial(SIP/8478414198)
exten => 8478414198,2,Hangup
exten => 8478414199,1,Dial(SIP/8478414199)
exten => 8478414199,2,Hangup
[local]
exten => _XXXXXX,1,Dial(SIP/[EMAIL PROTECTED])
exten => _XXXXXX,2,Congestion
[long-distance]
exten => _1NXXNXXXXXX,1,Dial(SIP/[EMAIL PROTECTED])
exten => _1NXXNXXXXXX,2,Congestion
[local-users]
exten => 8478414198,1,Dial(SIP/8478414198)
exten => 8478414198,2,Hangup
include => local
include => extensions
[long-users]
exten => 8478414199,1,Dial(SIP/8478414199)
exten => 8478414199,2,Hangup
include => local
include => long-distance
include => extensions
What I do not understand is how this restricts access. Since the context
'extensions' is included in both would that not give all users access to
local and long distance??? Or is there some sort of order of entry thing
with context??? I supposed that zapata.conf would include a reference to
extensions - that would be the only reason for having the extension
context... Also since the extensions appear under local-users and
long-users followed by the include 'extensions' wouldn't this generate
an error since the extension already exist (ie in local users has the
extension 8478414198 with a priority of 1 and the include statement
means that another extension 8478414198 with a priority of 1 in the same
context 'local-users')????
Thanks
_______________________________________________
--Bandwidth and Colocation sponsored by Easynews.com --
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users