Genesys Cloud - Main

 View Only

Sign Up

  Thread closed by the administrator, not accepting new replies.
  • 1.  Changing attribute call.ani in Architecture

    Posted 11-20-2023 14:29
    No replies, thread closed.

    hello, 

    Architect Inbound Call. Is it possible to modify the call.ani attribute so that we replace + with 00 in the phone number?

    The reason is that we need a voice to announce the number that the customer is calling.

    If it cannot be fixed Is there any other way to fix this problem? Can we create a new attribute that replaces call.ani in audio announcements?


    #ArchitectureandDesign
    #Routing(ACD/IVR)

    ------------------------------
    Nuttapong Limadisai
    G-Able Public Company Limited
    ------------------------------


  • 2.  RE: Changing attribute call.ani in Architecture

    Posted 11-20-2023 14:39
    No replies, thread closed.

    Call.Ani is a read-only system variable; it can't be changed.  However you can copy it's value and do whatever you want with that.



    ------------------------------
    Melissa Bailey
    Genesys - Employees
    ------------------------------



  • 3.  RE: Changing attribute call.ani in Architecture

    Posted 11-20-2023 21:00
    No replies, thread closed.

    I can use tool in call flow for change?



    ------------------------------
    Nuttapong Limadisai
    G-Able Public Company Limited
    ------------------------------



  • 4.  RE: Changing attribute call.ani in Architecture

    Posted 11-21-2023 08:37
    No replies, thread closed.

    You would not use a "tool". You would use Get, Set, Update Participant Data to copy out of the box variables like Call.Ani into new variables you create.  In your use case you could trim Call.Ani using the Right(Call.Ani), #) .  This would trim the phone number starting from the right hand side over as many #'s as you would like.
    I find Architect Expression Help very useful for these use cases.



    ------------------------------
    Steve Alix
    EDCi
    ------------------------------



  • 5.  RE: Changing attribute call.ani in Architecture

    Posted 11-21-2023 16:07
    No replies, thread closed.

    You could use the following to save the ANI with 00 instead of + if you want it in international format, and use Flow.newAni to play the digits

    Replace(ToPhoneNumber(Call.Ani).e164, "+", "00")



    ------------------------------
    Jan Heinonen
    Contact Center Specialist
    GlobalConnect AB
    ------------------------------