SOLVED

Direct Routing Outbound Number

%3CLINGO-SUB%20id%3D%22lingo-sub-1331457%22%20slang%3D%22en-US%22%3EDirect%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1331457%22%20slang%3D%22en-US%22%3E%3CP%3EHello%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20currently%20testing%20Teams%20calling%20with%20the%20anticipation%20of%20using%20it%20productively%20for%20the%20whole%20company.%3C%2FP%3E%3CP%3EThe%20setup%20with%20the%20sbc%20and%20users%20was%20successfull.%3C%2FP%3E%3CP%3EHowever%3A%20When%20a%20user%20dials%20out%20to%20a%20external%20PSTN%20number%2C%20the%20person%20receiving%20the%20call%20only%20sees%20the%20default%20number%20from%20the%20SBC%20and%20not%20the%20user%20number.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEx.%20User%20A%20with%20number%20%2B123456789%20dials%20out%20to%20User%20B%20(external%20number)%20%2B987654321%3C%2FP%3E%3CP%3EThe%20User%20B%20now%20sees%20the%20default%20number%20set%20on%20the%20sbc%20(ex.%20%2B123456780)%20instead%20of%20the%20User%20A%20number.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1331457%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDirect%20Routing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPSTN%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1331479%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1331479%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F398426%22%20target%3D%22_blank%22%3E%40Lars_Nestler%3C%2FA%3E%26nbsp%3BThe%20default%20number%20on%20the%20SBC%3F%20Is%20that%20a%20configuration%20you%20have%20done%20in%20your%20SBC%20to%20replace%20the%20Caller%20number%20with%20this%20default%20number%3F%20If%20you%20don't%20have%20any%20rules%20in%20your%20SBC%20to%20change%20the%20caller%20number%20it%20should%20show%20the%20number%20of%20User%20A.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20some%20tracing%20on%20your%20SBC%20and%20see%20what%20you%20send%20out%20to%20your%20operator%2C%20so%20that%20you%20send%20out%20the%20correct%20number%20in%20the%20SIP%20INVITE.%20It%20could%20be%20your%20ITSP%20that%20changed%20this%20number%20for%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1332005%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1332005%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9476%22%20target%3D%22_blank%22%3E%40Linus%20Cansby%3C%2FA%3EThanks%20for%20your%20fast%20answer.%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20are%20hosting%20our%20SBC%20from%20an%20external%20provider.%20In%20the%20admin%20portal%20for%20the%20SBC%20we%20can%20setup%20a%20fixed%20display%20number%20for%20the%20whole%20SIP%20Trunk%2C%20but%20we%20can%20also%20configure%20it%20to%20take%20the%20information%20from%20the%20call%20%2F%20teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20emailed%20our%20sbc%20provider%20and%20asked%20them%20about%20this%20case.%20Sadly%20I%20can't%20trace%20a%20call%20on%20the%20sbc%20as%20we%20do%20not%20have%20access%20to%20it%20(other%20than%20the%20admin%20web%20portal).%20I've%20already%20looked%20into%20tracing%20a%20call%20from%20my%20local%20machine%2C%20but%20the%20whole%20traffic%20is%20encrypted%20(as%20should%20be).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20await%20the%20answer%20from%20our%20sbc%20provider%20and%20update%20this%20thread.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333517%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333517%22%20slang%3D%22en-US%22%3E%3CP%3EHi%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F398426%22%20target%3D%22_blank%22%3E%40Lars_Nestler%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20check%20your%20Caller%20ID%20Policies%20in%20the%20Teams%20Admin%20Center%3F%20If%20you%20login%20to%20the%20Teams%20Admin%20Center%2C%20under%20Voice%20-%26gt%3B%20Caller%20ID%20Policies...%20Check%20you%20Global%20policy%20to%20see%20what%20it%20is%20set%20to.%26nbsp%3B%20The%20options%20here%20are%20to%20use%20the%20%22User's%20number%22%2C%20use%20a%20%22Service%20Number%22%20or%20set%20to%20%22Anonymous%22.%26nbsp%3B%20If%20it%20is%20already%20set%20to%20User's%20Number%20or%20Anonymous%2C%20but%20still%20showing%20a%20different%20number%2C%20then%20there%20is%20most%20likely%20a%20Transformation%20Rule%20on%20the%20SBC%20that's%20setting%20that%20number%20for%20you.%26nbsp%3B%20We%20also%20have%20Direct%20Routing%20for%20my%20company%2C%20and%20I%20purposely%20setup%20this%20exact%20same%20Transformation%20Rule%20on%20our%20SBC%2C%20so%20that%20all%20outgoing%20calls%20show%20the%20company's%20Primary%20Number.%26nbsp%3B%20The%20rule%20would%20look%20something%20like%20the%20following%20on%20the%20SBC%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMatch%20Type%3A%20Optional%20(Match%20One)%3C%2FP%3E%3CP%3EInput%20Field%20Type%3A%20Calling%20Address%2FNumber%3C%2FP%3E%3CP%3EInput%20Field%20Value%3A%20%5C%2B%3F(.*)%3C%2FP%3E%3CP%3EOutput%20Field%20Type%3A%20Calling%20Address%2FNumber%3C%2FP%3E%3CP%3EOutput%20Field%20Value%3A%20%3CTHE%20number%3D%22%22%20you%3D%22%22%20want%3D%22%22%20as%3D%22%22%20outgoing%3D%22%22%20caller-id%3D%22%22%3E%3C%2FTHE%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333530%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333530%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F634767%22%20target%3D%22_blank%22%3E%40ChykeM%3C%2FA%3E%26nbsp%3BProbably%20not%20the%20Caller%20ID%20Policy%20since%20you%20can%20only%20set%20a%20Service%20number%20provided%20by%20Microsoft%20here%2C%20not%20a%20Direct%20Routing%20number%20manged%20in%20the%20SBC.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1333580%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1333580%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9476%22%20target%3D%22_blank%22%3E%40Linus%20Cansby%3C%2FA%3EGood%20point.%26nbsp%3B%20Guess%20I%20was%20looking%20at%20this%20from%20our%20POV%2C%20where%20we%20also%20considered%20porting%20in%20our%20own%20Service%20Numbers%20for%20our%20Auto%20Attendants.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1349817%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1349817%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F634767%22%20target%3D%22_blank%22%3E%40ChykeM%3C%2FA%3E%26nbsp%3BThanks%20for%20the%20idea%2C%20but%20as%20pointed%20out%20before%20%5E%20the%20caller%20id%20setting%20is%20set%20to%20%22%3CSPAN%3EUser's%20number%22.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F9476%22%20target%3D%22_blank%22%3E%40Linus%20Cansby%3C%2FA%3E%26nbsp%3BAs%20far%20as%20the%20sbc%20provider%20is%20concerned%2C%20it%20looks%20like%20teams%20doesn't%20include%20the%20callerid%20in%20the%20sip%20call.%20Because%20of%20that%20the%20sbc%20chooses%20the%20%22default%22%20number%20of%20the%20call.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAre%20there%20any%20other%20settings%20which%20have%20to%20be%20taken%20in%20account%20in%20regards%20to%20this%20problem%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20have%20changed%20the%20-ForwardPai%20setting%20of%20the%20sbc%20to%20%24true%2C%20but%20this%20still%20didn't%20help.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3EDoes%20anyone%20have%20any%20other%20ideas%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20a%20lot!%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1398381%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20Outbound%20Number%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1398381%22%20slang%3D%22en-US%22%3E%3CP%3EAlright%2C%20I%20have%20found%20the%20answer.%3C%2FP%3E%3CP%3EWe%20had%20our%20direct%20routing%20numbers%20configured%20as%3A%20%3CEM%3Etel%3A%2B12345678900%3B%3CSTRONG%3Eext%3D900%26nbsp%3B%3C%2FSTRONG%3E%3C%2FEM%3Eso%20that%20the%20user%20see's%20his%20%2F%20her%20internal%20extension%20in%20teams.%3C%2FP%3E%3CP%3EThis%20however%2C%20sent%20out%20the%20whole%20number%20(as%20shown%20above)%20in%20the%20%22FROM%22%20address%20of%20the%20SIP%20package.%3C%2FP%3E%3CP%3EOur%20SBC%20was%20then%20not%20able%20to%20translate%20that%20number%20(as%20there%20were%20letters)%20and%20set%20the%20number%20to%20the%20default%20fallback%20one.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps%20others%2C%20who%20might%20have%20the%20same%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Occasional Contributor

