Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  block ANIs for 120 days

    Posted 20 days ago

    Hi All, 

    Our customer wants to block callers for 120 days initiated by our agent using our custom Visual Basic Scripter. Blocked callers will only be able to get through  after 120 days. 

    Can this be done?


    Thanks


    #Architect

    ------------------------------
    Rechelle McConnell
    CHRISTIAN BROADCASTING NETWORK
    Outbound Dialer Systems Administrator
    ------------------------------


  • 2.  RE: block ANIs for 120 days

    Posted 19 days ago

    Hi,

    Yes, this can be achieved with a custom implementation.

    One approach is to use External Contacts in Genesys Cloud and add a custom field such as LastBlockedDate. When an agent initiates the block action from your custom Visual Basic Script, update this field with the current date.

    Then, in the inbound call flow, perform a data lookup to retrieve the contact's LastBlockedDate. Compare the stored date with the current date:

    - If 120 days have passed since the stored date, allow the call to continue normally.
    - If fewer than 120 days have passed, route the call to a message or disconnect the call, depending on your business requirements.

    This would allow you to implement a temporary caller-block period that automatically expires after 120 days, without requiring manual intervention.



    ------------------------------
    Muhammed Shibil
    Senior Software Engineer
    Feebak : The Voice of Customer
    ------------------------------



  • 3.  RE: block ANIs for 120 days

    Posted 17 days ago

    Thank you Muhammed!



    ------------------------------
    Rechelle McConnell
    Christian Broadcasting Network
    Systems Engineer I
    ------------------------------



  • 4.  RE: block ANIs for 120 days

    Posted 17 days ago

    Then, in the inbound call flow, perform a data lookup to retrieve the contact's LastBlockedDate. Compare the stored date with the current date:

    - If 120 days have passed since the stored date, allow the call to continue normally.
    - If fewer than 120 days have passed, route the call to a message or disconnect the call, depending on your business requirements.



    ------------------------------
    Alex Sander Felicio
    ------------------------------



  • 5.  RE: block ANIs for 120 days

    Posted 5 days ago

    Hi Rechelle,

    Yes, this can be implemented, but it requires custom logic in the inbound Architect flow and a persistent data store.

    The External Contacts approach already suggested is viable. However, instead of storing only a LastBlockedDate, I would recommend storing a BlockedUntilUtc value. This simplifies the validation because the expiration date is calculated only once, when the agent blocks the caller.

    For an ANI-based blocking list, a dedicated Data Table or external database may be simpler than External Contacts because the record can be keyed directly by the normalized phone number.

    I would also recommend defining the behavior for lookup failures. In most cases, allowing the call to continue and logging the failure is safer than accidentally blocking legitimate callers.



    ------------------------------
    Eduardo Souza
    ------------------------------



  • 6.  RE: block ANIs for 120 days

    Posted 5 days ago

    Hello Rechelle,

    Sorry for the late post, yes we can achieve this,

    A possible solution is to store the blocked caller's ANI in AWS DynamoDB along with a block expiry date (current date + 120 days) using an AWS Lambda function triggered from the custom Visual Basic Scripter. During inbound call processing, the Genesys Cloud Architect flow can invoke another Lambda function via a Data Action to check whether the caller's ANI exists in the block list and if the block period is still active. If the caller is blocked, the flow can play an appropriate message and disconnect the call; otherwise, the call can proceed through normal routing. This approach provides a scalable and automated mechanism for managing temporary caller blocks.

    Thankyou,
    Satish Huzuru



    ------------------------------
    Satish Huzuru
    Infra Transformation Associate Manager
    ------------------------------