I think this subject may have been covered a few times but was hoping to get some clarity on keep alive, comfort noise and how they work in Asterisk with PJSIP.
For some quick background we are using v18.16.0, and sometimes our calls are dropped by PSTN carriers - this is generally with onward carriers rather than those which we trunk with, so getting any changes downstream is problematic. In the calls which are bridged party A is sending constant RTP whereas party B sends nothing when there is silence / local mute.
From what I have read the channel driver being a 3rd party is in control of comfort noise, so we would need to enable (or add) CN to PJSIP itself. Has anyone ever done this, and what does it entail exactly, is it changing the source code in PJSIP and/or Asterisk and then building from source again?
When running a trace and with the keep alive set to 1 second I only ever see 1 CN packet, is this because after the lines are connected and party A is sending RTP fine its classed as ‘flowing’?
It’s linked to outbound flowing RTP. If RTP is being sent for some reason, then keepalive would not kick in. The implementation itself is pretty small[1].