How can I limit types of call per user

Discussion in 'General' started by azmerlin, Oct 15, 2008.

  1. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    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
     
  2. rafael

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

    Regards,

    Rafael
     
  3. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    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 ?
     
  4. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    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
     
  5. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    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 ?
     
  6. chocho

    Joined:
    Nov 7, 2007
    Messages:
    74
    Likes Received:
    0
    You need to install this module in FreePBX Module Admin, not in Elastix GUI.
     
  7. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    Do you k now the default user and PW for that ?
     
  8. chocho

    Joined:
    Nov 7, 2007
    Messages:
    74
    Likes Received:
    0
    user: admin
    pass: admin
     
  9. azmerlin

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

    Joined:
    Nov 7, 2007
    Messages:
    74
    Likes Received:
    0
    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)
     
  11. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    Could you give me an example, screen shot anything !!!
     
  12. chocho

    Joined:
    Nov 7, 2007
    Messages:
    74
    Likes Received:
    0
    Right now I don't have a access to my pbx, so no I can't.
     
  13. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    If you are able to, please let me know.
    Thanks for your help so far.
     
  14. pawels

    Joined:
    May 19, 2008
    Messages:
    51
    Likes Received:
    0
    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
     
  15. azmerlin

    Joined:
    Jul 10, 2008
    Messages:
    65
    Likes Received:
    0
    Pawel hi,

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

    Joined:
    May 19, 2008
    Messages:
    51
    Likes Received:
    0
    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
     

Share This Page