]> git.ipfire.org Git - thirdparty/asterisk.git/commit
pjsip: replace 180 by 183 if SDP negotiation has completed
authorAlexei Gradinari <alex2grad@gmail.com>
Mon, 13 May 2019 20:37:50 +0000 (16:37 -0400)
committerAlexei Gradinari <alex2grad@gmail.com>
Mon, 13 May 2019 21:09:08 +0000 (17:09 -0400)
commitde82bdd746f20df959caf04cc6d5cb160cfadb35
tree575f3c9a59a3b82b0657cd204c7e4c0bcd51f58f
parentcf2f8db1b7f68d3cdfc5a872890a33903caa20b2
pjsip: replace 180 by 183 if SDP negotiation has completed

The caller endpoint hears dead silence if a callee replies 180 (without SDP)
and the caller already received 183 (with SDP).
It happens because Asterisk sends 180 (WITH SDP) to the caller,
there are not incoming RTP packets from the callee
and Asterisk does not generate inband ringing,
so there are not any outgoing RTP packets to the caller.

This patch replaces 180 by 183 if SDP negotiation has completed,
as if the caller endpoint is configured with "inband_progress=yes".

In this case Asterisk will generate inband ringing untill Asterisk receive
incoming RTP packets from the callee.

ASTERISK-27994 #close

Change-Id: I7450b751083ec30d68d6abffe922215a15ae5a73
channels/chan_pjsip.c