SOLVED

Getting a SIP 403 from Teams Direct Routing and debug/logs are worthless

%3CP%3E%3C%2FP%3E%3CP%3ECSEQ%3A%2030117%20INVITE%3C%2FP%3E%3CP%3ECALL-ID%3A%20186679315_39318390%4074.83.181.165%3C%2FP%3E%3CP%3EVIA%3A%20SIP%2F2.0%2FTLS%2074.83.181.165%3A5061%3Bbranch%3Dz9hG4bK00B06f1288e6986b1e9%3C%2FP%3E%3CP%3EREASON%3A%20Q.850%3Bcause%3D63%3Btext%3D%2257a3b8c8-386c-4cbf-bb46-8c8ea150bbee%3BCurrent%20call%20site%20state%20prevents%20fork%20to%20this%20entity.%22%3C%2FP%3E%3CP%3ERECORD-ROUTE%3A%20%26lt%3B5061%26gt%3B%3C%2FP%3E%3CP%3ECONTACT%3A%20%26lt%3B443%26gt%3B%3C%2FP%3E%3CP%3ECONTENT-LENGTH%3A%200%3C%2FP%3E%3CP%3EALLOW%3A%20INVITE%2CACK%2COPTIONS%2CCANCEL%2CBYE%2CNOTIFY%3C%2FP%3E%3CP%3ESERVER%3A%20Microsoft.PSTNHub.SIPProxy%20v.2021.2.9.1%20i.USEA.9%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ECSEQ%3A%2030117%20INVITE%3C%2FP%3E%3CP%3ECALL-ID%3A%20186679315_39318390%408.8.8.8%3C%2FP%3E%3CP%3EVIA%3A%20SIP%2F2.0%2FTLS%208.8.8.8%3A5061%3Bbranch%3Dz9hG4bK00B06f1288e6986b1e9%3C%2FP%3E%3CP%3EREASON%3A%20Q.850%3Bcause%3D63%3Btext%3D%2257a3b8c8-386c-4cbf-bb46-8c8ea150bbee%3BCurrent%20call%20site%20state%20prevents%20fork%20to%20this%20entity.%22%3C%2FP%3E%3CP%3ERECORD-ROUTE%3A%20%26lt%3B5061%26gt%3B%3C%2FP%3E%3CP%3ECONTACT%3A%20%26lt%3B443%26gt%3B%3C%2FP%3E%3CP%3ECONTENT-LENGTH%3A%200%3C%2FP%3E%3CP%3EALLOW%3A%20INVITE%2CACK%2COPTIONS%2CCANCEL%2CBYE%2CNOTIFY%3C%2FP%3E%3CP%3ESERVER%3A%20Microsoft.PSTNHub.SIPProxy%20v.2021.2.9.1%20i.USEA.9%3C%2FP%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2137042%22%20slang%3D%22en-US%22%3EGetting%20a%20SIP%20403%20from%20Teams%20Direct%20Routing%20and%20debug%2Flogs%20are%20worthless%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2137042%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20getting%20the%20following%20403%20and%20need%20assistance%20on%20dete%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESIP%2F2.0%20403%20Forbidden%3C%2FP%3E%3CP%3EFROM%3A%20%22CINCINNATI%2COH%22%26lt%3B%26gt%3B%3Btag%3DgK0006d317%3C%2FP%3E%3CP%3ETO%3A%20%26lt%3B5135550967%26gt%3B%3Btag%3D2f3f23b461d8472ca560abe407d5cff2%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CP%3E%3C%2FP%3E%3CP%3ECSEQ%3A%2030117%20INVITE%3C%2FP%3E%3CP%3ECALL-ID%3A%20186679315_39318390%408.8.8.8%3C%2FP%3E%3CP%3EVIA%3A%20SIP%2F2.0%2FTLS%208.8.8.8%3A5061%3Bbranch%3Dz9hG4bK00B06f1288e6986b1e9%3C%2FP%3E%3CP%3EREASON%3A%20Q.850%3Bcause%3D63%3Btext%3D%2257a3b8c8-386c-4cbf-bb46-8c8ea150bbee%3BCurrent%20call%20site%20state%20prevents%20fork%20to%20this%20entity.%22%3C%2FP%3E%3CP%3ERECORD-ROUTE%3A%20%26lt%3B5061%26gt%3B%3C%2FP%3E%3CP%3ECONTACT%3A%20%26lt%3B443%26gt%3B%3C%2FP%3E%3CP%3ECONTENT-LENGTH%3A%200%3C%2FP%3E%3CP%3EALLOW%3A%20INVITE%2CACK%2COPTIONS%2CCANCEL%2CBYE%2CNOTIFY%3C%2FP%3E%3CP%3ESERVER%3A%20Microsoft.PSTNHub.SIPProxy%20v.2021.2.9.1%20i.USEA.9%3C%2FP%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2137042%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-2376424%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20a%20SIP%20403%20from%20Teams%20Direct%20Routing%20and%20debug%2Flogs%20are%20worthless%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2376424%22%20slang%3D%22en-US%22%3EPlease%20share%20the%20value%20for%3CBR%20%2F%3EUsers%20%26gt%3B%20Select%20affected%20user%20%26gt%3B%20Policies%20%26gt%3B%20Calling%20policy%20-PreventTollByPass%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2377536%22%20slang%3D%22en-US%22%3ERe%3A%20Getting%20a%20SIP%20403%20from%20Teams%20Direct%20Routing%20and%20debug%2Flogs%20are%20worthless%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2377536%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20see%20a%20403%20error%20in%20response%20to%20difficulties%20placing%20calls%20see%20if%20you%20are%20also%20noting%20a%20Q850%20response%20from%20Microsoft.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExplanation%3C%2FP%3E%3CP%3EQ850%20responses%20provide%20reason%20codes%20which%20may%20also%20carry%20verbose%20detail%20on%20the%20cause%20for%20the%20rejection.%3C%2FP%3E%3CP%3ESome%20diagnostics%20may%20be%20necessary%20to%20establish%20the%20reason%20why%20Microsoft%20are%20rejecting%20a%20call%20and%20where%20we%20can%20we%20will%20offer%20suggestions%20as%20to%20how%20these%20can%20be%20resolved.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EExample%3C%2FP%3E%3CP%3E%3CSPAN%3EReason%20header%3A%20Q.850%20%3Bcause%3D63%20%3Btext%3D%229810e5a9-667c-4513-8d3a-5d83503e1c71%3BCurrent%20call%20site%20state%20prevents%20fork%20to%20this%20entity.%22%3C%2FSPAN%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPossible%20solution%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fallow-teamsonly-user-for-outgoing-pstn-calls%2Fm-p%2F324228%22%20target%3D%22_blank%22%3EAllowCallingPreventTollByPass%20Setting%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Regular Visitor

