Home

Callforwarding With Tenant's own DID

%3CLINGO-SUB%20id%3D%22lingo-sub-780892%22%20slang%3D%22en-US%22%3ECallforwarding%20With%20Tenant's%20own%20DID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-780892%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAs%20I%20understand%2C%20when%20enabling%20callforward%20to%20external%20number%2C%20the%20From%20user%20will%20be%20replaced%20with%20caller%20number.%20But%20for%20some%20reason%2C%20I%20need%20to%20set%20the%20From%20header%20to%20tenant's%20DID%20(%3CSPAN%3EOnPremLineURI).%20Can%20I%20do%20this%20from%20Phone%20System%20itself%2C%20and%20what%20command%20should%20I%20learn%3F%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EThank%20you%20in%20advance%20and%20have%20a%20very%20great%20day.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-780892%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783359%22%20slang%3D%22en-US%22%3ERe%3A%20Callforwarding%20With%20Tenant's%20own%20DID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783359%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F372492%22%20target%3D%22_blank%22%3E%40godril%3C%2FA%3E%2C%3C%2FP%3E%3CP%3Ewhat's%20your%20deployment%3F%20Teams%20Phone%20System%20with%20calling%20plans%20or%20Teams%20Direct%20Routing%3F%3C%2FP%3E%3CP%3EI%20usually%20manipulate%20SIP%20on%20a%20SBC%20in%20case%20of%20Microsoft%20Teams%20Direct%20Routing.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOn%20Microsoft%20Phone%20System%20there%20is%20a%20option%20to%20set-cscallinglineidentity%20but%20I'm%20not%20sure%20if%20this%20will%20work%20and%20can%20be%20applied%20for%20forwared%20calls.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fskype%2Fset-cscallinglineidentity%3Fview%3Dskype-ps%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fskype%2Fset-cscallinglineidentity%3Fview%3Dskype-ps%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-783865%22%20slang%3D%22en-US%22%3ERe%3A%20Callforwarding%20With%20Tenant's%20own%20DID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-783865%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F32867%22%20target%3D%22_blank%22%3E%40Erik%20Kleefeldt%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20replying.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20setup%20is%20direct%20routing.%20I%20dont%20think%20I%20can%20go%20with%26nbsp%3B%3CSPAN%3Eset-cscallinglineidentity%2C%20since%20it%20can%20only%20work%20with%20Calling%20Plan.%26nbsp%3B%3C%2FSPAN%3E%26nbsp%3BI've%20read%20the%20its%20howto%20back%20then%20when%20I%20was%20trying%20to%20set%20global%20callerid%20for%20a%20whole%20tenants%20in%20a%20realm.%20I%20thought%20about%20the%20SBC%20manipulation%20too.%20Just%20wondering%20perhaps%20it%20can%20be%20manupulated%20from%20phone%20system%20since%20it%20is%20theoretically%20a%20PBX.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797361%22%20slang%3D%22en-US%22%3ERe%3A%20Callforwarding%20With%20Tenant's%20own%20DID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797361%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F32867%22%20target%3D%22_blank%22%3E%40Erik%20Kleefeldt%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20tried%20many%20things%2C%20I%20managed%20to%20make%20it%20work%20as%20I%20wanted.%20By%20utilizing%20command%26nbsp%3BNew-CsCallingLineIdentity%2C%20I%20created%20Anonymous%20substitution%2C%20and%20then%20Grant-CsOnlineUser%20it%20to%20a%20user.%20Last%2C%20I%20enabled%20ForwardPAI%20on%20PSTN%20gateway.%20This%20way%20the%20forwarded%20call%20will%20be%20forced%20back%20to%20User's%20DDI%20instead%20original%20caller's%20number.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20to%20make%20it%20so%2C%20since%20outbound%20call%20in%20my%20network%20is%20filtered%20by%20callerid%20and%20ip%20address%20pair.%20So%20when%20outbound's%20callerid%20is%20a%20foreign%20number%20(unknown%20to%20my%20network)%2C%20it%20will%20be%20considered%20as%20illegal%20call.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20pointing%20me%20out%20to%20CsCallingLineIdentity%20in%20the%20first%20place.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-797458%22%20slang%3D%22en-US%22%3ERe%3A%20Callforwarding%20With%20Tenant's%20own%20DID%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-797458%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F372492%22%20target%3D%22_blank%22%3E%40godril%3C%2FA%3E%2C%20you%20are%20welcome.%20Good%20to%20hear%20that%20you%20got%20it%20to%20work.%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
godril
Occasional Contributor

Hello, 

 

As I understand, when enabling callforward to external number, the From user will be replaced with caller number. But for some reason, I need to set the From header to tenant's DID (OnPremLineURI). Can I do this from Phone System itself, and what command should I learn? 

 

Thank you in advance and have a very great day. 

4 Replies

Hi @godril,

what's your deployment? Teams Phone System with calling plans or Teams Direct Routing?

I usually manipulate SIP on a SBC in case of Microsoft Teams Direct Routing.

 

On Microsoft Phone System there is a option to set-cscallinglineidentity but I'm not sure if this will work and can be applied for forwared calls.

https://docs.microsoft.com/en-us/powershell/module/skype/set-cscallinglineidentity?view=skype-ps

Hi, @Erik Kleefeldt

 

Thank you for replying.

 

My setup is direct routing. I dont think I can go with set-cscallinglineidentity, since it can only work with Calling Plan.  I've read the its howto back then when I was trying to set global callerid for a whole tenants in a realm. I thought about the SBC manipulation too. Just wondering perhaps it can be manupulated from phone system since it is theoretically a PBX.

@Erik Kleefeldt 

 

After tried many things, I managed to make it work as I wanted. By utilizing command New-CsCallingLineIdentity, I created Anonymous substitution, and then Grant-CsOnlineUser it to a user. Last, I enabled ForwardPAI on PSTN gateway. This way the forwarded call will be forced back to User's DDI instead original caller's number. 

 

I have to make it so, since outbound call in my network is filtered by callerid and ip address pair. So when outbound's callerid is a foreign number (unknown to my network), it will be considered as illegal call. 

 

Thanks for pointing me out to CsCallingLineIdentity in the first place. 

Hi @godril, you are welcome. Good to hear that you got it to work. :)

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
16 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
cntvertex in Discussions on
11 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
28 Replies