outbound rules

Discussion in '3CX Phone System - General' started by Heath, Aug 13, 2017.

Thread Status:
Not open for further replies.
  1. Heath

    Heath New Member

    Joined:
    Aug 12, 2017
    Messages:
    116
    Likes Received:
    0
    I've Setup outbound rules, and they seem to be not working... For Example... If you dial 7 digits that it will prepend 1 plus the area code... I've also have an outbound rule for certain extensions that if an international call is attempted (prefix beginning with 011) it is blocked.. Neither are working... When I dial just the 7 digits it says canceled.. And on the extensions that are to be blocked with 011 as the prefix, it is still processing the call
     
  2. Saqqara

    Saqqara Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    1,098
    Likes Received:
    166
  3. Heath

    Heath New Member

    Joined:
    Aug 12, 2017
    Messages:
    116
    Likes Received:
    0
    Yes they are in the correct order
     
  4. us1

    us1

    Joined:
    Oct 19, 2015
    Messages:
    80
    Likes Received:
    21
    Are you using a supported SIP trunk provider? If so, which one?
     
  5. Saqqara

    Saqqara Well-Known Member

    Joined:
    Mar 12, 2014
    Messages:
    1,098
    Likes Received:
    166
    Can you post a screen shot of the rules, so that we can check them over.
     
  6. Heath

    Heath New Member

    Joined:
    Aug 12, 2017
    Messages:
    116
    Likes Received:
    0
    Flowroute
     
  7. AlexanderHanna

    Joined:
    Oct 2, 2015
    Messages:
    89
    Likes Received:
    11
    Yes, a screen shot of the outbound rules would help.
     
  8. Heath

    Heath New Member

    Joined:
    Aug 12, 2017
    Messages:
    116
    Likes Received:
    0
    Here is a copy and paste of my outbound rules

    Outbound Rule Name Call from extension(s) Prefix Length Extension Group Route1 Route2 Route3 Route4 Route5

    All Outbound 101, 102 +,0-9 Flowroute
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    No International 000-100, 103-999 1-9 Flowroute
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    Emergency Calls 101-106 911 Flowroute
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    Local 101-106 7 Flowroute
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    local 1 101-106 570 10 Flowroute
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    international block 000-100, 103-999 011,+
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    BLOCK

    900 block 000-100, 102-999 1900
    BLOCK

    BLOCK

    BLOCK

    BLOCK

    BLOCK
     
  9. leejor

    leejor Well-Known Member

    Joined:
    Jan 22, 2008
    Messages:
    10,744
    Likes Received:
    281
    As far as the 7 digit rule...if there is no match, the 3CX Activity log will show that. If you don't use an access digit, such as a 9, then the rule will have to be based on the length of the digit string (7) and nothing else. There cannot be another rule for 7 digit (length) numbers, above this rule or the call will follow it instead.

    With the 011 rule, you have to become more specific. the number will begin with 011, be X number of digits long (how long are the dialled numbers in total?) , and be specific to certain extensions, the destination will be to end the call.

    What is the log currently showing for these these calls? This specific rule must be above the 011 rule used by all other extensions that are permitted to use this prefix.

    Rules are read top to bottom, so the more specific, the closer to the top it must be with any "catch all" rules left to the end.
     
  10. Heath

    Heath New Member

    Joined:
    Aug 12, 2017
    Messages:
    116
    Likes Received:
    0
    For the 7 digit rule. I have so that if 7 digits in the number is dialed it appends the area code 570 in the beginning. But when I dial 7 digits I get call canceled

    The 011 is the international prefix. I can't tell how many total digits there will be. I have that on certain extensions that there are no international calls allowed.
     
  11. YiannisH_3CX

    YiannisH_3CX Support Team
    Staff Member 3CX Support

    Joined:
    May 10, 2016
    Messages:
    6,016
    Likes Received:
    420
    In order to troubleshoot this you should start simple. Make a new outbound rule and only fill in the Calls from extensions with the extension you are calling from and the route the call should go out from. Then move it to the top of the list and dial the whole number and check if that works. If that works edit the outbound rule and set it to calls to numbers with a length of 7 and prepend the area code. Try again to see if that works.
    Please note that if you have multiple parameters in an outbound rule then all have to match for the outbound rule to work.
     
  12. lneblett

    lneblett Well-Known Member

    Joined:
    Sep 7, 2010
    Messages:
    2,083
    Likes Received:
    61
    As noted, the rules are processed in order. In looking at the Flowroute documentation it is somewhat vague about the requirements. They mention 10 or 11 digit dialing, but then specifically specify: "If you need to allow for 7-digit local dialing, an additional route must be configured for your specific local Area Code in the following format: NXXXXXX, as shown in the highlighted example below. Make sure that you replace 1206 in the example with your own area code prepended with 1. "

    The above seemingly implies that they really want to see 11 digits for local, and long distance. So the first rule might read extensions = blank (all), groups = blank (all), length= 7, prefix = blank (none), route = FlowRoute, Strip = 0 and prepend = 1XXX where XXX is YOUR area code.

    When you create the INTL, you would create a rule using the extension of interest for 102, and use the following:
    Flowroute uses the E.164 format, which can be up to a fifteen-digit number. The number is typically formatted as [Country Code] + [Telephone Number (NPA-NXX-XXXX)]. Do not dial the North American Numbering Plan Administration (NANPA) format of using the ([Country Code] + 1). This will instead cause the number to be recognized as an international call.

    For example,

    • Test call to the USA: 17024797000
    • Test call to the Philippines: 6322451234

    For clarity, you might consider creating two rules for International dialing. One, which would precede the other would allow certain extensions and the following would be the same rule, but would preclude all extensions. As the first rule might contain extension 102 and then see 102 first, the second rule blocking 102 would not come into play. You will again note in their statement above, that they have included the "1" in national dialing.

    As a result, and assuming that all extensions need local/national dialing, you need to create a 7 digit rule and prepend 1XXX as noted earlier.
    You need to create a 10 digit rule and prepend 1, routed to FlowRoute
    You need to create an 11 digit rule and prepend nothing, routed to FlowRoute
    (In the above rules you need to specify the length of each rule to make the prepend explicit)

    You need to create an International rule using extensions desired to allow and using a prefix (your choice, but if use to 011...use it) and strip 3 and prepend nothing, routed to FlowRoute
    You need to create an International rule using all extensions to deny and using a prefix (your choice, but if use to 011...use it) and strip 3 and prepend nothing, Blocked on all.
    (In the above rules, the length is variable and is therefore not needed. The 011 is what makes the rules unique and not applicable to the earlier local/national rules)
    If emergency numbers are also with FlowRoute, you need to go to Emergency numbers with 3CX and install and specify the route and 3CX will automatically place these at the top of the order.

    You also need to be aware of NANP. This is a number plan used in North America where the code "1" is dialed ahead of the area code. As you know, the "1" is used to reach all locations in the US and Canada, but it is not simply limited same, but also brings into play much of the Caribbean area where international long distance charges may apply. You cannot use the 3CX call blocking if there is a need to call these areas as I think it will take precedence over the rules and then block ext.102 regardless of what the rules say. Nevertheless, they should be examined (in security) and those countries or areas where international calling is not needed should be checked as this will help to prevent unwanted charges.
     
    #12 lneblett, Aug 14, 2017
    Last edited: Aug 14, 2017
    us1 likes this.
  13. us1

    us1

    Joined:
    Oct 19, 2015
    Messages:
    80
    Likes Received:
    21
    I cleaned up your copy/paste for clarity as it was difficult to read. Your copy/paste does not show the full details of your calling rules as it does not show the "strip digits" field nor the "prepend" field. That makes troubleshooting difficult at best. Additionally, given most of the country has either fully moved to 10-digit dialing requirements or will soon move to that, I recommend considering forgoing 7-digit dialing and simply going to 10 or 11 digits.

    To sum up what Ineblett and Yiannis have stated:

    At the core, the outbound rules are followed in order. In your case, your first two rules encompass ALL dialing of numbers of up to 9 digits (which is too short considering North American numbers are 10 digits). These rules are taking precedence over your 7-digit dial rule. Again, without a full capture of your rules, it is difficult to tell what is happening. Here is an idea of what your rules should look like (in this order) in order to accommodate most calling needs.

    (I recommend the following rule...who uses 411 anyway? Also, expensive! Otherwise change it to route to free 411)
    Rule name: Block 411
    Prefix: 411
    Length: 3
    Route 1: BLOCK
    Strip digits: 0
    Prepend: (empty)
    OR
    Rule name: Free 411
    Prefix: 411
    Length: 3
    Route 1: Flowroute
    Strip digits: 3
    Prepend: 18003733411

    (This rule covers 911, 811, etc., EXCEPT for 411 due to the rule above it)
    Rule name: 3-digit dialing
    Prefix: (empty)
    Length: 3
    Route 1: Flowroute
    Strip digits: 0
    Prepend: (empty)

    Rule name: 7-digit dialing
    Prefix: (empty)
    Length: 7
    Route 1: Flowroute
    Strip digits: 0
    Prepend: 1xyz (where xyz is your local area code)

    Rule name: 10 digit dialing
    Prefix: (empty)
    Length: 10
    Route 1: Flowroute
    Strip digits: 0
    Prepend: 1

    Rule name: 11 digit dialing
    Prefix: 1
    Length: 11
    Route 1: Flowroute
    Strip digits: 0
    Prepend: (empty)

    Rule name: International dialing
    Prefix: 011
    Length: (empty)
    Route 1: Flowroute
    Strip digits: 3
    Prepend: (empty)

    Update these to match your extensions, groups, etc., that meet your needs. Also, if you keep your international rule this simple, make sure you update the "Allowed Country Codes" under Security Settings to only allow calls to those countries you need. Better to start with only a few and work your way up as needed vs. allowing all and getting a nasty phone bill.

    Best of luck.
     
    #13 us1, Aug 14, 2017
    Last edited: Aug 14, 2017
Thread Status:
Not open for further replies.