We are getting the following 403 and need assistance on dete

 

SIP/2.0 403 Forbidden

FROM: "CINCINNATI,OH"<sip:+15135557313@customer1.sbc1.directroute.com>;tag=gK0006d317

TO: <sip:5135550967@sip.pstnhub.microsoft.com>;tag=2f3f23b461d8472ca560abe407d5cff2

CSEQ: 30117 INVITE

CALL-ID: 186679315_39318390@8.8.8.8

VIA: SIP/2.0/TLS 8.8.8.8:5061;branch=z9hG4bK00B06f1288e6986b1e9

REASON: Q.850;cause=63;text="57a3b8c8-386c-4cbf-bb46-8c8ea150bbee;Current call site state prevents fork to this entity."

RECORD-ROUTE: <sip:sip-du-a-us.pstnhub.microsoft.com:5061;transport=tls;lr>

CONTACT: <sip:api-du-b-usea.pstnhub.microsoft.com:443;x-i=57a3b8c8-386c-4cbf-bb46-8c8ea150bbee;x-c=a9f7ba1c16b556bc83765fe3b6e87180/s/1/ca57a5aa43874096aa09d6791488907b>

CONTENT-LENGTH: 0

ALLOW: INVITE,ACK,OPTIONS,CANCEL,BYE,NOTIFY

SERVER: Microsoft.PSTNHub.SIPProxy v.2021.2.9.1 i.USEA.9

2 Replies
Please share the value for
Users > Select affected user > Policies > Calling policy -PreventTollByPass
best response confirmed by ThereseSolimeno (Microsoft)
Solution

If you see a 403 error in response to difficulties placing calls see if you are also noting a Q850 response from Microsoft.

 

Explanation

Q850 responses provide reason codes which may also carry verbose detail on the cause for the rejection.

Some diagnostics may be necessary to establish the reason why Microsoft are rejecting a call and where we can we will offer suggestions as to how these can be resolved.

 

Example

Reason header: Q.850 ;cause=63 ;text="9810e5a9-667c-4513-8d3a-5d83503e1c71;Current call site state prevents fork to this entity." 

Possible solution: AllowCallingPreventTollByPass Setting