Home

Direct Routing PSTN call closed from SBC on Mute

%3CLINGO-SUB%20id%3D%22lingo-sub-327117%22%20slang%3D%22en-US%22%3EDirect%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327117%22%20slang%3D%22en-US%22%3E%3CP%3EI%20am%20now%20facing%20issue%20with%20my%20setup%20of%20Direct%20Routing%20and%20AudioCodes%20SBC.%3C%2FP%3E%3CP%3ESimply%20when%20user%20put%20himself%20on%20mute%20the%20SBC%20does%20not%20recognize%20any%20RTP%20stream%20and%20close%20the%20call%20with%20reason%20code%20400%20as%20RTP%20connection%20broken.%3C%2FP%3E%3CP%3EI%20can%20see%20that%20Teams%20does%20not%20send%20any%20re-INVITE%20informing%20SBC%20that%20there%20will%20be%20no%20audio.%3C%2FP%3E%3CP%3ENot%20sure%20on%20which%20side%20to%20handle%20this.%20How%20can%20I%20for%20example%20force%20Teams%20send%20empty%20RTP%20packets%3F%3C%2FP%3E%3CP%3EOn%20AudioCodes%20SBC%20I%20tried%20to%20change%20some%20settings%20on%20IP%20Profile%20in%20order%20to%20support%20Remote%20re-Invites%2C%20RTCP%20mode%20as%20Generate%20Always%20etc.%26nbsp%3B%3C%2FP%3E%3CP%3ENot%20sure%20what%20else%20to%20try.%26nbsp%3B%3C%2FP%3E%3CP%3EPutting%20on%20Hold%20is%20working%20fine.%20No%20issue%20that%20the%20call%20would%20be%20dropped.%20Just%20Mute%20function%20is%20making%20this%20issue.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-327117%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDirect%20Routing%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Emute%20call%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPSTN%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ETeams%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-391285%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-391285%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F263389%22%20target%3D%22_blank%22%3E%40DaveChomi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EFor%20Audiocodes%20devices%2C%20try%20setting%20%22Disconnect%20on%20Broken%20Connection%22%20to%20%22No%22.%26nbsp%3B%20You%20can%20find%20this%20parameter%20in%20the%20IP%20Profile%20that%20you%20are%20using%20for%20the%20external%20SIP%20trunk%20with%20Office365.%26nbsp%3B%20You%20are%20also%20likely%20using%20a%20separate%20IP%20Profile%20with%20your%20internal%20IP-PBX%20in%20which%20case%20you%20would%20also%20need%20to%20set%20it%20there.%26nbsp%3B%20That%20setting%20will%20likely%20fix%20up%20your%20issues.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThere%20are%20also%20settings%20that%20allow%20you%20to%20manipulate%20how%20the%20SBC%20handles%20MUTE%20scenarios%2C%20but%20try%20above%20first.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-390688%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-390688%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%2F30701%22%20target%3D%22_blank%22%3E%40Damian%20Kozlowski%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3Eat%20the%20end%20I%20have%20chosen%20the%20workaround%20in%20my%20eyes%20not%20the%20best%20one%20but%20working%20best%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20set%20the%20SBC%20to%20ignore%20%22no%20media%22%20so%20as%20it%20is%20not%20considered%20as%20error.%20So%20far%20it%20didn't%20bring%20any%20other%20odd%20behavior.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-376478%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-376478%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F263389%22%20target%3D%22_blank%22%3E%40DaveChomi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Dave%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDid%20you%20find%20solution%20for%20G711%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327324%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327324%22%20slang%3D%22en-US%22%3E%3CP%3EI%20have%20pointed%20out%20from%20my%20tests%20that%20issue%20appeared%20only%20if%20I%20made%20the%20connection%20from%20our%20PBX%20environment%20to%20Teams%20user.%20It%20made%20me%20believe%20that%20issue%20is%20related%20to%20chosen%20codec.%20Additionally%20only%20if%20the%20connection%20is%20established%20with%20G711%20the%20problem%20on%20mute%20appeared.%20If%20I%20make%20the%20session%20with%20the%20only%20preference%20and%20it's%20G729%20then%20the%20Mute%20can%20be%20also%20used%20and%20the%20issue%20does%20not%20appear%20%3A)%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20also%20play%20around%20with%20Suppressed%20Silence%20feature%20in%20Coder%20Groups%20but%20this%20had%20not%20any%20effect%20on%20the%20issue.%26nbsp%3B%3C%2FP%3E%3CP%3EAny%20input%20why%20only%20G711%20might%20be%20the%20case%20for%20the%20root%20cause%20would%20be%20appreciated%20%3A%5C%3C%2Fimg%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20will%20definitely%20check%20with%20Aduiocodes%20for%20any%20known%20error%20or%20ceveat...%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327250%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327250%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20addition%20I%20tested%20mute%20from%20the%20opposite%20side%20(SIP%20phone%20registered%20to%20our%20on-prem%20PBX)%20and%20it's%20working%20fine.%20There%20is%20also%20no%20re-Invite%20send%20from%20PBX%20to%20SBC%20but%20obviously%20it's%20still%20generating%20RTP%20traffic%20so%20the%20SBC%20does%20not%20recognize%20any%20loss%20of%20RTP%20stream.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327221%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327221%22%20slang%3D%22en-US%22%3E%3CP%3EI%20believe%20that%20the%20timer%20for%20that%20is%20set%20for%2010%20seconds.%3CBR%20%2F%3EOnce%20I%20mute%20myself%20the%20SBC%20recognize%20no%20RTP%20and%20then%20populate%20error.%26nbsp%3B%3C%2FP%3E%3CP%3E15%3A08%3A14%201%20RTP%20packets%20lost%3A%20CID%3D33%20%5BCode%3A0x600b%5D%20%5BCID%3A33%5D%20%5BTime%3A29-01%4015%3A08%3A14%3C%2FP%3E%3CP%3E15%3A08%3A14%20PL%3A1%20%5BCode%3A0x5004%5D%20%5BCID%3A33%5D%20%5BTime%3A29-01%4015%3A08%3A14%3C%2FP%3E%3CP%3E15%3A08%3A16%20!!!%20Repeated%2010%20times%20%3A%20Validate%20Stun%20Message%20-%20got%20unknown%20attribute%20type%3A32880%20%5BTime%3A29-01%4015%3A08%3A16%3C%2FP%3E%3CP%3E15%3A08%3A24%20(%20lgr_psbrdex)(%20304680)%20recv%20%26lt%3B--%20EV_BROKEN_CONNECTION%20Ch%3A33%20%5BTime%3A29-01%4015%3A08%3A24%3C%2FP%3E%3CP%3EAnd%20then%20sends%20BYE%20on%20both%20sides%20of%20connection.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327203%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327203%22%20slang%3D%22en-US%22%3E%3CP%3ENope%2C%20not%20seen%20that%20problem.%20Had%20to%20test%20it%20with%20my%20Audiocodes%20setup%20and%20no%20problem%20with%20mute.%20Does%20your%20call%20disconnect%20directly%20or%20is%20it%20after%20a%20couple%20of%20seconds%2Fminutes%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-327142%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-327142%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F263389%22%20target%3D%22_blank%22%3E%40DaveChomi%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%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%3E%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F869%22%20target%3D%22_blank%22%3E%40Chris%20Webb%3C%2FA%3E%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F72542%22%20target%3D%22_blank%22%3E%40adam%20deltinger%3C%2FA%3E%26nbsp%3B%20%26nbsp%3B%20-%20you%20ever%20come%20across%20muting%20closing%20off%20the%20call%20in%20a%20direct%20routing%20scenario%20with%20a%20SBC%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%2C%20Chris%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-409510%22%20slang%3D%22en-US%22%3ERe%3A%20Direct%20Routing%20PSTN%20call%20closed%20from%20SBC%20on%20Mute%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-409510%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F84875%22%20target%3D%22_blank%22%3E%40Trevor%20Miller%3C%2FA%3E%26nbsp%3BHi%20Trevor%2C%20thanks.%20That's%20exactly%20what%20I%20started%20to%20do%20but%20didn't%20upload%20this%20post.%20I%20can%20confirm%20that%20this%20was%20the%20solution%20for%20me.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
DaveChomi
Contributor

