[Asterisk-Users] Extensions base policy
Melcon Moraes
melcon at principaltelecom.com.br
Fri Mar 10 04:46:37 MST 2006
I guess this is the right way. That's the context's job. Don't forget to
setup your users'es context in iax.conf and/or sip.conf according to
contexts you just created in extensions.conf
For instance:
# iax.conf/sip.conf
[user_grp_A]
context=grp_A]
...
all_the_other_stuff
[user_grp_B]
context=grp_B
...
all_the_other_stuff
# extensions.conf
[grp_A]
exten => _${pre-defined-number},1,Dial(Technology/Channel/${EXTEN})
exten => _${pre-defined-number},n,Hangup
[grp_B]
exten => _X.,1,Dial(Technology/Channel/${EXTEN})
exten => _X.,n,Hangup
Of course this is too simple, but I think it is enough to give you an idea.
Regards
Melcon Moraes
Gabriel Afana wrote:
> Hi,
> Maybe this isn't the right way...but this is the first thing that
> popped into my head;
>
> Use two contextes. For example, context_A and context_B. For all group
> A extensions, make context_A their default context and group B
> extensions to context_B. Then, in each context, define only the
> extenions that can be reached.
>
> - Gabe
> ----- Original Message ----- From: "Mohammad Salaque" <msalaque at gmail.com>
> To: "Asterisk Users Mailing List - Non-Commercial Discussion"
> <asterisk-users at lists.digium.com>
> Sent: Thursday, March 09, 2006 11:44 PM
> Subject: [Asterisk-Users] Extensions base policy
>
>
> Dear List,
>
> I am new in this world (Asterisk) and facing a problem . i want to
> make some group, base on extensions .so that certain extensions could
> call to certain predefine number only. let me give u all a short
> example
>
> extensions 1,2,3,4 will be group A , extensions 5,6 will be group B .
>
> so group A only allowed to call one or certain predefine number but
> group B could call anywhere.
>
> could any one give me an example of that configuration ?
>
> thanks
> Salaque
> _______________________________________________
> --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
>
>
More information about the asterisk-users
mailing list