DEVEL STAROSTA
2008-Jun-01 21:00 UTC
[asterisk-users] How to limit extension to allow only internal calls
Hi all, I'm playing with asterisk and I try to make system for my sister hotel with aprox. 40 extensions (30 rooms, 1 reception, 2 office, 4 services phones on each floor). I.ve installed latest version of trixbox (for GUI) but I made manual modifications. This is actual server: - n.1 Pci card with 2 x FXO + 2 x FXS - n. 2 Trunk to outside (my local Voip provider + 1 PSTN) I've buyed also 50 telephones from ATCOM (IP530), make all configurations and now seems all work fine, I can make calls (outside, inside) make transfer, ecc. My problem: I have 4 services phones (each per floor) which must be able to make only internal calls (not external - no PSTN nor VOiP provider), I've just look about solution in Google, mailing list, I can't find solution, please can someone give me an idea ? NB: sorry for my english ... ;) Alberto
Steve Edwards
2008-Jun-02 00:20 UTC
[asterisk-users] How to limit extension to allow only internal calls
On Sun, 1 Jun 2008, DEVEL STAROSTA wrote:> I'm playing with asterisk and I try to make system for my sister hotel > with aprox. 40 extensions (30 rooms, 1 reception, 2 office, 4 services > phones on each floor). I.ve installed latest version of trixbox (for > GUI) but I made manual modifications. > This is actual server: > - n.1 Pci card with 2 x FXO + 2 x FXS > - n. 2 Trunk to outside (my local Voip provider + 1 PSTN) > I've buyed also 50 telephones from ATCOM (IP530), make all > configurations and now seems all work fine, I can make calls (outside, > inside) make transfer, ecc. > > My problem: > I have 4 services phones (each per floor) which must be able to make > only internal calls (not external - no PSTN nor VOiP provider), I've > just look about solution in Google, mailing list, I can't find solution, > please can someone give me an idea ? > NB: sorry for my english ... ;)One option would be to reference a more restricted context in sip.conf for these phones. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000
C F
2008-Jun-02 00:30 UTC
[asterisk-users] How to limit extension to allow only internal calls
Context create the devices in contexts that don't have access to outbound dialing. For example: sip.conf [phonewithoutbounddialing] othersettingsgohere context=all [phoneinternal] othersettingsgohere context=internal extensions.conf [all] exten => _1XXXXXXXXXX,1,Dial(whatever) include => internal [internal] exten => _6XX,1,Dial(Sip/${EXTEN}) the above will work that any device starting in the internal context will only be able to dial 6XX. Hope this helps. On Sun, Jun 1, 2008 at 5:00 PM, DEVEL STAROSTA <devel at starosta.org> wrote:> Hi all, > > I'm playing with asterisk and I try to make system for my sister hotel > with aprox. 40 extensions (30 rooms, 1 reception, 2 office, 4 services > phones on each floor). I.ve installed latest version of trixbox (for > GUI) but I made manual modifications. > This is actual server: > - n.1 Pci card with 2 x FXO + 2 x FXS > - n. 2 Trunk to outside (my local Voip provider + 1 PSTN) > I've buyed also 50 telephones from ATCOM (IP530), make all > configurations and now seems all work fine, I can make calls (outside, > inside) make transfer, ecc. > > My problem: > I have 4 services phones (each per floor) which must be able to make > only internal calls (not external - no PSTN nor VOiP provider), I've > just look about solution in Google, mailing list, I can't find solution, > please can someone give me an idea ? > NB: sorry for my english ... ;) > > Alberto > > _______________________________________________ > -- 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 >
Rizwan Hisham
2008-Jun-02 09:59 UTC
[asterisk-users] How to limit extension to allow only internal calls
There is another easier and interesting thing you can do in extensions.conf to restrict specific dialinmg codes for specific users. suppose your internal extensions are 4 digits long. your service phones have did 1111, 1112, 1113.here is the dialplan for all of your phones including service phones: [hotel] ;for all other phones exten=> _1XXXXXXXXXX,1,Dial(${external}) exten=> _011.,1,Dial(${internaltional}) exten=> _XXXX,1,Dial(${internal}) ;for service phones exten=> _1XXXXXXXXXX/1111,1,hangup exten=> _1XXXXXXXXXX/1112,1,hangup exten=> _1XXXXXXXXXX/1113,1,hangup exten=> _1XXXXXXXXXX/1114,1,hangup exten=> _011./1111,1,hangup exten=> _011./1112,1,hangup exten=> _011./1113,1,hangup exten=> _011./1114,1,hangup if you dont want to define separate context for every person you can match his did just like above. This way whenever service phones try to dial a local or international number they will hangup instead and all other phones will be able to dialout. try it On Mon, Jun 2, 2008 at 2:00 AM, DEVEL STAROSTA <devel at starosta.org> wrote:> Hi all, > > I'm playing with asterisk and I try to make system for my sister hotel > with aprox. 40 extensions (30 rooms, 1 reception, 2 office, 4 services > phones on each floor). I.ve installed latest version of trixbox (for > GUI) but I made manual modifications. > This is actual server: > - n.1 Pci card with 2 x FXO + 2 x FXS > - n. 2 Trunk to outside (my local Voip provider + 1 PSTN) > I've buyed also 50 telephones from ATCOM (IP530), make all > configurations and now seems all work fine, I can make calls (outside, > inside) make transfer, ecc. > > My problem: > I have 4 services phones (each per floor) which must be able to make > only internal calls (not external - no PSTN nor VOiP provider), I've > just look about solution in Google, mailing list, I can't find solution, > please can someone give me an idea ? > NB: sorry for my english ... ;) > > Alberto > > _______________________________________________ > -- 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 >-- Best Regards Rizwan Hisham -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080602/3359ccf0/attachment.htm