question

BaiAndy-9844 avatar image
0 Votes"
BaiAndy-9844 asked RandyChapman-5722 commented

Direct Routing: Call 4 digits extension number by MS Teams Client

Dear All,

I have assign phone numbers for the users like the following. Can we call the extension number? As i called, it failed, only call +12149967387 or +12149967387;ext=7387. When call 7387, it failed. That is expected behavior or any workaround to realize it? Thanks.
Set-CsUser -Identity "leeg@mibaicloud06.onmicrosoft.com" -OnPremLineURI "tel:+12149967387;ext=7387" -EnterpriseVoiceEnabled $true -HostedVoiceMail $true
132682-image.png


office-teams-windows-itpro
image.png (3.2 KiB)
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@BaiAndy-9844,
How long after you finish the setting?
Generally, it should take up more than 12 hours before take effect.

0 Votes 0 ·

Hi Sharon,

Thanks for your response.

It has been 24 hours.

Thanks,

0 Votes 0 ·

No sure whether MS support dial extension number or not. I know we can use dial plan to do the translation, but we have a lots of DID numbers with different area code.

0 Votes 0 ·

Hi Sharon,

Any idea about it? Thanks.

Andy

0 Votes 0 ·

@BaiAndy-9844,
Do you use Teams client to call the extension number?

0 Votes 0 ·

@SharonZhao-MSFT
Do you use Teams client to call the extension number?
Andy>Yes. I mean Teams clients call peers by extension number.

0 Votes 0 ·

@BaiAndy-9844,

I don't get more clues about this problem now.

If I have any idea about this, I will share here as soon as possible.

Thanks for your patience and understanding.

0 Votes 0 ·

1 Answer

bquillet avatar image
0 Votes"
bquillet answered RandyChapman-5722 commented

you need to create a Dial plan and assign it to your teams users ...
https://admin.teams.microsoft.com/policies/teamsdialplan/add
call 4 gigits
Patern ^(7\d{3})$
Translation +1214996$1;ext=$1
for more info : https://docs.microsoft.com/en-us/microsoftteams/what-are-dial-plans
134039-dialplan.png



dialplan.png (99.0 KiB)
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Sharon,

That is a good way to realize the requirements, but we have several different DID numbers with a different prefixes, like 214271XXXX, 469271XXXX, etc. So, that is what i am concerned, how to dial 4 digits if we have different DID numbers. Thanks.

0 Votes 0 ·

Hi Sharon,

Pls ignore my previous comments. your workaround is feasible for my current environment. Thanks.

0 Votes 0 ·

@BaiAndy-9844,
Thanks for @bquillet's kindly sharing. It is really good news.

0 Votes 0 ·

@ bquillet

Appreciate for your great support.

0 Votes 0 ·

Hi Sharon
Very useful blog – thank you.
How can we achieve that users without an full (for ex.) +441635776443 DID could be reached by colleagues inside the same company by a 4 digit number?
I know, we always advise customers to use names to call team members AND to assign a DID to all Users, but unfortunately there are some situations, where this kind of setup is not possible, and this feature is required.
For example:

Customer DID Range (with Direct Routing): +441635776400 to +441635776499
User A: +441635776445;ext=6445
User B: User without DID Number – Mobil Phone User only or Field Engineers for example. This User needs an Internal 4 Digit Number Only like 5045 (in addition to MS Teams).
User A must be able to dial 5045 via MS Teams to reach User B and the other way around as well but we can achieve this using Normalization Rules in Dial-Plans -> User B dials 6445 and reaches User A.
Is there a solution with dial-plan/normaliziation rules without the need to adding an additional prefix like 9-5045 to the "old existing and known" extension 5045 of User B (used on the old on-prem PBX System).
Is there any way to achieve such a result?

Many thanks in advance for your feedback.

0 Votes 0 ·

Hi Fabio,

Ext dialing in Teams is basically the same as it was in SfB, Lync and OCS. Just assign the number you want a user to be reached on and make sure there is a dial plan and normalization to make sure it gets there. Use the new set-csphonenumberassignment cmdlet

like this
Set-CsPhoneNumberAssignment -Identity userB@domain.com -PhoneNumberType DirectRouting -PhoneNumber 5045

Wait a little while and call the user. I was able to dial +5045 from the Teams desktop client and an MTRA and it routed fine without a normalization rule in the dial plan.

Then I decided to create a normalization rule to add the + for me
Pattern: ^(50\d{2})$
Translation: +$1

After that I was able to dial 5045 and it routed to the user I assigned it to as an internal call.

I hope this helps

0 Votes 0 ·