]> git.ipfire.org Git - thirdparty/asterisk.git/commit
Dialing API: Cancel a running async thread, may not cancel all calls
authorFrederic LE FOLL <frederic.lefoll@c-s.fr>
Thu, 6 Oct 2022 16:51:36 +0000 (18:51 +0200)
committerFriendly Automation <jenkins2@gerrit.asterisk.org>
Wed, 26 Oct 2022 16:51:44 +0000 (11:51 -0500)
commit54c1fd9829edff883cebad1ffd7add0cd1cc8430
tree695170dacdc7c45f5c2d072585ae7eb703b25d27
parente4117d72901b199ee56a3ca53c2e86fbe4ab1f6a
Dialing API: Cancel a running async thread, may not cancel all calls

race condition: ast_dial_join() may not cancel outgoing call, if
function is called just after called party answer and before
application execution (bit is_running_app not yet set).

This fix adds ast_softhangup() calls in addition to existing
pthread_kill() when is_running_app is not set.

ASTERISK-30258

Change-Id: Idbdd5c15122159661aa8e996a42d5800083131e4
main/dial.c