There is another easier and interesting thing you can do in extensions.conf to restrict specific dialinmg codes for specific users.<br><br>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:<br>
<br>[hotel]<br>;for all other phones<br>exten=&gt; _1XXXXXXXXXX,1,Dial(${external})<br>exten=&gt; _011.,1,Dial(${internaltional})<br>exten=&gt; _XXXX,1,Dial(${internal})<br><br>;for service phones<br>exten=&gt; _1XXXXXXXXXX/1111,1,hangup<br>
exten=&gt; _1XXXXXXXXXX/1112,1,hangup<br>exten=&gt; _1XXXXXXXXXX/1113,1,hangup<br>exten=&gt; _1XXXXXXXXXX/1114,1,hangup<br>
<br>exten=&gt; _011./1111,1,hangup<br>exten=&gt; _011./1112,1,hangup<br>exten=&gt; _011./1113,1,hangup<br>exten=&gt; _011./1114,1,hangup<br><br>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<br>
<br><div class="gmail_quote">On Mon, Jun 2, 2008 at 2:00 AM, DEVEL STAROSTA &lt;<a href="mailto:devel@starosta.org">devel@starosta.org</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi all,<br>
<br>
I&#39;m playing with asterisk and I try to make system for my sister hotel<br>
with aprox. 40 extensions (30 rooms, 1 reception, 2 office, 4 services<br>
phones on each floor). I.ve installed latest version of trixbox (for<br>
GUI) but I made manual modifications.<br>
This is actual server:<br>
- n.1 Pci card with 2 x FXO + 2 x FXS<br>
- n. 2 Trunk to outside (my local Voip provider + 1 PSTN)<br>
I&#39;ve buyed also 50 telephones from ATCOM (IP530), make all<br>
configurations and now seems all work fine, I can make calls (outside,<br>
inside) make transfer, ecc.<br>
<br>
My problem:<br>
I have 4 services phones (each per floor) which must be able to make<br>
only internal calls (not external - no PSTN nor VOiP provider), I&#39;ve<br>
just look about solution in Google, mailing list, I can&#39;t find solution,<br>
please can someone give me an idea ?<br>
NB: sorry for my english ... ;)<br>
<br>
Alberto<br>
<br>
_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Best Regards<br>Rizwan Hisham<br>