I have three phone numbers, each one related to a different queue.
And one routing profile where I can set up only one default outbound phone number.
How can I dynamically set appropriate number for the outgoing call depending on what phone number customer called before?
For example: if a customer called on +1234567890, an outgoing call should be from the same number. If called on +1111155555, the outgoing call should be from +1111155555 etc.
I found this guide https://blogs.perficient.com/2018/07/10/amazon-connect-introduces-dynamic-outbound-caller-id/ and also tried to use this doc https://docs.aws.amazon.com/connect/latest/adminguide/connect-lambda-functions.html. But I have no experience with lambda functions and don't know how to use it properly.
Thank you in advance.