I'm faced with a similar situation of segregating users in 3 different categories to be able to make: internal calls only (students); internal & local calls (staff); and internal, local & international calls (profs). I do understand that 3 different contexts would have to be defined in the extensions.conf file. Are there custom context modules for Asterisk 1.2.6 version as well? If not, I'd really appreciate any suggestions or help in this regard.
thanks,
Abhishek
On 8/27/07, Seysan <AFShin9@gmail.com> wrote:
Thank you.
Now that the conexts are different can all the extension call to echother ?
SeysanOn 8/27/07, Steven < asterisk@tescogroup.com> wrote:This is what I did in Trixbox:
I added this to extensions_custom.conf
-----------------
[restrict-local-only]
include => from-internal-additional-custom
include => app-recordings
include => app-callwaiting-cwoff
include => app-callwaiting-cwon
include => app-dialvm
include => app-vmmain
include => app-cf-busy-off
include => app-cf-busy-off-any
include => app-cf-busy-on
include => app-cf-off
include => app-cf-off-any
include => app-cf-on
include => app-cf-unavailable-off
include => app-cf-unavailable-on
include => ext-meetme
include => app-calltrace
include => app-directory
include => app-echo-test
include => app-speakextennum
include => app-speakingclock
include => app-dnd-off
include => app-dnd-on
include => app-pickup
include => app-chanspy
include => ext-test
include => ext-local
include => outrt-007-local-only
include => restrict-invalid
exten => h,1,Hangup
[restrict-invalid]
exten => _9.,1,Playback(feature-not-avail-line)
exten => _9.,n,Playback(that-number)
exten => _9.,n,Playback(is)
exten => _9.,n,Playback(privacy-not)
exten => _9.,n,Playback(accessible-through-system)
exten => _9.,n,Busy()
------------------
Then in trixbox, each extension has a context field.
Change it from the default to "restrict-local-only".
Also, I added a Route called "local-only"
This includes just our local exchanges, emergency, and toll free.
Dial Patterns:
911
9|1248.
9|1576.
9|1713.
9|1800.
9|1810.
9|1866.
9|1877.
9|1888.
I created the "restrict-invalid" context to play a recording when a call was blocked.
It matches anything not specified in "restrict-local-only" or higher included contexts.
This scenario work great for me.
Supposedly there is a Trixbox module called "CustomContexts" http://aussievoip.com.au/wiki/freePBX-CustomContexts , but it is in
beta and seems more complicated than my approach.
It should be much more versatile, but I went with the quick fix.
--
--
Steven
http://www.glimasoutheast.org
"Thomas Kenyon" <digium@sanguinarius.co.uk> wrote in message news: 46D293E8.3000508@sanguinarius.co.uk...
> Seysan wrote:
>> Hi all,
>>
>> I want to limit the outgoing trunk to certain extensions, so for example
>> 6 extensions can call long distance, but 4 other extensions are not
>> allowed to do so.
>>
>> How can I do it in FreePBX specially?
>>
> I don't know about Trixbox per say, but normally you would have all the
> handsets that can make long distance calls in one context and all the
> ones that can't in another, then use dialplan logic to glue it all together.
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--
asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
No comments:
Post a Comment