Forum Discussion
Number to Username Translation, Is it possible?
- Oct 05, 2019
godril I've just performed a little science experiment. I ran the following PowerShell command for a user in our tenant which does not have a PSTN assigned:
Set-CsUser -Identity userwithnopstn@example.com -OnPremLineURI tel:1234I then dialed "1234" from Teams and the call was successfully routed to the user. So yes, it does seem it should be possible.
godril I've just performed a little science experiment. I ran the following PowerShell command for a user in our tenant which does not have a PSTN assigned:
Set-CsUser -Identity userwithnopstn@example.com -OnPremLineURI tel:1234I then dialed "1234" from Teams and the call was successfully routed to the user. So yes, it does seem it should be possible.
Hi Ryan Steele
Why on earth didnt I think of this before!? So basically it can accept any type of numbers, and not just E164 and I dont have to enable EnterpriseVoice? Must try this first thing in Monday morning. Thank you very much.
Have a very nice weekend.
- Ryan SteeleOct 06, 2019Bronze Contributor
godril I believe the account does need to be licensed for Phone System and have Enterprise Voice enabled. I will also mention that we are using Calling Plans exclusively and haven't implemented Direct Routing, so I'm not sure whether that would make any difference for your scenario.
- godrilOct 20, 2019Brass Contributor
Hi Ryan Steele ,
just want to update with the tinkering. In the Direct Routing I have to Set-CsUser with OnpremlineURI tel: +1001 . It needs to be E164 formatted. From there on I just have to create Tenant Normalization rule and set IsInternalExtension to $false (at first my pbx mindset automatically make $true and it didnt work). And then adding some rule in the SBC for intercall with other PBX as paul-lange suggested.
So thanks again for the clue.
- godrilOct 08, 2019Brass Contributor
I tried assign such extension to an account, and make sure the dialed number would not be sent to sbc by adding Normalization with option -IsInternalExtension $true . But somehow it still went out to sbc. I think it is caused by the CsOnlineVoiceRoute which the pattern is set to .*
I will try to find the best time to mess with the Phone System config later.