Hold Resume MS Direct Routing

%3CLINGO-SUB%20id%3D%22lingo-sub-1618050%22%20slang%3D%22en-US%22%3EHold%20Resume%20MS%20Direct%20Routing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1618050%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20building%20a%20new%20SBC%20for%20direct%20routing%20with%20media%20bypass%20enabled%20and%20can%20handle%20REFER%20method%20internally%20and%20externally%20so%20all%20my%20call%20transfers%20are%20working%20just%20fine.%3C%2FP%3E%3CP%3EBut%20I'm%20facing%20a%20problem%20with%20PSTN%20HOLD%2FRESUME%20scenario%20!%3C%2FP%3E%3CP%3Esometimes%20it%20works%20and%20sometimes%20it's%20not%20without%20a%20single%20change%20in%20the%20SBC%20configuration.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Efor%20any%20inbound%2Foutbound%20call%20from%2Fto%20teams%20by%20clicking%20on%20HOLD%20in%20teams%20the%20following%20happens%20when%20it%20works%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMS%20SIP%20proxy%20sends%20a%20REFER%20message%20internally%20with%20x-m%20and%20x-t%20records%3C%2FP%3E%3CP%3ESBC%20responds%20with%20202%20Accepted%3C%2FP%3E%3CP%3ESBC%20sends%20a%20new%20Invite%20%22new%20dialog%22%20back%20to%20MS%20SIP%20proxy%3C%2FP%3E%3CP%3ESBC%20sends%20NOTIFY%20messages%20100%2C180%2C200%20which%20are%20all%20accepted%20and%20I%20hear%20ringing%20for%201-2%20secs%20then%20music%20on%20hold%20starts%20which%20is%20a%20bit%20strange%20from%20MS%20but%20OK%20for%20now.%3C%2FP%3E%3CP%3EMS%20SIP%20proxy%20ends%20the%20other%20leg%20with%20a%20BYE%20message%20as%20the%20call%20was%20transferred%20to%20MOH%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20clicking%20resume%20and%20it%20takes%20about%202-3%20seconds%3C%2FP%3E%3CP%3EMS%20SIP%20proxy%20sends%20a%20new%20invite%20with%20the%20same%20above%20details%20with%20a%20REPLACE%20that%20will%20replace%20the%20MOH%20call%20id%20%2C%20from%2Fto%20tags%20with%20this%20new%20invite%20to%20resume%20the%20call%20and%20it's%20handled%20perfectly%20from%20the%20SBC%20and%20call%20is%20resumed.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhen%20it%20doesn't%20work%20(just%20randomly%20without%20any%20SBC%20change)%3C%2FP%3E%3CP%3ESame%20scenario%20in%20the%20REFER%20but%3C%2FP%3E%3CP%3EMS%20SIP%20proxy%20doesn't%20send%20the%20BYE%20message%20when%20the%20call%20is%20transferred%20to%20MOH%20and%20the%20mess%20starts%3C%2FP%3E%3CP%3EI'm%20still%20on%20the%20call%20leg%20and%20when%20click%20RESUME%3C%2FP%3E%3CP%3EMS%20tries%20to%20re-invite%20the%20call%20which%20is%20not%20valid%20and%20I%20got%20disconnected%20while%20the%20other%20leg%20is%20still%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewhen%20disabling%20media%20bypass%20and%20disabling%20REFER%20from%20the%20allow%20SIP%20methods%20both%20transfers%20and%20hold%2Fresume%20scenarios%20works%20with%20only%20re-invites%20from%20MS%20SIP%20proxy%20and%20they%20are%20perfectly%20fine.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Eanyone%20facing%20these%20problems%20with%20REFER%20and%20Media%20Bypass%20enabled%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1618050%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDirect%20Routing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EHold%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Teams%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPSTN%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Eresume%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1623909%22%20slang%3D%22en-US%22%3ERe%3A%20Hold%20Resume%20MS%20Direct%20Routing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1623909%22%20slang%3D%22en-US%22%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%20%2C%20can%20you%20assist%20here%3F%20%3CBR%20%2F%3E%3CBR%20%2F%3EAdam%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1860883%22%20slang%3D%22en-US%22%3ERe%3A%20Hold%20Resume%20MS%20Direct%20Routing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1860883%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F774304%22%20target%3D%22_blank%22%3E%40afouad5%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHello%20I%20am%20having%20very%20similar%20problem%3A%3C%2FP%3E%3CP%3Etransfer%20works%20nicely%2C%20unhold%20action%20does%20not%20(It%20creates%20a%20new%20call%20leg%20from%20Teams%20strangely).%3C%2FP%3E%3CP%3EThe%20full%20story%20is%20here%3A%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fms-teams-direct-routing-internal-call-transfer-failure%2Fm-p%2F1860842%2Fhighlight%2Ftrue%23M76762%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fmicrosoft-teams%2Fms-teams-direct-routing-internal-call-transfer-failure%2Fm-p%2F1860842%2Fhighlight%2Ftrue%23M76762%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20manage%20to%20get%20anywhere%20with%20your%20issue%3F%3C%2FP%3E%3CP%3ETHX%26nbsp%3B%3C%2FP%3E%3CP%3EG%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1865370%22%20slang%3D%22en-US%22%3ERe%3A%20Hold%20Resume%20MS%20Direct%20Routing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1865370%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F360557%22%20target%3D%22_blank%22%3E%40G____%3C%2FA%3EYes%20I%20fixed%20the%20problem%20with%20my%20SBC%20and%20it%20was%20from%20my%20end%20as%20NOTIFY%20messages%20weren't%20sent%20in%20the%20right%20order%20100%20-%26gt%3B%2018(03)%20-%26gt%3B%20200%20and%20this%20was%20causing%20the%20mess%20and%20sometimes%20error%20500%20back%20from%20MS%20Teams.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20explanation%20is%20the%20same%20for%20the%20hold%2Fresume%20scenarios%20so%20what%20exactly%20is%20your%20current%20problem%20%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor

