Replace country code in ( in-queue flow)

Hello All,
Good Day!

I implemented in-queue flow to create callback,however normally when the agent makes an outbound call he has to add 9 before the number instead of country code,
for Callback, it shows the number with country code, so the call will not be initiated.
there is any way to replace ( 002 ) with(9) in the flow? so the agent will dial the number automatic and il will be initiated

Thanks in advance

@Emanhalim You could set the input value to the callback number equal to Replace(Call.ANI, "002", "9"). This would update the number that will be called.

1 Like

That would replace all instances of 002 with a 9, for example 0021234002 would become 912349. Try an expression like this

If(ToPhoneNumber(Call.Ani).dialingCode == "002", ToPhoneNumber("9"+ ToPhoneNumber(Call.Ani).subscriberNumber), ToPhoneNumber(Call.Ani))

That says if the dialingCode (i.e. country code) is 002, use 9 plus the rest of the number, otherwise just use the number as is.

2 Likes

Hello!

Thank you a lot for your support.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.