Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Using regular expression for external trunk

    Posted 06-03-2021 12:33
    No replies, thread closed.
    Hi all,
    Need some advise as i have a PBX connected to Cloud solution which requires a prefix (24) for outbound calls, this is currently working.
    I need to configure the Cloud users to just dial the number and Cloud to add the prefix (24)

    I have attempted this on my Trunk with below configuration but i am not able to dial out:

    For example, i want to dial +27721234567 and need Cloud to convert to 2427721234567

    i have added the below on my External Trunk to both the Calling Address Transformation and the Called Address Transformation.

    ^(sip[s]?:|tel:)(\+)(.*)
    ${1}24${3}

    any advise?


    #Outbound

    ------------------------------
    Reginald Sheraton
    ------------------------------


  • 2.  RE: Using regular expression for external trunk

    Posted 06-03-2021 17:08
    No replies, thread closed.
    Try using $124$3 as the replacement.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 3.  RE: Using regular expression for external trunk

    Posted 06-03-2021 17:43
    No replies, thread closed.
    Thanks for your response, i have tried the below but still not working
    ^(sip[s]?:|tel:)(\+)(.*)
    $124$3

    ------------------------------
    Reginald Sheraton
    ------------------------------



  • 4.  RE: Using regular expression for external trunk

    Posted 06-04-2021 01:24
    No replies, thread closed.
    I think there are some issues with multiple selections.  Try using:


    ^sip[s]?:|tel:\+(.*)
    with 
    tel:24$3


    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 5.  RE: Using regular expression for external trunk

    Posted 06-04-2021 08:23
    No replies, thread closed.
    Hi Robert,
    I have tried this too with no success

    ------------------------------
    Reginald Sheraton
    ------------------------------



  • 6.  RE: Using regular expression for external trunk

    Posted 06-04-2021 13:48
    No replies, thread closed.
    Sorry, response should have been tel:24$1, not $3.

    ------------------------------
    Robert Wakefield-Carl
    Avtex Solutions, LLC
    Contact Center Innovation Architect
    robertwc@avtex.com
    https://www.Avtex.com
    https://RobertWC.Blogspot.com
    ------------------------------



  • 7.  RE: Using regular expression for external trunk

    Posted 06-05-2021 14:19
    Edited by Asad Saqlain 06-05-2021 14:29
    No replies, thread closed.
    Hi Reginald,

    In addition to Robert's suggestion I would say you don't need to add group (tel:|sip[s]?:). This because your GC dial plan already omits tel: string. Hence the following regex should be working fine. But be careful of the other ways people dial a number manually and change your dial plan accordingly.

    ^\+(.*) with 24$1

    Hope this works for you!

    ------------------------------
    Asad Saqlain
    Frontline Solutions
    ------------------------------



  • 8.  RE: Using regular expression for external trunk

    Posted 06-07-2021 02:05
    No replies, thread closed.
    Thanks all, i will give these a try and advise

    ------------------------------
    Reginald Sheraton
    ------------------------------



  • 9.  RE: Using regular expression for external trunk

    Posted 06-07-2021 10:16
    No replies, thread closed.
    Hi Reginald,

    In my case the expression below works properly, you can try to do it:

    Match Regular Expression
    ^(sip[s]?:|tel:)([0-9!#$%&'*+/=?^_`{|}~-].*)(@.*)
    Format Regular Expression
    ${1}24${2}${3}

    (remember, it should be applied into "Telephony>Trunks>External Trunks> Edit External Trunk" sesion "Called")

    Note: @Asad Saqlain, has a good tip about don't need to add group (tel:|sip[s]?:), I will try it next. I prefer split expression in groups to handle the fields for future necessity that can happen.

    ------------------------------
    Juliano Montagner
    Interaxa Brasil
    ------------------------------



  • 10.  RE: Using regular expression for external trunk

    Posted 06-08-2021 01:59
    No replies, thread closed.
    Thanks guys for you valuable input, i am awaiting customer go ahead to test these and will keep you posted

    ------------------------------
    Reginald Sheraton
    ------------------------------