Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove leading digit from phone number #3

Open
3m-tk opened this issue Apr 3, 2022 · 1 comment
Open

Remove leading digit from phone number #3

3m-tk opened this issue Apr 3, 2022 · 1 comment

Comments

@3m-tk
Copy link

3m-tk commented Apr 3, 2022

Hi All,

I have phone numbers stored within Connectwise Manage which are not compliant with E.164 standards (eg. 0411 111 111 and not as +61 411 111 111).

I have tried to amend the script to strip the leading character from the phone number without success (I have changed the digit within telUri = "tel:" & Right(telUri,Len(telUri)-6) 'REMOVE PRECEEDING skype: STRING, ADD PREFIX tel: from 6 to 7 and this doesn't seem to work either).

I have also tried to add a dial plan within the Teams admin centre to strip the leading zero but again without success.

image

Can anyone point me in the right direction on how to approach this?

Any input would be greatly appreciated.

@alangreenwood
Copy link

alangreenwood commented Apr 11, 2022

Hi @3m-tk

You don't seem to be getting a response from the original author, so I'll try to help.

I've re-written this as a VBScript instead of the batch file, which means the black command prompt window doesn't flash up. I also changed it so that the url type tel:xxxxx was for the whole machine rather than just the current user. Unfortunately, that required Administrator access to the Powershell command prompt for install.

If you want a single user only version, let me know and I'll adjust.

Basically my fix will remove the "skype:" prefix and the trailing "?call". Then if the number starts with "0", it'll be replaced with "+61" and then "tel:" added as the prefix.

I've attached a fix for you to try here:
install.ps1.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants