]> git.ipfire.org Git - thirdparty/asterisk.git/commit
chan_pjsip: Stop queueing control frames twice on outgoing channels
authorIvan Poddubnyi <ivan.poddubny@gmail.com>
Thu, 31 Dec 2020 11:53:34 +0000 (12:53 +0100)
committerGeorge Joseph <gjoseph@digium.com>
Mon, 11 Jan 2021 18:46:05 +0000 (12:46 -0600)
commit134d2e729df8ff2f372362b2f2b5bdcaad8f783b
treefc8f4660cedabe57a726cc1241b40e58619f8723
parent2d3441772bc29ad504db10bd10ed6f3bf16618cd
chan_pjsip: Stop queueing control frames twice on outgoing channels

The fix for ASTERISK-27902 made chan_pjsip process SIP responses twice.
This resulted in extra noise in logs (for example, "is making progress"
and "is ringing" get logged twice by app_dial), as well as in noise in
signalling: one incoming 183 Session Progress results in 2 outgoing 183-s.

This change splits the response handler into 2 functions:
 - one for updating HANGUPCAUSE, which is still called twice,
 - another that does the rest, which is called only once as before.

ASTERISK-28016
Reported-by: Alex Hermann
ASTERISK-28549
Reported-by: Gant Liu
ASTERISK-28185
Reported-by: Julien
Change-Id: I0a1874be5bb5ed12d572d17c7f80de6e5e542940
channels/chan_pjsip.c