How can I limit types of call per user

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#1
Seemingly a simple request, I have a customer that wants only one person to be able to call long distance. For now I have created a non existing trunk and pointed all the possible dialing options to long distance providers to this trunk.
i.e. to dial the UK you can try 0044 or 01244 or 01344 and so on, so I created a route with 900|. and 9012|. and so on, so when someone tries to use these long distance services he gets a message that the service is not avaliable.
BUT now as I said, they want one person to be able to dial out, so I would like a way to link that persons extension to a list of people allowed to dial out, ( I do not want to go down the password path).
Can anyone tell me how this can be done ?
Thanks
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#2
You may want to try pinsets. That way only people that knows the pins can dial throw a trunk protected with pinsets.

Regards,

Rafael
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#3
Thanks,
But as I said I want to keep dialing to be as simple as possible, thus rather than PIN's I would like to relate a trunk or route directly to an extension, is that possible ?
 

rafael

Joined
May 14, 2007
Messages
1,454
Likes
1
Points
0
#4
So what you want is that only one extension can dial international calls. You can do this with contexts, might want to try the custom context module for freepbx.

Best Regards,

rafael
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#5
I have downloaded the latest module: customcontexts-0.3.4.tgz but when I try to load it it keeps on telling me : File installer.php doesn't exist in package

Got the same result with 1.1 and 1.3 with module 34 and 33. any ideas ?
 

chocho

Joined
Nov 7, 2007
Messages
74
Likes
0
Points
0
#6
You need to install this module in FreePBX Module Admin, not in Elastix GUI.
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#7
Do you k now the default user and PW for that ?
 

chocho

Joined
Nov 7, 2007
Messages
74
Likes
0
Points
0
#8
user: admin
pass: admin
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#9
OK Im in and loaded the modules, how do I proceed to limit all but one extension for international calls. ?
 

chocho

Joined
Nov 7, 2007
Messages
74
Likes
0
Points
0
#10
Well, that is a little complicate.

1. Go to Custom Context menu and add a new context:
Context: restricted
Description: Restricted

2. Enter in this context and set all to "Allow"

3. Set "ENTIRE Basic Internal Dialplan" to "Deny" and "ALL OUTBOUND ROUTES" to "Deny".

4. Ser outbound routes that they should use to "Allow Rules".

5. Set in "Dial Rules" your rules:

9Z.
90Z.

( 9 is my outgoing prefix )

6. Submit and apply changes.

7. Go to extensions settings and you should see Custom Context drop-down menu. On extension with international rules don't change anything.To others set context to restricted.

B)
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#11
Could you give me an example, screen shot anything !!!
 

chocho

Joined
Nov 7, 2007
Messages
74
Likes
0
Points
0
#12
Right now I don't have a access to my pbx, so no I can't.
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#13
If you are able to, please let me know.
Thanks for your help so far.
 

pawels

Joined
May 19, 2008
Messages
51
Likes
0
Points
0
#14
May be this solution will be useful for you.
In extensions_custom.conf create a context:

[from-restricted-context]
exten => _00.,1,Hangup
include => from-internal ;default context, all extension with this context can make long distance calls

Them for particular extension change context to this one.

Best Regards,
Pawel
 

azmerlin

Joined
Jul 10, 2008
Messages
65
Likes
0
Points
0
#15
Pawel hi,

Thanks for that, could you please give me a sample of the extension context and where it goes ?
Thanks
 

pawels

Joined
May 19, 2008
Messages
51
Likes
0
Points
0
#16
Context [from-internal] is a standard freepbx/elastix context.
I didn't made any changes in this context.
Such solution (in my case) restrict international calls for particular extensions (with context [from-restricted-context]).
I have to noticed you that if some know trunk access code (I have TAC for all trunks ex. 851 - isdn1, 852 - isdn2, 853 - sip providrer) can make calls from restricted context.
To disallow such dialing you have to:

[from-restricted-context]
exten => _00.,1,Hangup
exten => _851.,1,Hangup
exten => _852.,1,Hangup
exten => _853.,1,Hangup
include => from-internal

Regards,
Pawel
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,915
Messages
130,920
Members
17,594
Latest member
knethardsolutions
Top