Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Looking for Number Plan Help

    Posted 05-17-2017 23:43
    No replies, thread closed.

    Has anyone created Number Plan objects to support a PBX tie line requiring 9 to dial out?



  • 2.  RE: Looking for Number Plan Help

    Posted 05-18-2017 17:22
    No replies, thread closed.

    Only in my dev lab...just set up as a regular expression instead one of the standard Number Plan objects. Use an expression something like (\+?1?\d{3}555\d{4}) or whatever patterns you need to send to the PBX, and add the 9 in the Normalized Number Expression, 9$0



  • 3.  RE: Looking for Number Plan Help

    Posted 11-15-2017 19:53
    No replies, thread closed.

    Just figured out how to connect to Asterisk that required leading 0 to dial out (system in Belgium, so +32). Here are some examples that work for us:

     

    Example 1 (Mobile numbers are of format 0475 123 456 or 0032495 123456)

    Regex: ((0032)?(0)?(4[7|8|9]\d{7}))

    Normalize: 0$1

    Example 2 (Mobile numbers with +32)

    Regex: (\+)(324[7|8|9]\d{7})

    Normalize: 000$2

    Example 3 (Belgium National Numbers)

    Regex: \+?(32)?(0032)?(0)?(\d{8})

    Normalize: 000$4

     

    Maybe not the most elegant but they get the job done :).

     

    As for the capture groups I found some conflicting information, this is my experience: they start at $1 (as opposed to some references I encountered in the PC docs; it also works that way in Javascript), which is also the outer group, anything contained within has a consecutive number, so $2, $3, etc.