The Identity Trunk settings are for Outbound calls only.
You can change the inbound ANI in PureCloud Architect using the Update Data tool-step. ANI (Call.Ani) is a string value.
Using Update Data you can set a string variable (e.g., Task.strPhoneLookupValue) to something like this expression:
FindString(Call.Ani,"tel:+9")==0?Append("+56",Right(Call.Ani,Length(Call.ANI)-6)):Call.AniWhere, if the first characters in Call.Ani are "tel:+9", then set the varialbe to "+56" plus everything but "tel:+9" of Call.Ani.
If Call.Ani does not start with "tel:+9", then set the variable to Call.Ani (which is probably not useful, but just to give you an idea...).
So, for example, if Call.Ani is "tel:+92297920000" the lookup variable will be set to "+562297920000".
You will want to verify what the inbound Call.Ani starts with. I am guessing that it may start with "tel:+9".
In my PureCloud instance, the Call.Ani usually starts with "tel:+1".
A quick way to check the value of Call.Ani and if the Expression above is working is to use a Play Audio tool in your flow to spell out Call.Ani or the set variable by selecting "say each character".
------------------------------
Dan Fontaine
Altivon
------------------------------
Original Message:
Sent: 01-02-2020 10:21
From: Sebastian Valenzuela
Subject: Regular expression to match with SAP Hybris
Hello Team,
I'm working into an integration between PureCloud and SAP Hybris.
The thing is that when I receive the number from the PBX, I receive the following:
I need to change the incoming number from 9229792000 to +56229792000.
I tried several attempts with regular expression in admin/external trunks/customer trunk/Identity, but I'm not doing this properly.
Does anyone knows how to make the regular expression to match with 9229792000 and change it to: +56229792000?
Thank you.
#ArchitectureandDesign
#PlatformAdministration
#SIP/VolP
#SystemAdministration
#Telephony
------------------------------
Sebastian Valenzuela
------------------------------