]> 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)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Mon, 11 Jan 2021 17:33:09 +0000 (11:33 -0600)
commit17fa9c93d024444aabdc192b7be145b4b7e9380d
tree3a7aada7ee742123e092d3cffaeee7365abe639a
parent7df88c98d034f8b918e4ff86c9d0756f54aad0c4
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