I am now facing issue with my setup of Direct Routing and AudioCodes SBC.

Simply when user put himself on mute the SBC does not recognize any RTP stream and close the call with reason code 400 as RTP connection broken.

I can see that Teams does not send any re-INVITE informing SBC that there will be no audio.

Not sure on which side to handle this. How can I for example force Teams send empty RTP packets?

On AudioCodes SBC I tried to change some settings on IP Profile in order to support Remote re-Invites, RTCP mode as Generate Always etc. 

Not sure what else to try. 

Putting on Hold is working fine. No issue that the call would be dropped. Just Mute function is making this issue. 

9 Replies
Highlighted

Thanks @DaveChomi 

 

@Linus Cansby @Chris Webb @adam deltinger    - you ever come across muting closing off the call in a direct routing scenario with a SBC?

 

Best, Chris

Highlighted

Nope, not seen that problem. Had to test it with my Audiocodes setup and no problem with mute. Does your call disconnect directly or is it after a couple of seconds/minutes? 

Highlighted

I believe that the timer for that is set for 10 seconds.
Once I mute myself the SBC recognize no RTP and then populate error. 

15:08:14 1 RTP packets lost: CID=33 [Code:0x600b] [CID:33] [Time:29-01@15:08:14

15:08:14 PL:1 [Code:0x5004] [CID:33] [Time:29-01@15:08:14

15:08:16 !!! Repeated 10 times : Validate Stun Message - got unknown attribute type:32880 [Time:29-01@15:08:16

15:08:24 ( lgr_psbrdex)( 304680) recv <-- EV_BROKEN_CONNECTION Ch:33 [Time:29-01@15:08:24

And then sends BYE on both sides of connection. 

 

 

Highlighted

In addition I tested mute from the opposite side (SIP phone registered to our on-prem PBX) and it's working fine. There is also no re-Invite send from PBX to SBC but obviously it's still generating RTP traffic so the SBC does not recognize any loss of RTP stream. 

 

Highlighted

I have pointed out from my tests that issue appeared only if I made the connection from our PBX environment to Teams user. It made me believe that issue is related to chosen codec. Additionally only if the connection is established with G711 the problem on mute appeared. If I make the session with the only preference and it's G729 then the Mute can be also used and the issue does not appear :) 

I also play around with Suppressed Silence feature in Coder Groups but this had not any effect on the issue. 

Any input why only G711 might be the case for the root cause would be appreciated :\ 

I will definitely check with Aduiocodes for any known error or ceveat...  

Highlighted

@DaveChomi 

 

Hi Dave,

 

Did you find solution for G711?

Highlighted

Hi @Damian Kozlowski 
at the end I have chosen the workaround in my eyes not the best one but working best :) 

I have set the SBC to ignore "no media" so as it is not considered as error. So far it didn't bring any other odd behavior. 

Highlighted

@DaveChomi 

For Audiocodes devices, try setting "Disconnect on Broken Connection" to "No".  You can find this parameter in the IP Profile that you are using for the external SIP trunk with Office365.  You are also likely using a separate IP Profile with your internal IP-PBX in which case you would also need to set it there.  That setting will likely fix up your issues.

 

There are also settings that allow you to manipulate how the SBC handles MUTE scenarios, but try above first.

Highlighted

@Trevor Miller Hi Trevor, thanks. That's exactly what I started to do but didn't upload this post. I can confirm that this was the solution for me.