Hi,

 

I'm building a new SBC for direct routing with media bypass enabled and can handle REFER method internally and externally so all my call transfers are working just fine.

But I'm facing a problem with PSTN HOLD/RESUME scenario !

sometimes it works and sometimes it's not without a single change in the SBC configuration.

 

for any inbound/outbound call from/to teams by clicking on HOLD in teams the following happens when it works

 

MS SIP proxy sends a REFER message internally with x-m and x-t records

SBC responds with 202 Accepted

SBC sends a new Invite "new dialog" back to MS SIP proxy

SBC sends NOTIFY messages 100,180,200 which are all accepted and I hear ringing for 1-2 secs then music on hold starts which is a bit strange from MS but OK for now.

MS SIP proxy ends the other leg with a BYE message as the call was transferred to MOH

 

When clicking resume and it takes about 2-3 seconds

MS SIP proxy sends a new invite with the same above details with a REPLACE that will replace the MOH call id , from/to tags with this new invite to resume the call and it's handled perfectly from the SBC and call is resumed.

 

When it doesn't work (just randomly without any SBC change)

Same scenario in the REFER but

MS SIP proxy doesn't send the BYE message when the call is transferred to MOH and the mess starts

I'm still on the call leg and when click RESUME

MS tries to re-invite the call which is not valid and I got disconnected while the other leg is still there.

 

when disabling media bypass and disabling REFER from the allow SIP methods both transfers and hold/resume scenarios works with only re-invites from MS SIP proxy and they are perfectly fine.

 

anyone facing these problems with REFER and Media Bypass enabled ?

3 Replies
Highlighted
@Linus Cansby , can you assist here?

Adam
Highlighted

@afouad5

 

Hello I am having very similar problem:

transfer works nicely, unhold action does not (It creates a new call leg from Teams strangely).

The full story is here: 

https://techcommunity.microsoft.com/t5/microsoft-teams/ms-teams-direct-routing-internal-call-transfe...

 

Did you manage to get anywhere with your issue?

THX 

G

Highlighted

@G____Yes I fixed the problem with my SBC and it was from my end as NOTIFY messages weren't sent in the right order 100 -> 18(03) -> 200 and this was causing the mess and sometimes error 500 back from MS Teams.

 

My explanation is the same for the hold/resume scenarios so what exactly is your current problem ?