ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Dialing Plan Logic Sanity Check

    Scheduled Pinned Locked Moved IT Discussion
    freepbx 14dialing patternfreepbx setup
    11 Posts 4 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DashrenderD
      Dashrender
      last edited by

      Without testing what you have might work, or you might need

      Prefix = 8 and match pattern = NXXXXXXXXX because the 8 might already be stripped out by the Prefix column when moving onto the second column of match pattern.

      1 Reply Last reply Reply Quote 0
      • DashrenderD
        Dashrender
        last edited by Dashrender

        I just tested this on FreePBX

        This worked
        hkcki40.png

        This failed
        GDFqeEB.png

        As I suspected, the 8 in the match failed because the prefix already stripped that out before sending the remaining digits to the match pattern.

        EddieJenningsE 2 Replies Last reply Reply Quote 0
        • PenguinWranglerP
          PenguinWrangler
          last edited by

          When I read the title of this post I read it as "Dating Plan Logic Sanity Check"

          1 Reply Last reply Reply Quote 2
          • EddieJenningsE
            EddieJennings @Dashrender
            last edited by

            @dashrender said in Dialing Plan Logic Sanity Check:

            I just tested this on FreePBX

            This worked
            hkcki40.png

            This failed
            GDFqeEB.png

            As I suspected, the 8 in the match failed because the prefix already stripped that out before sending the remaining digits to the match pattern.

            I'll try it out tomorrow. Had zero time to work, test, and learn today. 😞

            1 Reply Last reply Reply Quote 0
            • EddieJenningsE
              EddieJennings @Dashrender
              last edited by

              @dashrender said in Dialing Plan Logic Sanity Check:

              I just tested this on FreePBX

              This worked
              hkcki40.png

              This failed
              GDFqeEB.png

              As I suspected, the 8 in the match failed because the prefix already stripped that out before sending the remaining digits to the match pattern.

              I was able to replicate the results. 🙂 This means (from the Prefix definition) "The dialed number" must mean the prefix number. So perhaps this is what FreePBX does.

              1. User dials 8777705554321
              2. FreePBX checks against first dial pattern (NXXXXXXXXX) - false
              3. FreePBX checks against the second dial pattern.
              • Checks to see if the prefix number is at the beginning of the dialed number - true
              • Removes the prefix and checks the resultant number against the match pattern field - true
              1. FreePBX adds the prepend, and sends +17705554321 to the trunk.
              JaredBuschJ 2 Replies Last reply Reply Quote 0
              • JaredBuschJ
                JaredBusch @EddieJennings
                last edited by

                @eddiejennings said in Dialing Plan Logic Sanity Check:

                @dashrender said in Dialing Plan Logic Sanity Check:

                I just tested this on FreePBX

                This worked
                hkcki40.png

                This failed
                GDFqeEB.png

                As I suspected, the 8 in the match failed because the prefix already stripped that out before sending the remaining digits to the match pattern.

                I was able to replicate the results. 🙂 This means (from the Prefix definition) "The dialed number" must mean the prefix number. So perhaps this is what FreePBX does.

                1. User dials 8777705554321
                2. FreePBX checks against first dial pattern (NXXXXXXXXX) - false
                3. FreePBX checks against the second dial pattern.
                • Checks to see if the prefix number is at the beginning of the dialed number - true
                • Removes the prefix and checks the resultant number against the match pattern field - true
                1. FreePBX adds the prepend, and sends +17705554321 to the trunk.

                Correct. How was this hard to understand?

                EddieJenningsE 1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch @EddieJennings
                  last edited by

                  @eddiejennings said in Dialing Plan Logic Sanity Check:

                  @dashrender said in Dialing Plan Logic Sanity Check:

                  I just tested this on FreePBX

                  This worked
                  hkcki40.png

                  This failed
                  GDFqeEB.png

                  As I suspected, the 8 in the match failed because the prefix already stripped that out before sending the remaining digits to the match pattern.

                  I was able to replicate the results. 🙂 This means (from the Prefix definition) "The dialed number" must mean the prefix number. So perhaps this is what FreePBX does.

                  1. User dials 8777705554321
                  2. FreePBX checks against first dial pattern (NXXXXXXXXX) - false
                  3. FreePBX checks against the second dial pattern.
                  • Checks to see if the prefix number is at the beginning of the dialed number - true
                  • Removes the prefix and checks the resultant number against the match pattern field - true
                  1. FreePBX adds the prepend, and sends +17705554321 to the trunk.

                  Also NXXXXXXXXX is an invalid dial pattern for NANPA. The valid pattern is NXXNXXXXXX.

                  EddieJenningsE 1 Reply Last reply Reply Quote 0
                  • EddieJenningsE
                    EddieJennings @JaredBusch
                    last edited by

                    @jaredbusch said in Dialing Plan Logic Sanity Check:

                    @eddiejennings said in Dialing Plan Logic Sanity Check:

                    @dashrender said in Dialing Plan Logic Sanity Check:

                    I just tested this on FreePBX

                    This worked
                    hkcki40.png

                    This failed
                    GDFqeEB.png

                    As I suspected, the 8 in the match failed because the prefix already stripped that out before sending the remaining digits to the match pattern.

                    I was able to replicate the results. 🙂 This means (from the Prefix definition) "The dialed number" must mean the prefix number. So perhaps this is what FreePBX does.

                    1. User dials 8777705554321
                    2. FreePBX checks against first dial pattern (NXXXXXXXXX) - false
                    3. FreePBX checks against the second dial pattern.
                    • Checks to see if the prefix number is at the beginning of the dialed number - true
                    • Removes the prefix and checks the resultant number against the match pattern field - true
                    1. FreePBX adds the prepend, and sends +17705554321 to the trunk.

                    Correct. How was this hard to understand?

                    It's not, once "dialed number" is defined. First thought was it sees if the match pattern matches, if it does, then it strips the number specified in the prefix, then adds the prepend, but, in fact, it just matches that a number begins with the prefix, strips it, then sees if the number matches the match pattern, then adds the prepend as was discovered.

                    1 Reply Last reply Reply Quote 0
                    • EddieJenningsE
                      EddieJennings @JaredBusch
                      last edited by

                      @jaredbusch

                      Also NXXXXXXXXX is an invalid dial pattern for NANPA. The valid pattern is NXXNXXXXXX.

                      You're right. I've fixed my patterns. While the invalid pattern works, it would be best to follow the standard.

                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                      • JaredBuschJ
                        JaredBusch @EddieJennings
                        last edited by

                        @eddiejennings said in Dialing Plan Logic Sanity Check:

                        @jaredbusch

                        Also NXXXXXXXXX is an invalid dial pattern for NANPA. The valid pattern is NXXNXXXXXX.

                        You're right. I've fixed my patterns. While the invalid pattern works, it would be best to follow the standard.

                        It is too loose, so it would never have stopped a real call from processing.

                        NXX - NPA (Area Code)
                        NXX - Exchange (ILEC Central Office)
                        XXXX - Line (Station within the Exchange)

                        N = 2-9
                        X = 0-9

                        So this menas that NPA and Exchange 3 digit numbers can never begin with a 0 or 1.

                        1 Reply Last reply Reply Quote 3
                        • 1 / 1
                        • First post
                          Last post