Hi, Does anyone have a good example of how to restrict International calls to only certain users? I have been messing around with contexts in the extensions.conf file with no success. Thanks Julian -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070111/c3806854/attachment.htm
Hi Julian, The way I do things is to break my call types up into blocks, such as [emergency], [local], [longdistance], [international], [localextensions], etc. Then, I create contexts for my users which include those basic blocks. For example, a courtesy phone at reception (the [courtesy-phones] context) has emergency, local and localextensions included in it. Then when I setup an extension for a courtesy phone, I set context=courtesy-phones. Alex On 1/11/07, Julian Varanini <jvaranini@hotmail.com> wrote:> > Hi, > > Does anyone have a good example of how to restrict International calls to > only certain users? I have been messing around with contexts in the > extensions.conf file with no success. > > Thanks > > Julian > > _______________________________________________ > --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 > > >-- Alex Robar alex.robar@gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20070111/6334c05f/attachment.htm
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Julian Varanini wrote:> Hi, > > Does anyone have a good example of how to restrict International calls > to only certain users? I have been messing around with contexts in the > extensions.conf file with no success. > > Thanks > > JulianHave you tried: [international] exten => _00.,1,...etc [national] exten => _0[12].,1,...etc [local] exten => _NXXXXX,1,...etc [mobiles] exten => _07Z.,1,...etc [default] include => emergency ;actual extensions here ; anyone can dial the emergency services ; always include this context [trusted_users] include => default include => international include => national include => local include => mobiles [national_local] include => default include => national include => local [local_only] include => default include => local Then register your users in the appropriate context. - -- Ron Wellsted ron@wellsted.org.uk http://www.wellsted.org.uk N 52.567623, W 2.137621 Linux Counter No. 202120 FWD:519961 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iQEVAwUBRaabEktP/KMNOfRbAQLowwf/YS8U3HtnpBqp/iOx2k+MYYWdTiNk6/iy YENRD3V7wwuSpoLA1w9MKDwGJ6UD0v0Pc2taLde9FOFZTg3fGNxntFRGlgu0dgxb nm24sjvHfLP+MIqIdhfs3lxc37bHwZImGBy0veQxcb9ufKr/BZ175hU6gewl5ZBR dIF3L6tM7ri5UxcQe2GbzuZkPcjUr598OWbXx1Wg1KPz2LMz/tFEqgR0ctmhf8w1 aWycELWTyDWhXm1L06kgpjThlsjjWQWshN1unDVvcr8pO/O9Bwr3V5XWWRmeKTTi K56ZJUaf7hEP+uDVYVIdt7S4fJRgdgqueRIw1AEwxfr0Vko7N/j0Kg==jocx -----END PGP SIGNATURE-----