Hello

 

We are currently testing Teams calling with the anticipation of using it productively for the whole company.

The setup with the sbc and users was successfull.

However: When a user dials out to a external PSTN number, the person receiving the call only sees the default number from the SBC and not the user number.

 

Ex. User A with number +123456789 dials out to User B (external number) +987654321

The User B now sees the default number set on the sbc (ex. +123456780) instead of the User A number.

 

Thanks for your help. 

7 Replies

@Lars_Nestler The default number on the SBC? Is that a configuration you have done in your SBC to replace the Caller number with this default number? If you don't have any rules in your SBC to change the caller number it should show the number of User A.

 

Do some tracing on your SBC and see what you send out to your operator, so that you send out the correct number in the SIP INVITE. It could be your ITSP that changed this number for you.

@Linus CansbyThanks for your fast answer. 

We are hosting our SBC from an external provider. In the admin portal for the SBC we can setup a fixed display number for the whole SIP Trunk, but we can also configure it to take the information from the call / teams.

 

I have emailed our sbc provider and asked them about this case. Sadly I can't trace a call on the sbc as we do not have access to it (other than the admin web portal). I've already looked into tracing a call from my local machine, but the whole traffic is encrypted (as should be).

 

I will await the answer from our sbc provider and update this thread.

Hi@Lars_Nestler 

