Clean up phone number before dial

Any and all non-support discussions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

Clean up phone number before dial

Postby lmoreira » Wed Sep 22, 2021 11:24 am

Hi Guys,

When a Agent use manual dial and insert non digits characters into "Phone Number" field, it might break some codes down the system.

We've got an example: agent copy and past number: "11)28808-9756" into Phone Number and hit FAST DIAL.

So, this action broken AST_update_AMI2.pl causing TimeSync issue on server. Makes recording filename breaks and so on...

Running AST_update_AMI2.pl from terminal, I got this:
Code: Select all
Unmatched ) in regex; marked by <-- HERE in m/LIGUEMOT_20210922-124519_11) <-- HERE 98/ at /usr/share/astguiclient/AST_update_AMI2.pl line 781.


So, Phone Number field should be filtered for only digits before any further action on agent screen.
--
Luciano Moreira
Consultor ViciDial no Brasil | Web: www.logictelecom.com.br | Telegram: https://t.me/luciano_logictelecom | ViciBox V9.x
lmoreira
 
Posts: 54
Joined: Wed Oct 01, 2008 6:51 pm

Re: Clean up phone number before dial

Postby carpenox » Wed Sep 22, 2021 11:00 pm

it is filtered for only digits
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Clean up phone number before dial

Postby mflorell » Wed Sep 22, 2021 11:04 pm

vicidial.php version and build?

Do you have Non-Latin(UTF-8) enabled in System Settings?
mflorell
Site Admin
 
Posts: 18383
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: Clean up phone number before dial

Postby lmoreira » Fri Sep 24, 2021 8:07 am

mflorell wrote:vicidial.php version and build?

Do you have Non-Latin(UTF-8) enabled in System Settings?


VERSION: 2.14-830a
BUILD: 210920-2159

Yep, Non-Latin(UTF-8) enabled.

Phone Number field accept text, not only digits.
--
Luciano Moreira
Consultor ViciDial no Brasil | Web: www.logictelecom.com.br | Telegram: https://t.me/luciano_logictelecom | ViciBox V9.x
lmoreira
 
Posts: 54
Joined: Wed Oct 01, 2008 6:51 pm

Re: Clean up phone number before dial

Postby carpenox » Fri Sep 24, 2021 8:10 am

Its because of the non-latin enabled, without that enabled it will filter non numbers
Alma Linux 9.4 | SVN Version: 3889 | DB Schema Version: 1721 | Asterisk 18.21.1 | PHP8
www.dialer.one -:- 1-833-DIALER-1 -:- https://linktr.ee/CyburDial -:- WA: +19549477572
GC: https://join.skype.com/ujkQ7i5lV78O | DC: https://discord.gg/DVktk6smbh
carpenox
 
Posts: 2418
Joined: Wed Apr 08, 2020 2:02 am
Location: St Petersburg, FL

Re: Clean up phone number before dial

Postby lmoreira » Fri Sep 24, 2021 9:14 am

carpenox wrote:Its because of the non-latin enabled, without that enabled it will filter non numbers


A javascript could filter it out or just clean up variable on submit.
--
Luciano Moreira
Consultor ViciDial no Brasil | Web: www.logictelecom.com.br | Telegram: https://t.me/luciano_logictelecom | ViciBox V9.x
lmoreira
 
Posts: 54
Joined: Wed Oct 01, 2008 6:51 pm

Re: Clean up phone number before dial

Postby lmoreira » Mon Sep 27, 2021 6:46 am

lmoreira wrote:
carpenox wrote:Its because of the non-latin enabled, without that enabled it will filter non numbers


A javascript could filter it out or just clean up variable on submit.


What I mean is:
Is it possible to change Agent GUI to filter out any non-digits from PhoneNumber fields on submit?
--
Luciano Moreira
Consultor ViciDial no Brasil | Web: www.logictelecom.com.br | Telegram: https://t.me/luciano_logictelecom | ViciBox V9.x
lmoreira
 
Posts: 54
Joined: Wed Oct 01, 2008 6:51 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 48 guests