]> git.ipfire.org Git - thirdparty/asterisk.git/commit
app_chanisavail/cdr: ChanIsAvail sometimes fails to deactivate CDR.
authorFrederic LE FOLL <frederic.lefoll@c-s.fr>
Wed, 27 Nov 2019 17:34:24 +0000 (18:34 +0100)
committerFrederic LE FOLL <frederic.lefoll@c-s.fr>
Mon, 16 Dec 2019 21:02:30 +0000 (15:02 -0600)
commita0e31cc14e524f720aa80beaac9fcb9fff5e4b24
tree0bea02a6e751de8eb2e04d6d5ebd12b03e7c9bf7
parentc7966269f5808ff219ee5c65a2e4fa121b576914
app_chanisavail/cdr: ChanIsAvail sometimes fails to deactivate CDR.

Temporary channel lifespan is very short and CDR deactivation request
through ast_cdr_set_property() may happen when CDR is not available
yet. Use CDR_PROP() dialplan function instead, it will first wait
for pending CDR insertion requests to be processed.

ASTERISK-28636

Change-Id: I1cbe09e8d2169c0962c1195133ff260d291f2074
apps/app_chanisavail.c