Hi,
I'd like to transform called address on outbound calls using regex on the external trunk configuration.
If there is +39 in front of the number, I need to delete it.
After that, if the phone number is longer than 6 characters, I need to put "0" in front of the number.
I configured the regex:
^(sip:|tel:|sip[s]:)(+39)(.*) $1$3 --> to delete the +39, it works correctly
^(sip:|tel:|sip[s]:)(\d{6,})$ $1\x30$2 --> to add 0 (zero), but it doesn't work.
Called +393405438365 or 3405438365 the call comes out as: tel:3405438365 --> KO
Called 3456 or +393456 the call comes out as: tel:3456 --> OK
Using regex101.com, It seems to be working fine, but on GenesysCloud doesn't work.
Can you please help me to configure it?
Kind Regards,
Daniele