CTI model makeCall method omits special characters for phone numbers

Hi community,

[FreedomUI]

Is there any possibility to override or omit the formatting implementation for phone number inputs in communication options. Instead of getting ex. +48111222333, some fragment of the code before makeCall method in CTI model omits special characters like ''+''. I want the whole input in order to make queries to find Contact with the specific phone number. Images below should perfectly explain the issue.

Besides that I have a question regarding creating Call object when ContactId does not exist, because the client was not yet registered in the system. How can i make appear in the timeline for the person that answered a call?

Thanks in advance.

Like 7

Like

4 comments

My current approach is to manually add the '+' character, which might seem a bit simplistic. I also need to include extension numbers which are short and does not require country code, so I guess I could say below 9 is extension number. Other solution would to create a query in ContactCommunication table and look for the actual phone number with special characters. I’m just wondering if there’s a more elegant alternative.

Hi Tuan,

The "NotReplaceNonDigitsFromMakeCallNumber" feature is responsible for formatting the phone number:

To disable the formatting, go the "Feature toggling" page and enable the feature:

You can read more about this here:

https://academy.creatio.com/docs/8.x/dev/development-on-creatio-platform/platform-customization/interface-control-tools/existing-feature/overview

Eduard Dovydovskyi,

Thanks a lot. That works perfectly.

Eduard Dovydovskyi,

Would you maybe also know if it's possible to omit setting up call center parameters from SetupTelephonyParametersPageModule? I don't need it, but it's mandatory to fill in.

My take is to intercept the setting ctiSettings.connectionParams with something hard coded, just as a walk around.

Show all comments