Did you check your Caller ID Policies in the Teams Admin Center? If you login to the Teams Admin Center, under Voice -> Caller ID Policies... Check you Global policy to see what it is set to.  The options here are to use the "User's number", use a "Service Number" or set to "Anonymous".  If it is already set to User's Number or Anonymous, but still showing a different number, then there is most likely a Transformation Rule on the SBC that's setting that number for you.  We also have Direct Routing for my company, and I purposely setup this exact same Transformation Rule on our SBC, so that all outgoing calls show the company's Primary Number.  The rule would look something like the following on the SBC:

 

Match Type: Optional (Match One)

Input Field Type: Calling Address/Number

Input Field Value: \+?(.*)

Output Field Type: Calling Address/Number

Output Field Value: <The number you want as Outgoing Caller-ID>

 

Hope this helps.

@ChykeM Probably not the Caller ID Policy since you can only set a Service number provided by Microsoft here, not a Direct Routing number manged in the SBC.

@Linus CansbyGood point.  Guess I was looking at this from our POV, where we also considered porting in our own Service Numbers for our Auto Attendants.

 

Thanks!

@ChykeM Thanks for the idea, but as pointed out before ^ the caller id setting is set to "User's number".

@Linus Cansby As far as the sbc provider is concerned, it looks like teams doesn't include the callerid in the sip call. Because of that the sbc chooses the "default" number of the call.

Are there any other settings which have to be taken in account in regards to this problem?

I have changed the -ForwardPai setting of the sbc to $true, but this still didn't help.

 

Does anyone have any other ideas?

Thanks a lot!

best response confirmed by Lars_Nestler (Occasional Contributor)
Solution

Alright, I have found the answer.

We had our direct routing numbers configured as: tel:+12345678900;ext=900 so that the user see's his / her internal extension in teams.

This however, sent out the whole number (as shown above) in the "FROM" address of the SIP package.

Our SBC was then not able to translate that number (as there were letters) and set the number to the default fallback one.

 

Hope this helps others, who might have the same issue.

 

www.000webhost.com